Workflow specific actions
The workflow itself contains several built-in actions for creating custom logic, managing dependencies, and more.
General
A secondary click on an empty space of the workflow opens a menu where you can access these actions.

Hub
The Hub is a connection point to combine multiple connections into one:

Instead of this:

Wait
Add a delay into your workflow.

Condition
Create a condition based on your data to react to specific behaviors.

Switch
Create simple switch functions.

Modifier
Modified workflow data values.
Add as many modifier into this action as needed,
Define the method, the data path and the value.
Copy the path directly from the data tree with a secondary click:




Data Source
Create a data source object to populate the data tree with objects, elements, or parameter values.
Loop
A loop will retrigger the chain for the defined number of times. The loop index can be used for further logic.

For Each
It can iterate through data tree arrays and return each element.

Example
Assume we have this data in the data tree of a workflow.


The 'Success' output will now iterate through each element and return them one by one.

Please note: this screen recording uses a sleep per step of 0.4 seconds. Normally, it would iterate through all elements in just a few microseconds.
This data item (in this example, an object path) can be used to access objects and set a parameter for each one.
Example project
Please find the project within Grid Studio under the template projects.
The example project uses a list/dropdown variable as a reference.
A workflow inside this reference variable iterates through all variables within the 'Folder'.
Each variable in the folder is then set to the same dropdown state as the reference variable.

Repeat
Can be used to repeat parts of the workflow at specific time intervals.

Example
In this example, the workflow tries to turn on the projector and checks its power state. If the projector is not on, the repeat action is used to retrigger this logic for a defined number of times.

From left to right:
Projector "Power on" action.
Wait for 5 seconds.
Get the power state from the projector.
Check the state with a condition action.
If the check is failing the "Repeat" action will be triggered.
The “Repeat“ action will re-execute the entire chain until the condition is successful or the defined number of retries is reached.
Example project
Please find the project within Grid Studio under the template projects.
The example project includes exactly the workflow shown above.
A toggle button on the board is used to simulate the projector's power state.
Run the workflow to execute the logic.

Script
A Python script action to create custom actions based on Python code.
Define the number of outputs and edit the code within the built-in code editor.

Log
An action to write log entries for different log levels:
Info
Warning
Error
Notification
An action to generate a notification.
Title and Message need to contain string values.
Otherwise, the notification will not appear.

Utils - Set Parameter
Set a parameter value based on object/parameter path or ID.


Target Type "Path"
object Path ID
the path of the object
/project/project/Camera1
Parameter Path
the relative path of the parameter to the object
/camera/camera/fieldOfView
Value
here, the value is set
20.5

Please be aware, that the path will change when the object hierarchy changes.
A camera in the project root is:
/project/project/Camera1
But when this camera is attached as a child of a folder, its path will be:
/project/project/Folder1/Camera1
Target Type ID
Instead of using a path to the object, it is also possible to use the unique object ID.

Utils - Get Parameter
The “Get Parameter“ action is configured similarly to the “Set Parameter“ action.
Instead of setting the parameter value, this action reads the parameter and uses it as data within the workflow.
Utils - Get Object for ID
With this action, it is possible to get the object path from a given object ID.
For example, define the ID as “Camera1“, and the resulting value will be /project/project/Camera1 (if the camera is in the project root)."
Call Generic Events
Call Functions
Last updated



