AnsweredAssumed Answered

How to jump from callActivity to the end of process?

Question asked by shirdrn on Mar 28, 2011
Latest reply on Mar 28, 2011 by jbarrez
I define 2 simple processes using service task(service tasks are required), and one calls another using "<callActivity>", e.g. A calls B.
when starting process A, the service task handler(in the following) throws exceptions in process B. now i want to catch the exceptions, and then jump to end of the whole process. that is… the process is stopped as i know.

public class ServiceTask1 implements JavaDelegate {
   public void execute(DelegateExecution execution) throws Exception {
      try {
         // throw exceptions
      } catch (Exception e) {
         [b]// here catch exceptions, and the whole process is terminated as expectation.[/b]

How can i to do?

Thanks in advance.