<?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: Activiti Optimistic Lock Exception with multiple process engines. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9777#M4354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. You don't need to remove&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;gateway. You need to replace Exclusive Gateway to Parallel Gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;In your process definition, you are connecting from the parallel gateway to the exclusive gateway.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;After the exclusive gateway&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;,&amp;nbsp;two executions will be generated and do not match the requirements.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 16:56:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-28T16:56:56Z</dc:date>
    <item>
      <title>Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9770#M4347</link>
      <description>We have a bpmn definition, using which we generate about 70K workflows each quarter. All this time, we were creating workflows only in one database. There is an organizational pitch to create workflows in multiple databases. After we introuduced multiple database configuration, we noticed optimistic</description>
      <pubDate>Fri, 23 Feb 2018 21:01:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9770#M4347</guid>
      <dc:creator>gjaya26</dc:creator>
      <dc:date>2018-02-23T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9771#M4348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I would expect there not to be any data loss.&amp;nbsp;An issue like this was discussed recently and in that case also there was no data loss&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/235645"&gt;JobEntity [id=*****] was updated by another transaction concurrently&lt;/A&gt;&amp;nbsp;The error suggests that two engines are trying to do the same thing at the same time and only one of them therefore succeeds (i.e. a race condition). As covered in the referenced thread, this is more likely to happen with async tasks and more likely with v5 than v6. Are you seeing the error on an async task/s? If you could share your process definition and which part you see the error on that would help. From the error it looks like you have a form on a task - is the error always related to that form?&amp;nbsp;Are you using v5?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:43:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9771#M4348</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-26T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9772#M4349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, we are using version 5. The bpmn file is attached at the location:&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="7319" __jive_macro_name="document" _jive_internal="true" class="jive_macro jive_macro_document link-titled" href="https://community.alfresco.com/docs/DOC-7319-gaapbpmn20xml" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error occurs when we try to create workflows. there are about 70K workflows. The error also&amp;nbsp; occurs when&amp;nbsp; the system tries to move a workflow automatically from preparer na to controller na state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:39:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9772#M4349</guid>
      <dc:creator>gjaya26</dc:creator>
      <dc:date>2018-02-26T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9773#M4350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect&amp;nbsp;the parallelGateway is the reason the jobExecutor is in use&amp;nbsp;even though you don't have anything explicitly marked async. You could try turning off&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;jobExecutorActivate&lt;/SPAN&gt; and asyncExecutor (using settings in&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/226205"&gt;clustering with async tasks and the async executor&lt;/A&gt;&amp;nbsp;) see if it all still works. Other paths available to try are switching to the async job executor and/or upgrading to v6. Other threads on this are&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/226818"&gt;using asyncExecutor but ActivitiOptimisticLockingException on activiti 5.21.0&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/232624"&gt;Enable jobExecutorActivate - Impact&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:41:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9773#M4350</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-26T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9774#M4351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;It might not be an infrastructure, it's just a process problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;In your process definition, you are connecting from the parallel gateway to the exclusive gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;After the exclusive gateway&lt;/SPAN&gt;, then two more executions will move.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;parallelGateway&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;id&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;"sid-CC0E1059-1A74-4ABC-AE40-1149501DE4DF"&lt;SPAN class=""&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;parallelGateway&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;exclusiveGateway&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;id&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;"sid-BB5FBBF6-21D9-40FE-B038-91A6295B7D39"&lt;SPAN class=""&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;exclusiveGateway&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/19409_スクリーンショット 2018-02-27 1.03.08.png" style="width: 620px; height: 254px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:08:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9774#M4351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9775#M4352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi daisuke,&lt;/P&gt;&lt;P&gt;This is how the requirements are laid out. At the start, they want to have both the tasks in parallel. User can take action only on one task. After the user takes action, eg: let us say preparer approval, the preparer na task should no longer be available and the next set of tasks need to be created.&lt;/P&gt;&lt;P&gt;I am not sure if i can remove the gateways above and still satisfy the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 19:33:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9775#M4352</guid>
      <dc:creator>gjaya26</dc:creator>
      <dc:date>2018-02-27T19:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9776#M4353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;If we turn off jobExecutorActivate, then when the user takes action, would the workflow state move forward?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:07:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9776#M4353</guid>
      <dc:creator>gjaya26</dc:creator>
      <dc:date>2018-02-27T20:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Optimistic Lock Exception with multiple process engines.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9777#M4354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. You don't need to remove&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;gateway. You need to replace Exclusive Gateway to Parallel Gateway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;In your process definition, you are connecting from the parallel gateway to the exclusive gateway.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;After the exclusive gateway&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;,&amp;nbsp;two executions will be generated and do not match the requirements.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:56:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-optimistic-lock-exception-with-multiple-process-engines/m-p/9777#M4354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T16:56:56Z</dc:date>
    </item>
  </channel>
</rss>

