[jboss-user] [JBoss jBPM] - Re: Cancel a process in a repeated action

vbub do-not-reply at jboss.com
Fri Jul 13 11:47:35 EDT 2007


ok, i just wanted to post that i solved my problem. I just have to make sure that i use the jbpmContext out of the executionContext of my action. 

CancelProcessInstanceCommand cpic = new CancelProcessInstanceCommand(task.getProcessInstance().getId());
  | 		cpic.setCancelSubProcesses(true);
  | 		try {
  | 			cpic.execute(executionContext.getJbpmContext());
  | 		} catch (Exception e) {
  | 			// what ever... 
  | 		}



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064060#4064060

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064060



More information about the jboss-user mailing list