cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Set State Robot not setting state.

Highlighted
Moonstone

Set State Robot not setting state.

Okay,  This has to be something simple I am missing...

 

I am trying to set state in a workflow to Under Review and it isn't performing that action.  The workflow completes successfully, and does not hang, but the state isn't changed.

 

20170828-104209.png

 

 

 

3 REPLIES 3

Re: Set State Robot not setting state.

Is underreview a valid state(defined in LC template) for the PBO?

Re: Set State Robot not setting state.

Binesh,  yes it is...

20170828-115221.png

 

 

 

Re: Set State Robot not setting state.

Do you need to have set state permission and also have it declared it in the lifecycle. Normally "Under Review" is defined as a "Lock" transition, so it's not a valid state. If you would like to lock it, then you need to have something like this:

wt.maturity.TransitionHandlerFactory.getInstance().transitionTargets(primaryBusinessObject, wt.lifecycle.Transition.LOCK, false);