<?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: No process variables if exception is thrown? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152929#M107546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What's the best way via the HistoryService (or another service) to determine if a process has failed?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say to use error boundary event. Error boundary event allows you to specify what to do after the error. And you can search easily for processes which has failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnBoundaryErrorEvent" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnBoundaryErrorEvent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to be able to retrieve process variables from a process if it failed.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;HistoryService, RuntimeService?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 07:35:17 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2013-11-01T07:35:17Z</dc:date>
    <item>
      <title>No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152926#M107543</link>
      <description>If an exception is thrown from a service (or script) task, then none of the process variables added during that process are available after it completes. Is this expected?&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&amp;lt;definitions id="definitions"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; targetNamespace="http://activiti.org/bp</description>
      <pubDate>Wed, 30 Oct 2013 18:39:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152926#M107543</guid>
      <dc:creator>clstokes</dc:creator>
      <dc:date>2013-10-30T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152927#M107544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would expect that 2 script tasks are executed in one transaction. I do not know what you want to achieve. But you can run tasks with async='true'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactions" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactions&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 06:44:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152927#M107544</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-10-31T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152928#M107545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to be able to retrieve process variables from a process if it failed. Do I need to be doing something specifically with transactions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the best way via the HistoryService (or another service) to determine if a process has failed? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 00:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152928#M107545</guid>
      <dc:creator>clstokes</dc:creator>
      <dc:date>2013-11-01T00:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152929#M107546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What's the best way via the HistoryService (or another service) to determine if a process has failed?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say to use error boundary event. Error boundary event allows you to specify what to do after the error. And you can search easily for processes which has failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnBoundaryErrorEvent" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnBoundaryErrorEvent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to be able to retrieve process variables from a process if it failed.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;HistoryService, RuntimeService?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 07:35:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152929#M107546</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-11-01T07:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152930#M107547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a particular field or query I can do for failed processes? Or do I need to set my own process variable and query for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 20:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152930#M107547</guid>
      <dc:creator>clstokes</dc:creator>
      <dc:date>2013-11-02T20:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: No process variables if exception is thrown?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152931#M107548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you have a default service and script task and one of these fail, the transaction is rolled back and the process instance isn't even created and the startProcessInstance call gets back an exception. If you don't want this behavior then you can make a task async and then the transaction is only rolled back to the previous async task. Because then the job mechanism is used, this will be retried 3 times by default and then the job will be in a failed state. Now you can query on these jobs using the JobQuery with the method withException. This will give back all jobs with an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:15:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/no-process-variables-if-exception-is-thrown/m-p/152931#M107548</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-05T13:15:21Z</dc:date>
    </item>
  </channel>
</rss>

