<?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: Workflow failure test in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221090#M174220</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;Correct me if i'm wrong but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. It looks like when the job retry count is set to 0, it will not be picked up by the job executor anymore. So it's not possible to get a trigger when the job actually fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The stack trace seems to be stored as blob but JobCollectionResource and JobResource do not return them in the REST API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 18:32:49 GMT</pubDate>
    <dc:creator>testn</dc:creator>
    <dc:date>2016-03-07T18:32:49Z</dc:date>
    <item>
      <title>Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221084#M174214</link>
      <description>I saw that there are multiple examples of unit tests that test the workflow by waiting until the process count is 0. However, the workflow can stop due to several reasons including failure. I wonder what the right way to monitor and handle workflow execution failure?</description>
      <pubDate>Tue, 01 Mar 2016 19:02:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221084#M174214</guid>
      <dc:creator>testn</dc:creator>
      <dc:date>2016-03-01T19:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221085#M174215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Activiti, when an exception happens, the process instance is rolled back to the previous state in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you really, you need to catch the exception in the code calling Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only place where this doesn't work like that is in jobs: there the exception is stored in the job row in case of failure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:30:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221085#M174215</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-01T21:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221086#M174216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. So there is no good way to inspect the failure and error? I use REST API to kick off&amp;nbsp; asynchronous workflow and would like to wait until the workflow completes or fails. If it fails, I would like to know why.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 22:19:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221086#M174216</guid>
      <dc:creator>testn</dc:creator>
      <dc:date>2016-03-01T22:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221087#M174217</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;Each failed job has &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.runtime.Job#getExceptionMessage&lt;/CODE&gt;&lt;SPAN&gt;. &lt;/SPAN&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, 02 Mar 2016 08:28:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221087#M174217</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-02T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221088#M174218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. It seems to be like that. I do have a few more questions though:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Can I expect that the workflow will be in "suspended" state when the job failed? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. It looks like it only keeps the exception message detail but not the type of the exception itself?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 17:02:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221088#M174218</guid>
      <dc:creator>testn</dc:creator>
      <dc:date>2016-03-04T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221089#M174219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Depends on your definition of 'suspended'. The process definition will not move past the job … but other parts of the process definition could still be moving on (in case you have parallel gateways and such).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The stacktrace is also saved in the database and you should be able to get it via the Job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 10:34:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221089#M174219</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-07T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221090#M174220</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;Correct me if i'm wrong but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. It looks like when the job retry count is set to 0, it will not be picked up by the job executor anymore. So it's not possible to get a trigger when the job actually fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The stack trace seems to be stored as blob but JobCollectionResource and JobResource do not return them in the REST API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:32:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221090#M174220</guid>
      <dc:creator>testn</dc:creator>
      <dc:date>2016-03-07T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow failure test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221091#M174221</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;1) you can reset retry count again by ManagementService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) you can extend rest service in that case.&lt;/SPAN&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, 08 Mar 2016 07:22:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-failure-test/m-p/221091#M174221</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-08T07:22:36Z</dc:date>
    </item>
  </channel>
</rss>

