Skip to content

Commit dd07b19

Browse files
Merge pull request mendix#10452 from mendix/kk-workstation-merge
Updates to Workstation docs
2 parents 52f01db + 2d562dd commit dd07b19

8 files changed

Lines changed: 262 additions & 122 deletions

File tree

content/en/docs/releasenotes/workstation/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can now copy the station configuration to the clipboard, or download it to a
9999
#### Fixes
100100

101101
* Computer registration: We fixed an issue where the Workstation Client could not connect to Workstation Management over a network connection that required a certificate. With this new release, the Workstation Client now uses the client operating system's certificates to establish a connection with Workstation Management.
102-
* Smartcard reader interface: We fixed an issue in the Workstation Client where the client would freeze if **Detect card readers** was enabled and the operating system's smartcard service was stopped.
102+
* smart card reader interface: We fixed an issue in the Workstation Client where the client would freeze if **Detect card readers** was enabled and the operating system's smart card service was stopped.
103103
* Bluetooth LE interface: We fixed issues in the Workstation Client and Connector when subscribing to Bluetooth properties. Wait and sleep times between subscriptions are no longer required, and multiple series of subscriptions and unsubscriptions are supported.
104104

105105
## 3.0.0
@@ -131,7 +131,7 @@ When editing a device, device settings are edited in a side panel. It makes devi
131131

132132
### Known Bugs and Limitations
133133

134-
* Windows Workstation Client hangs when Smartcard reader detection is enabled and the *Smart Cards for Windows Service* is disabled.
134+
* Windows Workstation Client hangs when smart card reader detection is enabled and the *Smart Cards for Windows Service* is disabled.
135135
* The Workstation Client window is not visible when opened on a secondary screen and the secondary screen is no longer available.
136136

137137
## 2.6.0
@@ -170,7 +170,7 @@ The Mendix Workstation Client Sample App showcases how to build applications int
170170

171171
The app includes reusable peripheral modules for:
172172

173-
* PC/SC Smartcard Reader (ADPU protocol), for example Omnikey, 5427 G2, ACR122U
173+
* PC/SC smart card Reader (ADPU protocol), for example Omnikey, 5427 G2, ACR122U
174174
* Barcode Scanner (configured on Serial Port), for example, NETUM C750
175175
* Industrial Scale (MT-SICS protocol), for example, Mettler Toledo ICS425, OHAUS Scout STX 620, 6200
176176
* Label Printer (ZPL protocol), for example, Zebra ZD421D

