I'm getting an Exception : can't continue execution on locked tokens. signalling the same token that executes an action is not allowed.
Actually I'm running a process, After I come out of one task, I do save the processInstance and then continue to the next transition.
The code goes like this
......//Execute one process...Then,
String transitionKey = "Next Transiiton";
jbpmContext.save(ctx.getProcessInstance());
ctx.getProcessInstance().signal(transitionKey);
This is specific to JBPM3.1 as there you can't do begin or end transaction, When you close a JBPMContext, the transaction is automatically committed/Rolledback.
Any help would be appreciated.
This code looks strange to me. Why do you save your jbpmContext in between nodes?
Regards,
Koen