hi,
I would like to know how to end a path of execution in jBPM. In fact, i have a path of execution which should end if a certain condition is evaluated to true, so that others activities will not take place.
I've tried these solutions:
1.
if(condition){ executionContext.getToken().end; } else{ executionContext.leaveNode(); }
if(condition){ Node endNode = executionContext.getProcessDefinition().findNode("end"); executionContext.getToken().setNode(endNode); } else{ executionContext.leaveNode(); }
if(condition == false){ executionContext.leaveNode(); }