cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Create Switch Workflow To Replace State Machine Workflow

If you have a workflow that has a state machine. How would you use a Switch action to replace the state machine?

0 Kudos
Reply
5 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: Create Switch Workflow To Replace State Machine Workflow

Hey Lisa,

you can't, since a Switch action only evaluates the variable and it goes down a particular branch.  It doesn't let you jump between branches.

Not on it's own anyway

You could do some funky workflow design where you have a Switch inside a Loop.  That would simulate a State Machine.  But in that example, you might as well use the State Machine.

Vadim

Reply
Highlighted
Nintex Newbie

Re: Create Switch Workflow To Replace State Machine Workflow

They want us to stay away from the state machines here. They are saying it is slowing down our workflows. I love using the state machine. Now I have to redesign it.

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: Create Switch Workflow To Replace State Machine Workflow

ah ok. Then my idea of a switch with a Loop won't help, since both the Loop and State Machine are affected by Safe Looping.

Alternatively, you could mess with the For Each action.  If you planned to have a State Machine that jumped from State1 to State2 to State3 etc, without going backwards, then you could have a Collection variable with 3 items in it.  Use a For Each and depending on the value during each iteration of the For Each, it'd go into the Switch and then go down the appropriate branch.  That would not be affected by Safe Looping.

Vadim

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Create Switch Workflow To Replace State Machine Workflow

The state machine goes forwards. However, based on rejections or other variables there is a possibility it could go back to a previous state.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Create Switch Workflow To Replace State Machine Workflow

Hi. Did you manage to solve this?

0 Kudos
Reply