How to terminate a JBPM processInstance
Posted
by jie-wang
on Stack Overflow
See other posts from Stack Overflow
or by jie-wang
Published on 2010-06-12T15:29:04Z
Indexed on
2010/06/12
15:32 UTC
Read the original article
Hit count: 344
Hi all
I'm using JBPM 4.3 and trying hard to find a way to terminate one processInstance.
First I simply used something like:
executionService.endProcessInstance(processInstanceID, "active");
However I got exception thrown out.
"exception while executing command org.jbpm.pvm.internal.cmd.EndProcessInstance
java.lang.NullPointerException"
Then I googled to find this post http://community.jboss.org/thread/146478, which didn't seem to give a resolution. I tried nevertheless to end all executions of the processInstance by calling
((ExecutionImpl) execution).end();
But the same exception was thrown again when I finally try to call executionService.endProcessInstance(processInstanceID, "active");
Did anyone have the same experience and solution?
© Stack Overflow or respective owner