<?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: Rollback to previous state in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186352#M139482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin for your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this &amp;lt;code&amp;gt;activiti:async="true"&amp;lt;/code&amp;gt; what do you mean to make service task asynchronous?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 03:35:36 GMT</pubDate>
    <dc:creator>galapea</dc:creator>
    <dc:date>2014-11-20T03:35:36Z</dc:date>
    <item>
      <title>Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186350#M139480</link>
      <description>Hello,I have a service task of type camel. My route using camel default error handler.If there is error in the camel route, it is always proceeds to the receive task.How to make the execution rollback to the previous state (service task) ?I need this to monitor if there is error in some process, the</description>
      <pubDate>Mon, 17 Nov 2014 09:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186350#M139480</guid>
      <dc:creator>galapea</dc:creator>
      <dc:date>2014-11-17T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186351#M139481</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 am not camel expert, but I wil try to help. In your case&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; protected void handleCamelException(Exchange exchange) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception camelException = exchange.getException();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean notHandledByCamel = exchange.isFailed() &amp;amp;&amp;amp; camelException != null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (notHandledByCamel) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("Unhandled exception on camel route", camelException);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not throw exception, because exception is handled by camel and that's why no activiti exception is thrown. It causes that transaction is not rolled back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you want to keep process instance in service task after exception thrown:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. make service task asynchronous (to rollback transaction to service task only)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. do not handle camel exception (I would need more investigation how to do that.)&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, 19 Nov 2014 08:02:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186351#M139481</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-11-19T08:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186352#M139482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin for your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this &amp;lt;code&amp;gt;activiti:async="true"&amp;lt;/code&amp;gt; what do you mean to make service task asynchronous?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 03:35:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186352#M139482</guid>
      <dc:creator>galapea</dc:creator>
      <dc:date>2014-11-20T03:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186353#M139483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 07:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186353#M139483</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-11-20T07:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186354#M139484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, this is not the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;s&amp;gt;Finally it's working now by using &amp;lt;b&amp;gt;ExchangePattern.InOut&amp;lt;/b&amp;gt;&amp;lt;/s&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using InOut making the process never reach "receiveTask".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 09:59:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186354#M139484</guid>
      <dc:creator>galapea</dc:creator>
      <dc:date>2014-11-24T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rollback to previous state</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186355#M139485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a pull request for this exact problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/400" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/400&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is waiting to be checked and merged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use this patch, you can throw a BPMNError and deal with in BPMN diagram using a boundary catch exception event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 13:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rollback-to-previous-state/m-p/186355#M139485</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2014-11-24T13:02:05Z</dc:date>
    </item>
  </channel>
</rss>

