Skip to content

Wks connector updates#11001

Open
katarzyna-koltun-mx wants to merge 7 commits intodevelopmentfrom
kk-wks-connector36
Open

Wks connector updates#11001
katarzyna-koltun-mx wants to merge 7 commits intodevelopmentfrom
kk-wks-connector36

Conversation

@katarzyna-koltun-mx
Copy link
Copy Markdown
Collaborator

No description provided.

@katarzyna-koltun-mx katarzyna-koltun-mx marked this pull request as ready for review April 17, 2026 07:52
* **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.

### Using the Nanoflows and Actions
### Using the Nanoflows and Actions {#java-actions}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actions are JavaScript Actions, not Java

Call `Unsubscribe` to end a subscription.

#### UnsubscribeByContext
#### SetupDevice
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion today, we renamed this to GetCreateDevice. Same behavior, hopefully easier to understand.


Call this action to unsubscribe and completely disconnect from a specific device.

#### Initialize
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialize needs to be called by something in order to set up communication with the Workstation Client.

Users shouldn't ever need to call this directly. It should be automatically called from within GetStation or GetCreateDevice. Users will need to pass it to GetCreateDevice as initialize for it to be called. This should be well documented in the action parameter description.


#### GetStation

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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call `GetStation` to retrieve the current Workstation Client configuration and devices. Creates and returns a station object with a linked device object per peripheral.


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.

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`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need to interact with a specific device, prefer getting it via `GetCreateDevice` instead. It has a more convenient API, allows specialization and avoids creation of station and device objects that may not be needed.

Comment on lines +151 to +152

Call this action to unsubscribe and completely disconnect from a specific device.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call this action to disconnect from a specific device.

Does not unsubscribe anything.

@@ -86,46 +75,104 @@ The domain model contains the following entities:
* **Device** - A list of devices associated with the station; includes device names and properties required to achieve a connection (non-persistent entities).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* **Station** - A non-persistent entity representing the Workstation Client configuration.
* **Device** - A non-persistent entity representing a connectable peripheral device. Includes name, class and available/connected/error states. Specialize this to maintain your device specific state.

* `timeout`

The callback nanoflow must have the following parameters:
#### SubscribeToObjectChanges
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SubscribeToXxx might be better to come near the end. I see these as low-level APIs. Most users shouldn't need these. GetCreateDevice should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants