Adjust State#
This task is used to change the state of an entity in the MES System. The entity must have a state model associated to it.
Inputs#
| Name | Data Type | Description |
|---|---|---|
| entity | EntityType | Entity whose state you wish to change |
| toState | String | State name to which you want to change |
| Activate | any | Activate the adjust state |
Outputs#
| Name | Data Type | Description |
|---|---|---|
| Success | Boolean | If there was no problem emits a true |
| Error | Error | Error that occurred during the processing of this task |
Settings#
On the General Tab, you have the usual settings and the following settings:
| Name | Data Type | Default | Description |
|---|---|---|---|
| Entity | Resource | Resource | Entity type that is going to change state (only the entities defined to be usable by Connect IoT will appear) |
| Instance | EntityInstance | Instance that is going to change state | |
| State model State | String | Default state to which it will change when activated. Default states are dependent upon MES modelling |
Behavior#
When the task is activated, it will load the received input MES EntityInstance by id or name and change the state name to the given input state name or to the given default name, changing the state of the MES Resource.
Remarks#
There is no particular remark to be made.
