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