You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/workstation/wks-build-app.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,11 +71,11 @@ Now that you are ready to start using Mendix Workstation, you can implement your
71
71
72
72
The domain model contains the following entities:
73
73
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.
76
76
***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.
77
77
78
-
### Using the Nanoflows and Actions {#java-actions}
78
+
### Using the Nanoflows and Actions {#javascript-actions}
79
79
80
80
The following section provides more information about using the nanoflows and Java actions in your Mendix application.
81
81
@@ -101,36 +101,7 @@ Call `WaitForObjectChange` to wait for changes in the attributes of the specifie
101
101
*`attributes`
102
102
*`timeout`
103
103
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
134
105
135
106
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:
136
107
@@ -149,7 +120,7 @@ Call this action to connect to a specific device.
149
120
150
121
#### DisconnectDevice
151
122
152
-
Call this action to unsubscribe and completely disconnect from a specific device.
123
+
Call this action to disconnect from a specific device.
153
124
154
125
#### Initialize
155
126
@@ -161,6 +132,35 @@ Call `GetStation` to retrieve configuration of the current Client computer by us
161
132
162
133
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`.
163
134
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
+
164
164
#### Private Nanoflows
165
165
166
166
`CreateStation`, `CommitStation`, `CreateDevice`, and `CommitDevice` are private nanoflows, required be compatible with [strict mode](/refguide/strict-mode/).
0 commit comments