<?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: Completing Transaction Only After Waiting State Finished in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176689#M129819</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;can you elaborate more the use case for it please?&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>Mon, 04 May 2015 08:08:01 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2015-05-04T08:08:01Z</dc:date>
    <item>
      <title>Completing Transaction Only After Waiting State Finished</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176688#M129818</link>
      <description>Hello,I was wondering if it is possible to have a transaction complete for a waiting state after the waiting state has finished. For example, in the user guide regarding transactions:http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactionsThere is a diagram describing the functionality:[img</description>
      <pubDate>Thu, 30 Apr 2015 00:10:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176688#M129818</guid>
      <dc:creator>rallen1</dc:creator>
      <dc:date>2015-04-30T00:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Completing Transaction Only After Waiting State Finished</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176689#M129819</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;can you elaborate more the use case for it please?&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>Mon, 04 May 2015 08:08:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176689#M129819</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-05-04T08:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Completing Transaction Only After Waiting State Finished</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176690#M129820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Martin, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for getting back so quickly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I used the the timer as an example of a waiting state, the use case will work with message catching and signal catching events. From a BPMN point of view, it would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/k2dnsXF.png?1" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/k2dnsXF.png?1&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task1 will task some asynchronous work to be performed by a separate process. The work could theoretically take minutes to days, so the workflow will wait on a message catching event that will be sent by the other process when it is complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a catastrophic fail case where the other process mysteriously fails during its asynchronous work, we would like to be able to have the process send us a generic message and then roll back to right before &lt;/SPAN&gt;&lt;CODE&gt;AssignAsynchronousWork&lt;/CODE&gt;&lt;SPAN&gt;. This way &lt;/SPAN&gt;&lt;CODE&gt;AssignAsynchronousWork&lt;/CODE&gt;&lt;SPAN&gt; can be run again and then wait on the message once more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a normal case, when we have successfully received the message, then the transaction is complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize this could probably be done in the BPMN through something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/PKYDatq.png?1" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/PKYDatq.png?1&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the pattern I am describing would be used so frequently that doing this would pollute the BPMNs. There is also the issue that, in terms of my understanding, the transaction is set at the beginning of waiting stage, so that if&amp;nbsp; Activiti rolls back, it will roll back such that it must receive &lt;/SPAN&gt;&lt;CODE&gt;AsynchronousWorkComplete&lt;/CODE&gt;&lt;SPAN&gt; again in order to progress – unless every task immediately after a message catching event is set to &lt;/SPAN&gt;&lt;CODE&gt;activiti:async="true"&lt;/CODE&gt;&lt;SPAN&gt;. I would prefer to avoid that if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This might all be for folly anyways as there appears to be no mechanism to fail or rollback a workflow through the RuntimeService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though what I am asking for might not be possible, I appreciate you taking the time. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 18:30:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176690#M129820</guid>
      <dc:creator>rallen1</dc:creator>
      <dc:date>2015-05-04T18:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Completing Transaction Only After Waiting State Finished</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176691#M129821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rallen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I realize this could probably be done in the BPMN through something like this:&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;pollute the BPMNs&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Use call activity or parse handler to add event gateway to async work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Event-based gateway acts as wait state transaction is finished there.&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, 06 May 2015 09:28:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-transaction-only-after-waiting-state-finished/m-p/176691#M129821</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-05-06T09:28:28Z</dc:date>
    </item>
  </channel>
</rss>