content/en/docs/workstation/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Mendix Workstation Client is [Limited Availability](https://docs.mendix.com/rele
1414

1515
## Introduction
1616

17-
Mendix Workstation Client is designed to help you build smarter, faster, and more operator-friendly applications for shopfloor operators. It enables Mendix cloud applications to directly interact with peripheral devices on a local workstation, without relying on intermediate servers or heavy network traffic.
17+
Mendix Workstation Client is designed to help you build smarter, faster, and more operator-friendly applications for shop floor operators. It enables Mendix cloud applications to directly interact with peripheral devices on a local workstation, without relying on intermediate servers or heavy network traffic.
1818

19-
By connecting applications directly to the PC's local resources, Workstation allows for near real-time communication with devices like printers, barcode scanners, smartcard readers, and industrial scales, all from within a Mendix app. This setup ensures low-latency performance and reduces infrastructure complexity.
19+
By connecting applications directly to the PC's local resources, Workstation allows for near real-time communication with devices like printers, barcode scanners, smart card readers, and industrial scales, all from within a Mendix app. This setup ensures low-latency performance and reduces infrastructure complexity.
2020

2121
Workstation is especially valuable in manufacturing and industrial environments where precision, speed, and reliability are key to operator efficiency.
2222

@@ -31,7 +31,7 @@ Mendix Workstation Client has the following features:
3131
* Interactions with the local PC, such as sending and receiving on-event messages, are handled with Mendix nanoflows.
3232
* Supports multiple interfaces:
3333

34-
* PCSC (Smartcard Reader) - APDU protocol
34+
* PCSC (smart card Reader) - APDU protocol
3535
* Serial Port (COM Port) RS232 standard
3636
* TCP-IP (Ethernet)
3737
* Bluetooth LE (BLE) - ATT protocol
@@ -53,7 +53,7 @@ Mendix Workstation Client has the following features:
5353
Mendix Workstation Client can be used to create apps that handle use cases such as the following:
5454

5555
* Printing labels on an industrial thermal label printer (for example, a Zebra printer)
56-
* Badge operators with an NFC smartcard reader and PC/SC specification
56+
* Badge operators with an NFC smart card reader and PC/SC specification
5757
* Scanning and parsing barcodes (for example, GS1 specifications)
5858
* Weighing materials with an industrial scale (for example, a Mettler Toledo SICS-compatible scale)
5959
* Connected smart tools (for example, screwdrivers with torque control)
@@ -88,9 +88,9 @@ Used by Mendix developers. The App Connector is a plug-and-play Mendix module th
8888

8989
The connector handles the following tasks:
9090

91-
* Retrieving local station configuration (name and device list).
92-
* Connecting and disconnecting devices.
93-
* Exchanging messages with the device.
94-
* Subscribing for triggering app logic on event when receiving messages from the device.
91+
* Retrieving local station configuration (name and device list)
92+
* Connecting and disconnecting devices
93+
* Exchanging messages with devices
94+
* Subscribing for triggering app logic on event when receiving messages from a device
9595

9696
## Read More

content/en/docs/workstation/wks-build-app.md

Lines changed: 23 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -18,72 +18,65 @@ The Workstation Connector establishes connection with the Device through the Wor
1818

1919
When a client browser or tab instance tries to connect to a device, previously connected browser or tab instances are disconnected from the device.
2020

21-
The Workstation Connector connects with Workstation Client using a local websocket on port 8094. Communication with each configured device uses another websocket on port 8095 for the first device, 8096 for the second, and so on, so that the range of ports used is port *8094* to *8094+n*, where *n* is the number of devices you have. Make sure that the Runtime or Admin port of your local development server in Studio Pro (**App Settings** > **Configurations** > **Server**) is not configured on a port greater or equal to 8094.
21+
The Workstation Connector connects with Workstation Client using a local WebSocket on port 8094. Communication with each configured device uses another WebSocket on port 8095 for the first device, 8096 for the second, and so on, so that the range of ports used is port *8094* to *8094+n*, where *n* is the number of devices you have. Make sure that the Runtime or Admin port of your local development server in Studio Pro (**App Settings** > **Configurations** > **Server**) is not configured on a port greater or equal to 8094.
2222

2323
## Prerequisites
2424

25-
* Mendix Workstation Client 2.4.0
25+
* Mendix Workstation Client 3.0.0
2626
* Mendix Studio Pro 9.24.11 or newer
2727

2828
## Installing and Configuring the Workstation Connector
2929

3030
To install and configure the Workstation Connector, perform the following steps:
3131

32-
1. Open Mendix Studio Pro and create a new app using a blank or starter template.
32+
1. Open an existing app to extend with Workstation functionality in Mendix Studio Pro, or create a new app.
33+
2. Import the [Mendix Workstation Connector](https://marketplace.mendix.com/link/component/247460) from the Mendix Marketplace.
34+
3. Configure the station in Workstation Management by performing the following steps:
3335

34-
The starter template is suitable for new users who want a good starting point. Alternatively, you can also add the connector to an existing app.
35-
36-
2. If you did not use the starter template, download the [Mendix Workstation Connector](https://marketplace.mendix.com/link/component/247460).
37-
3. Configure the Station in Workstation Management by performing the following steps:
38-
39-
1. Navigate to the **Workspaces** page in the [Workstation Management](https://workstation.home.mendix.com/) (default home page).
40-
2. Click **Create Workspace** or click on an existing Workspace in the overview.
36+
1. Navigate to the **Workspaces** page in [Workstation Management](https://workstation.home.mendix.com/).
37+
2. Click **Create Workspace**, or select an existing workspace from the overview.
4138
3. Click **Create Station**.
42-
4. Give the station an identifying name, and optionally select or create a group to categorize it, such as *Assembly*.
43-
5. Add your devices in the **Devices** section.
44-
6. Register your computer by clicking **Register Computer**.
45-
7. Click **Download** to navigate to the Workstation Client listing in the marketplace, download the Client installer for Windows, install, and launch it.
46-
8. Copy and paste the registration token into the [Workstation Client](/mendix-workstation/installation/) registration field.
39+
4. Enter a name for the station and optionally select or create a group to categorize it, such as *Assembly*.
40+
5. Add devices in the **Devices** section.
41+
6. Click **Register Computer** to register your computer.
42+
7. Click **Download** to navigate to the Workstation Client listing in the Marketplace, download the Client installer for Windows, install it, and launch it.
43+
8. Copy the registration token and paste it into the [Workstation Client](/mendix-workstation/installation/) registration field.
4744

4845
4. Configure your app as an allowed app by performing the following steps:
4946

50-
1. In your app go to [App Security](https://docs.mendix.com/refguide/app-security/#user-roles) and assign the module role **StationConnector.Administrator** to the Administrator user role.
51-
2. In your app add the page **StationConnector_Security** to your navigation or link to it from an 'Open page button'. Alternatively, place the snippet **SNIPPET_StationAdminPage** on a page available to the Adminstrator user role.
47+
1. In your app go to [App Security](/refguide/app-security/#user-roles) and assign the module role **StationConnector.Administrator** to the Administrator user role.
48+
2. In your app add the page **StationConnector_Security** to your navigation or link to it from an **Open page** button. Alternatively, place the snippet **SNIPPET_StationAdminPage** on a page available to the Adminstrator user role.
5249
3. Run the app.
53-
4. Login as an Administrator, navigate to the page you added in step 2 and copy the shown public key.
50+
4. Log in as an Administrator, navigate to the page you added in step 2 and copy the shown public key.
5451
5. Go back to the [Workstation Management](https://workstation.home.mendix.com/) and navigate to the workspace you created in step 3.2.
5552
6. Go to the **Apps** page in your workspace and click **Create App**.
5653
7. Enter your app's URL (for example, `http://localhost:8080`, which is the default when running an app locally) and paste the copied public key into the **Public Key** field.
5754
8. Perform one of the following actions:
5855
* To enable the app for all stations, select **Enable in all stations**
5956
* To enable it for a specific station, go to **Stations** and navigate to your station. You will find the created app under the **Apps** section. Here you can enable the application just for this station by pressing the toggle.
6057
9. Refresh the Workstation Client.
61-
10. Optional: To recreate the key pair, additionally assign the module role **StationConnector.SecurityAdministrator** to your Administrator role. This adds a **Regenerate KeyPair** button to the **StationConnector_Security** page. Be mindful when using this button in a production scenario to avoid the need to reconfigure the app in the Management, and refresh all Workstation Clients.
58+
10. Optional: To recreate the key pair, additionally assign the module role **StationConnector.SecurityAdministrator** to your Administrator role. This adds a **Regenerate KeyPair** button to the **StationConnector_Security** page. Use caution when using this button in a production scenario to avoid the need to reconfigure the app in the Management, and refresh all Workstation Clients.
6259

6360
## Managing Apps
6461

6562
The app that you created in the previous section is available on the **Apps** page that you can access through the left navigation menu. To enable or disable the app for all your stations or groups of stations, click the icon in the right column of the app list, and then click **Manage App**.
6663

6764
## Managing Users
6865

69-
To invite users to your Workstation, click **Team** in the left navigation menu, and then click **Invite Team Member**. You can grant your users one of the following predefined roles:
66+
You can invite other Workstation Management users to your workspace to share configurations and collaborate. This feature requires a Workstation license.
7067

71-
* Owner - The owner has full rights to manage the workspace. They can read and edit configurations, invite members, manage security, register computers, and manage workspace settings. They can also delete a workspace or give it to a new owner.
72-
* Workspace admin - The workspace admin can manage the workspace in the same way as the owner, but they cannot delete workspaces or change their ownership.
73-
* Station admin - Station admins can view and edit station configuration. They can also register computers to the workstation. They cannot manage any other settings.
74-
* Computer admin - Computer admins can view the configuration without editing it. They can also register new computers.
75-
* View only - This role grants access to viewing the configuration.
68+
To invite a user, click **Team** in the left navigation menu, then click **Invite Team Member**. Enter the user's email address and select a role. For more information about the available roles, see [Workspace Team and Collaboration](/mendix-workstation/installation/#collaboration).
7669

77-
To change a user's role, or remove them from the workspace, click the three dot icon in the right column of the user list (prerequisite: Owner or Workspace admin role).
70+
To change a user's role or remove them from the workspace, click the three-dot icon in the right column of the user list. This action requires the Owner or Workspace Admin role.
7871

7972
## Getting Started with Custom Logic for Device Interaction
8073

8174
Now that you are ready to start using Mendix Workstation Client, you can implement your own custom logic for interacting with devices. The following nanoflows and Java actions are essential for establishing connections, sending or receiving messages, and managing device interactions:
8275

8376
* **GetStation** - Retrieves the computer information connected to the Client.
8477
* **SendMessage** - Sends data or commands to the connected device. For more information about the supported message syntax, see [Message Syntax for File, Smart Card, and Bluetooth Devices](/mendix-workstation/device-syntax/).
85-
* **SubscribeToMessages** - Subscribe a nanoflow to be called when the device is sending a message.
86-
* **SubscribeToErrors** - Subscribe a nanoflow to be called on device connection errors.
78+
* **SubscribeToMessages** - Subscribes to device messages and triggers a nanoflow when messages are received.
79+
* **SubscribeToErrors** - Subscribes to device connection errors and triggers a nanoflow when errors occur.
8780
* **Unsubscribe** - End the subscription to device messages or errors.
8881
* **UnsubscribeByContext** - End all subscriptions related to a context object.
8982
* **UnsubscribeByDevice** - End all subscriptions related to a specific device.
@@ -105,15 +98,15 @@ The following section provides more information about using the nanoflows and Ja
10598

10699
#### GetStation
107100

108-
Call `GetStation` to retrieve configuration of the current Client computer. `GetStation` can be used multiple times, but it queries the Workstation Client only the first time. The following calls return the current object loaded in the session. If connection with Workstation Client does not work, `GetStation` returns an empty object.
101+
Call `GetStation` to retrieve configuration of the current Client computer by using the Workstation Client. `GetStation` can be used multiple times, but it queries the Workstation Client only the first time. The following calls return the current object loaded in the session. If connection with Workstation Client does not work, `GetStation` returns an empty object.
109102

110103
#### SendMessage
111104

112105
Call `SendMessage` to send a message to a device. `SendMessage` includes the option to wait for the response of the device in the current nanoflow.
113106

114107
#### SubscribeToMessages
115108

116-
Call `SubscribeToMessages` to trigger a nanoflow when a message is received from a device. `SubscribeToMessages` includes the option to configure a context object to be passed to the callback nanoflow each time a message is received.
109+
Call `SubscribeToMessages` to trigger a nanoflow when a message is received from a device. `SubscribeToMessages` provides an option to specify a context object that will be passed to the callback nanoflow whenever a message is received.
117110

118111
The callback nanoflow must have the following parameters:
119112

@@ -140,31 +133,6 @@ Call `Unsubscribe` to end a subscription.
140133

141134
Call `UnsubscribeByContext` to end all subscriptions related to a context object.
142135

143-
## Creating a File Device in Workstation Management
144-
145-
### Allowed Folder Configuration
146-
147-
The *Allowed Folder* feature supports flexible path configuration through environment variables, providing cross-platform compatibility for both Windows and Unix-based systems. This functionality allows administrators to define the allowed folder where the Workstation Client is allowed to perform actions.
148-
149-
#### Environment Variable Support
150-
151-
The system accepts environment variables in the allowed folder configuration within the Workstation Management interface. Notably, both Windows and Unix syntax formats are supported on all platforms, meaning you can use Windows-style environment variables on Unix systems and vice versa.
152-
153-
#### Supported Path Formats
154-
155-
Windows and Unix style paths can be used independently from the operating system the Workstation Client is running on. The following examples demonstrate the various syntax options available:
156-
157-
##### Basic Examples
158-
159-
* **Windows-style with backslash**: `%AppData%\test`
160-
* **Windows-style with forward slash**: `%AppData%/test`
161-
* **Unix-style with backslash**: `$EnvVar\test`
162-
* **Unix-style with forward slash**: `$EnvVar/test`
163-
164-
#### Allowed Actions
165-
166-
The administrator can choose to allow either one or a combination of the following permissions: subscribe to change events, read files and write files.
167-
168136
## Error Logs
169137

170138
Logs for the Workstation Management, Client, and Connector are available in case of issues. For more information about accessing the logs, see [Troubleshooting Mendix Workstation Client](/mendix-workstation/troubleshooting/).

0 commit comments

Comments
 (0)