[jboss-user] [jBPM] New message: "Re: How to terminate a forked process"
Jas Lam
do-not-reply at jboss.com
Tue Jan 19 12:41:03 EST 2010
User development,
A new message was posted in the thread "How to terminate a forked process":
http://community.jboss.org/message/520891#520891
Author : Jas Lam
Profile : http://community.jboss.org/people/lamj1
Message:
--------------------------------------------------------------
public void testForking()
{
ProcessInstance processInstance = executionService.startProcessInstanceByKey("ForkProcess");
String pid = processInstance.getId();
Execution mainExe = executionService.findExecutionById(pid);
executionService.endProcessInstance(mainExe.getId(), "active");
}
Just make sure to endProcessInstance on the top parent process. Attempting to end a child process can cause an exception.
Also any of your child process contain a subprocess, the subprocess also must to be terminated prior to this.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520891#520891
More information about the jboss-user
mailing list