Skip to content

Commit 922281b

Browse files
sme review
1 parent 4155080 commit 922281b

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Now that you are ready to start using Mendix Workstation, you can implement your
7171

7272
The domain model contains the following entities:
7373

74-
* **Station** - Includes the station name, computer name, the workspace name and the client version (non-persistent entities).
75-
* **Device** - A list of devices associated with the station; includes device names and properties required to achieve a connection (non-persistent entities).
74+
* **Station** - A non-persistent entity representing the Workstation Client configuration.
75+
* **Device** - A non-persistent entity representing a connectable peripheral device. Includes the name, class and state (Available, Connected, or Error). Specialize this to maintain your device specific state.
7676
* **AppKeyPair** - A persistent entity to store the app's key pair. The public key needs to be entered in the corresponding app in the Workstation Management.
7777

78-
### Using the Nanoflows and Actions {#java-actions}
78+
### Using the Nanoflows and Actions {#javascript-actions}
7979

8080
The following section provides more information about using the nanoflows and Java actions in your Mendix application.
8181

@@ -101,36 +101,7 @@ Call `WaitForObjectChange` to wait for changes in the attributes of the specifie
101101
* `attributes`
102102
* `timeout`
103103

104-
#### SubscribeToObjectChanges
105-
106-
Call `SubscribeToObjectChanges` to trigger a nanoflow when the specified object changes. This action has the following parameters:
107-
108-
* `objectToObserve`
109-
* `attributes`
110-
* `callback`
111-
* `applicationContext`
112-
113-
#### SubscribeToDeviceMessages
114-
115-
Call `SubscribeToDeviceMessages` to trigger a nanoflow when a message is received from a device. This action has the following parameters:
116-
117-
* `device`
118-
* `callback`
119-
* `applicationContext`
120-
121-
#### SubscribeToDeviceErrors
122-
123-
Call `SubscribeToDeviceErrors` to trigger a nanoflow on device connection error. This action has the following parameters:
124-
125-
* `device`
126-
* `callback`
127-
* `applicationContext`
128-
129-
#### Unsubscribe
130-
131-
Call `Unsubscribe` to end a subscription.
132-
133-
#### SetupDevice
104+
#### GetCreateDevice
134105

135106
Call this nanoflow to create and configure a device, and define the actions that should happen on connection, disconnection, or messages from the device. This action has the following parameters:
136107

@@ -149,7 +120,7 @@ Call this action to connect to a specific device.
149120

150121
#### DisconnectDevice
151122

152-
Call this action to unsubscribe and completely disconnect from a specific device.
123+
Call this action to disconnect from a specific device.
153124

154125
#### Initialize
155126

@@ -161,6 +132,35 @@ Call `GetStation` to retrieve configuration of the current Client computer by us
161132

162133
If your microflow references a peripheral module (that is, a reusable module which supports a specific peripheral device), you do not need to call `GetStation` to reference it. Instead, you can initialize the peripheral module by calling `Initialize`.
163134

135+
#### SubscribeToObjectChanges
136+
137+
Call `SubscribeToObjectChanges` to trigger a nanoflow when the specified object changes. This action has the following parameters:
138+
139+
* `objectToObserve`
140+
* `attributes`
141+
* `callback`
142+
* `applicationContext`
143+
144+
#### SubscribeToDeviceMessages
145+
146+
Call `SubscribeToDeviceMessages` to trigger a nanoflow when a message is received from a device. This action has the following parameters:
147+
148+
* `device`
149+
* `callback`
150+
* `applicationContext`
151+
152+
#### SubscribeToDeviceErrors
153+
154+
Call `SubscribeToDeviceErrors` to trigger a nanoflow on device connection error. This action has the following parameters:
155+
156+
* `device`
157+
* `callback`
158+
* `applicationContext`
159+
160+
#### Unsubscribe
161+
162+
Call `Unsubscribe` to end a subscription.
163+
164164
#### Private Nanoflows
165165

166166
`CreateStation`, `CommitStation`, `CreateDevice`, and `CommitDevice` are private nanoflows, required be compatible with [strict mode](/refguide/strict-mode/).

0 commit comments

Comments
 (0)