Using Entities in Workflows
Entities can be used directly inside Workflows to react to data changes or to read and write values.
The easiest way to create entity-based workflow nodes is by dragging an entity entry directly into the Workflow Editor.
Depending on where the entity is dropped, Grid Studio automatically creates the appropriate event or action node.

Adding Entity Events
A workflow event can be created by dragging an entity value from the Entities view into the Workflow Editor.
This creates a Value Change Event that triggers whenever the selected entity value changes.
The event provides the current value as part of the event data, allowing the workflow to react to changes of that specific entity.
This is commonly used for reacting to device status changes, sensor values, or other dynamic system data.
Entity Change Events
In addition to value-specific events, workflows also support Object Entity Value Change events.
This event listens to all entity value changes of an object.
Whenever any entity value changes, the event is triggered and provides additional information including:
the valuePath of the changed entity
the new value
This allows workflows to react to dynamic or unknown entity structures where the specific entity path may not be known in advance.
Entity Actions
Workflows can also read or modify entity data using actions.
Several actions are available for working with entity values and datasets.
Get / Set Entity
These actions operate on a single entity value.
Get Entity retrieves the value of a specific entity entry.
Set Entity updates the value of that entity.
This is commonly used when workflows need to read or modify individual values.
Get / Set Data
These actions operate on entire entity structures rather than individual values.
They are typically used when working with parent entities that contain multiple child entries.
Get Data retrieves the full entity dataset.
Set Data writes a complete data structure back to the entity.
This allows workflows to process or replace larger structured datasets.
Last updated