<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to jump from callActivity to the end of process? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-jump-from-callactivity-to-the-end-of-process/m-p/10812#M4156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I define 2 simple processes using service task(service tasks are required), and one calls another using "&amp;lt;callActivity&amp;gt;", e.g. A calls B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public class ServiceTask1 implements JavaDelegate {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// throw exceptions&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} catch (Exception e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[b]// here catch exceptions, and the whole process is terminated as expectation.[/b]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 04:13:46 GMT</pubDate>
    <dc:creator>shirdrn</dc:creator>
    <dc:date>2011-03-28T04:13:46Z</dc:date>
    <item>
      <title>How to jump from callActivity to the end of process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-jump-from-callactivity-to-the-end-of-process/m-p/10812#M4156</link>
      <description>Hi,I define 2 simple processes using service task(service tasks are required), and one calls another using "&amp;lt;callActivity&amp;gt;", 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 e</description>
      <pubDate>Mon, 28 Mar 2011 04:13:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-jump-from-callactivity-to-the-end-of-process/m-p/10812#M4156</guid>
      <dc:creator>shirdrn</dc:creator>
      <dc:date>2011-03-28T04:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to jump from callActivity to the end of process?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-jump-from-callactivity-to-the-end-of-process/m-p/10813#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So let me see if I understood you correctly: you want to catch exceptions that are thrown by service tasks in process B, which is called in process A?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't you just catch the exception in the service task, and follow a transition that goes to the end of the process ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 09:43:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-jump-from-callactivity-to-the-end-of-process/m-p/10813#M4157</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-28T09:43:38Z</dc:date>
    </item>
  </channel>
</rss>

