A state machine is a type of automation that uses a finite number of states in its execution. It can go into a state when it is triggered by an activity, and it exits that state when another activity is triggered1. A state machine consists of states, transitions, and actions1. The components that define a state within a state machine in UiPath Studio are:
•Entry Actions: These are the activities that are executed when the state is entered1. For example, an entry action can be used to initialize a variable, display a message, or log some information1.
•Exit Actions: These are the activities that are executed when the state is exited1. For example, an exit action can be used to clean up some resources, close an application, or update a status1.
•Transition Actions: These are the activities that are executed when a transition from one state to another occurs1. For example, a transition action can be used to assign a value, send an email, or invoke a workflow1.
•Trigger Conditions: These are the conditions that determine when a transition from one state to another should happen1. For example, a trigger condition can be based on a variable value, a user input, or a timer1.