When to use StateMachine

This activity is used to represent a set of complex rules and conditions, and to process various inputs.

State machine

Activity: The StateMachine is an activity that helps as a container to store the status of something and tend to change based on the instructions/inputs that changes one or more states and may cause other actions to take place.