Workflow
Definition
Workflows are Pipeline Modules that allow custom logic to be applied to a PEM. They also may trigger data to be sent back to the Device, to other systems, or to save values as Attributes.
Workflows may include
Attributes - Properties that are associated with a Device
Workflow Inputs - New values that arrive from incoming messages
Input Commands - Commands that can be triggered from external sources to manipulate your device
Output Commands - Messages that are sent back to the device or other systems as a result of the workflow
Scripts - Small computer programs that get triggered as the workflow is processed
State Machines - A mechanism for building complex logic that can be executed based on the current state of your device
Example
The Deployment Instance has received a Message from the Plymouth IoT Conveyor Belt (PicBelt0012). The Message states that the bearings are producing a temperature of 425°. This temperature, or data, is sent to the Workflow called temperature. 425° is identified as an integer and is processed to determine that this integer does not fall in the acceptable range. This creates an Output Command to send a Message back to the belt to stop. The value of 425 is also stored as an Attribute so it may be referred to at a later date.