<?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 Re: Is it possible to fail execution manually in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214281#M167411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say fail manually, what do you really mean?&lt;/P&gt;&lt;P&gt;Any exception will fail the process, but have an idea that this isnt what you really mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a scenario with more details.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 16:10:00 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2016-12-19T16:10:00Z</dc:date>
    <item>
      <title>Is it possible to fail execution manually</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214280#M167410</link>
      <description>Hi,I would like to create one rest endpoint, in which I wanted to pass execution id&amp;nbsp;and based on execution id, I would like fail the execution manually.Is this possible, to fail execution manually? If yes,&amp;nbsp;the how to do it ?Thanks,</description>
      <pubDate>Mon, 19 Dec 2016 13:04:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214280#M167410</guid>
      <dc:creator>jogin</dc:creator>
      <dc:date>2016-12-19T13:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to fail execution manually</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214281#M167411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say fail manually, what do you really mean?&lt;/P&gt;&lt;P&gt;Any exception will fail the process, but have an idea that this isnt what you really mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a scenario with more details.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 16:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214281#M167411</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2016-12-19T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to fail execution manually</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214282#M167412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;My scenario is as below:&lt;/P&gt;&lt;P&gt;I have one workflow which has async job. This async job, actually triggers some another job that is not part of Activiti. Now, when this job gets failed, I would like to notify Activiti that this job gets failed and eventually, I would like to fail the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my question is when job (that is not part of Activiti) fails, how could I fail the Activiti process ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 05:06:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214282#M167412</guid>
      <dc:creator>jogin</dc:creator>
      <dc:date>2016-12-21T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to fail execution manually</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214283#M167413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jogin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you are creating a Java Delegate (Service Task) to call outside the workflow engine.&lt;BR /&gt;If the external call fails, have your service throw a BpmnError as shown in the following code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;public class Example implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(DelegateExecution delegateExecution) throws Exception {&lt;BR /&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * My logic&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; throw new BpmnError("Error code", e.getMessage());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, you can catch the error in your process using an Error Boundary event (make sure the error code you throw matches the boundary error code you are watching for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:07:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-fail-execution-manually/m-p/214283#M167413</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2016-12-21T17:07:16Z</dc:date>
    </item>
  </channel>
</rss>

