[jboss-user] [jBPM] - jBPM 4.4 How do I force a process instance to end
Kevin Moodley
do-not-reply at jboss.com
Wed Jul 28 13:36:12 EDT 2010
Kevin Moodley [http://community.jboss.org/people/kevinmoodley] replied to the discussion
"jBPM 4.4 How do I force a process instance to end"
To view the discussion, visit: http://community.jboss.org/message/554871#554871
--------------------------------------------------------------
By the way I tried using
processEngine.getExecutionService().endProcessInstance(instanceId, ProcessInstance.STATE_ENDED);
but this threw a null-pointer exception:
DefaultCommandService - exception while executing command org.jbpm.pvm.internal.cmd.EndProcessInstance at 6649
java.lang.NullPointerException
at org.jbpm.pvm.internal.util.ReflectUtil.installDeploymentClassLoader(ReflectUtil.java:385)
at org.jbpm.pvm.internal.util.ReflectUtil.instantiateUserCode(ReflectUtil.java:412)
at org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:63)
at org.jbpm.pvm.internal.wire.usercode.UserCodeReference.getObject(UserCodeReference.java:47)
at org.jbpm.pvm.internal.wire.usercode.UserCodeEventListener.notify(UserCodeEventListener.java:38)
at org.jbpm.pvm.internal.model.op.ExecuteEventListener.perform(ExecuteEventListener.java:81)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:672)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:632)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:579)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:568)
at org.jbpm.pvm.internal.model.ExecutionImpl.end(ExecutionImpl.java:386)
at org.jbpm.pvm.internal.cmd.EndProcessInstance.execute(EndProcessInstance.java:48)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:40)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.endProcessInstance(ExecutionServiceImpl.java:117)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554871#554871]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100728/a274977d/attachment-0001.html
More information about the jboss-user
mailing list