<?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 Everything is Reverted on Error!!! in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/everything-is-reverted-on-error/m-p/136459#M95708</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;Consider the following sequential process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1- start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2- user task: user confirmation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3- service task: transferring 1000$ to another bank account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4- service/script task: send an email to the user (bugus)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5- user task: user notification&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6- finish&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assume that there is a small bug in the task of step 4 (sending email).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, when the user clicks the "confirm" button in step 2, the activiti engine performs the step 3 and transfers the 1000$, then it tries to run the step 4 and fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The bad thing is that the activiti engine reverts its internal state to step 2, but the money is gone!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can we prevent the activiti engine from going back?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, is there a work-around by modifying the bpmn process with some kind of error handling?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 12:29:24 GMT</pubDate>
    <dc:creator>flexicoder</dc:creator>
    <dc:date>2013-05-16T12:29:24Z</dc:date>
    <item>
      <title>Everything is Reverted on Error!!!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/everything-is-reverted-on-error/m-p/136459#M95708</link>
      <description>Hi,Consider the following sequential process:1- start2- user task: user confirmation3- service task: transferring 1000$ to another bank account4- service/script task: send an email to the user (bugus)5- user task: user notification6- finishAssume that there is a small bug in the task of step 4 (send</description>
      <pubDate>Thu, 16 May 2013 12:29:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/everything-is-reverted-on-error/m-p/136459#M95708</guid>
      <dc:creator>flexicoder</dc:creator>
      <dc:date>2013-05-16T12:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Everything is Reverted on Error!!!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/everything-is-reverted-on-error/m-p/136460#M95709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course there are good ways to implement this kind of behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make the step 4 an async task. This means that it will try to execute the logic in a asynchronous job. When it fails it will retry 2 times and then the job will be in a failed state and the process state will be in step 4. You can also implement error handling in the logic of step 4 and handle the error there or create a BpmnError that you can catch in an error boundary event.&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>Thu, 16 May 2013 12:43:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/everything-is-reverted-on-error/m-p/136460#M95709</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-05-16T12:43:27Z</dc:date>
    </item>
  </channel>
</rss>

