Building Blocks > Domain-Specific Building Blocks > State Machine Building Block
State Machine Building Block
The state machine building block provides the ability to define the valid transition states and the validation logic to ensure than an object can only transition to the proper states from any given state. State machines can be defined for any object that has states. A state machine is defined for job orders that can be used as an example. For more information, see Example State Machine (State Machine Building Block).
The state machine building block is comprised of an abstract building block (PTC.StateMachine) and an implementation building block (PTC.StateMachineImpl). You can view the contents of these building blocks by viewing the PTC.StateMachine and PTC.StateMachineImpl projects in ThingWorx Composer.
Dependencies
The PTC.StateMachine project has the following dependencies:
PTC.Base
The PTC.StateMachineImpl project has the following dependencies:
PTC.StateMachine
PTC.DefaultConfiguration
Was this helpful?