State

Estimated reading: 2 minutes 1476 views

A state machine is a type of automation that uses number of states in its execution. We can get into the initial state when triggered by an activity and it exits this state when another activity is triggered.

There are two activities that are specific to state machines, namely State and Final state. The state machine acts like the main branch of a tree, within which we add the states and final state to execute the workflow. The state activity has three categories within itself- Entry, Exit and Transition.

Entry- Indicates the activity that the bot must execute while entering the state

Exit- Indicates the activity that the bot executes while exiting the state

The Entry and Exit sections enable you to add entry and exit triggers for the selected state, while the Transition(s) section displays all the transitions linked to the selected state.

Transition-Indicates the condition that the bot must perform to jump from one state to another

Transitions are expanded when you double-click them, just like the State activity. They contain three sections, TriggerCondition and Action, that enable you to add a trigger for the next state or add a condition under which an activity or sequence is to be executed.

The final state has only one activity within it which is just the Entry box. This box indicates the final state of the activity when the execution is complete.

Share this Doc

State

Or copy link

CONTENTS