JBoss Community

Re: Jump to end state from Node

created by Sasi R in jBPM Development - View the full discussion

SetNode does not work, it always starts node after the one you set. Below is the correct code

 

Transition leavingTransition = new Transition(DYNAMIC_TRANSITION);

leavingTransition.setTo(executionContext.getProcessDefinition().getNode("Nodename"));

leavingTransition.setFrom(executionContext.getNode());

executionContext.leaveNode(leavingTransition);

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community