<?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: When a CallActivity fails, the Workflow never ends in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236087#M189217</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;BR /&gt;&lt;SPAN&gt;The easiest way to accomplish this is probably to catch the exception in the sub process and use an error end event there. On the call activity you can then define a boundary error event. This is an unit test that's part of the Activiti test suite:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testCatchErrorOnCallActivity-parent.bpmn20.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testCatchErrorOnCallActivity-parent.bpmn20.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 20:06:12 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2016-02-04T20:06:12Z</dc:date>
    <item>
      <title>When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236080#M189210</link>
      <description>Hi everyone,I'm facing a problem with asynchronous workflows.I have this design:workflow1:start -&amp;gt; ScriptActivity1 (is throwing a NullPointerException to test error handling) -&amp;gt; endworkflow2:start -&amp;gt; CallActivity (which calls workflow1) -&amp;gt; endI'm seeing that if I deploy the workflow as a</description>
      <pubDate>Mon, 25 Jan 2016 20:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236080#M189210</guid>
      <dc:creator>calbertts</dc:creator>
      <dc:date>2016-01-25T20:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236081#M189211</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;will have to reproduce the issue and investigate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you create a unit test for it ? (it will help a lot for reproducing the issue)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 07:11:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236081#M189211</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2016-01-26T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236082#M189212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vasile,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answering, I've created a unit test trying to reproduce the scenario, when the variable ASYNC is true, the error isn't shown and I don't know how to catch it, when it's false it works as I expect.&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, 01 Feb 2016 17:41:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236082#M189212</guid>
      <dc:creator>calbertts</dc:creator>
      <dc:date>2016-02-01T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236083#M189213</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;BR /&gt;&lt;SPAN&gt;I would say that the problem is that job is executed and exception is thrown. Based on the exception _retries are decreased (from 3 -&amp;gt; 0). Job is re-executed 3 times and it is not fetched any more. That's normal async job exception handling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can re-execute the job again by setting retries to e.g. 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#jobExecutorConfiguration" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#jobExecutorConfiguration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 08:31:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236083#M189213</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-02T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236084#M189214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't want retries, I just want to catch the exception the first time and then to deal with the exception, for any reason in the unit test running in debug mode it seems the custom command is never executed, do you know why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 14:11:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236084#M189214</guid>
      <dc:creator>calbertts</dc:creator>
      <dc:date>2016-02-02T14:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236085#M189215</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;BR /&gt;&lt;SPAN&gt;I've just add your test to the activiti test project template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The exception is &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiException: problem evaluating script: javax.script.ScriptException: org.activiti.engine.ActivitiException: Cannot get property 'prop' on null object&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you create jUnit test project please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:57:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236085#M189215</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-03T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236086#M189216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created this repo with the Unit Test template for activiti:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/calbertts/activiti-unit-test-template" rel="nofollow noopener noreferrer"&gt;https://github.com/calbertts/activiti-unit-test-template&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading the docs, I was able to came up with solution to finish the parent workflow if a subworkflow fails, I'm using a boundary event, I'm not sure if this would be the right approach, but the problem now is that I'd like to make the parent workflow fail if a subprocess fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the unit test I added some logs to show the execution flow, I'm seeing that the parent process receives this event when the subprocess fails: ACTIVITY_ERROR_RECEIVED&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the main process finishes successfully with: JOB_EXECUTION_SUCCESS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I throw an error if a sub process fails?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember I'm running everything asynchronously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:20:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236086#M189216</guid>
      <dc:creator>calbertts</dc:creator>
      <dc:date>2016-02-04T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: When a CallActivity fails, the Workflow never ends</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236087#M189217</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;BR /&gt;&lt;SPAN&gt;The easiest way to accomplish this is probably to catch the exception in the sub process and use an error end event there. On the call activity you can then define a boundary error event. This is an unit test that's part of the Activiti test suite:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testCatchErrorOnCallActivity-parent.bpmn20.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testCatchErrorOnCallActivity-parent.bpmn20.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 20:06:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-a-callactivity-fails-the-workflow-never-ends/m-p/236087#M189217</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2016-02-04T20:06:12Z</dc:date>
    </item>
  </channel>
</rss>

