Home > Glossary

State Machine

Definition

A State Machine establishes the current state or condition of a Device. Based on the current state of the Device, certain actions can be valid or invalid. State machines are built on a Workflow. They may contain Scripts. Also, a Workflow may contain many State Machines.

For more information on State Machines, visit this link.




Example

The Plymouth IoT Conveyor Belt received a Message to start. However, the belt was currently running. Since the current state of the belt was running, the Message containing start was determined to be invalid and was ignored.

The next morning, the Plymouth IoT Conveyor Belt received a Message to start. Because the belt was not running and the State was idle, the Message containing start was used to start the conveyor belt.