Commons SCXML2 Unable to jump to provided State

124 Views Asked by At

I am using commons SCXML2 having States and tasks to control the Workflow Engine and initially the engine starts with a initial State and execute State and task in a flow. And our requirement is that we want to persist the State if the Workflow get exited. We are storing the State in the Database from which we want to resume the Workflow. Now i am unable to resume the Workflow with the given State. what i tried...

SimpleTransition initialTransition = new SimpleTransition();
initialTransition.setNext("first");    //jumping to First State         
exec.getStateMachine().setInitialTransition(initialTransition);

I am unable to find how to jump to given state and used the above code to do so but it does not help for me.

0

There are 0 best solutions below