How does State Machine work?

How does State Machine work? when it should be used and what are the benefits.
Please share if you have a working experience with using State Machine in Uipath. If you have a artifact which you can share as example, that will be good.

Regards,
Vijay

1 Like

hi @vizblue_in,

It is has lot of options to be worked with.

  1. You can switch between multiple states in multiple times.
  2. Loop through itself.
  3. Can pass to other state after validating the condition given.
  4. You can use n number of final states.

refer this link for further info.State_Machine. Please find attached a basic flow.

test1.xaml (18.0 KB)

(conditions for the flow you can see in T1, T2, T3 and Please provide your email in State2 to receive email)

Thanks,
Vikas Reddy

3 Likes

HI @vizblue_in

State machine workflows provide a modeling style with which you can model your workflow in an event-driven manner. A StateMachine activity contains the states and transitions that make up the logic of the state machine, and can be used anywhere an activity can be used. There are several classes in the state machine runtime:

  • StateMachine
  • State
  • Transition

Please go through with following links for better understanding:

State Machine Workflows

How to: Create a State Machine Workflow

For example workflow, May be you can see @vikas_reddy_Vicky example.

10 Likes

Sounds like you need to be using a State Machine. Please see the link below for more information

https://forum.uipath.com/t/how-does-state-machine-work/2333/2

2 Likes

Is it possible to have transition somewhere outside the current flowchart?

Hi

Please follow below tutorial,

Thanks,
Karthik

1 Like

Thanks.

Regards,

Vijay

Please check this - State Machines

Hi,
Please follow below tutorial