<?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: Help required - duplicate executions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153722#M108262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks to both of you for your input.&amp;nbsp; I do not know why there are duplicate executions. They seem to be initiated around 10 seconds aparts.&amp;nbsp; Too far apart as you say for automatically retrying software, and too far a apart for "double click" syndrome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've realised that my version was quite out of date. I have now upgraded to 5.12.1 (the latest afforded me by the grails plugin)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll see if this occurs again with the updated libraries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your hlep&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 23:50:24 GMT</pubDate>
    <dc:creator>robshep</dc:creator>
    <dc:date>2013-12-19T23:50:24Z</dc:date>
    <item>
      <title>Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153714#M108254</link>
      <description>Dear Activiti-users.The following are the records found&amp;nbsp; in table act_hi_actinst for proc_inst_id_ = 1697https://gist.github.com/robshep/7931498/raw/015e67009d33ec8100534a227e2154bd5dc5e146/gistfile1.txtI noticed that this business object seemed to have multiple processes running.&amp;nbsp; I can only see on</description>
      <pubDate>Thu, 12 Dec 2013 17:58:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153714#M108254</guid>
      <dc:creator>robshep</dc:creator>
      <dc:date>2013-12-12T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153715#M108255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rob.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) what the difference is between a process instance and an execution.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Following thread could help you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/execution-vs-processinstance" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/execution-vs-processinstance&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2) what sort of actions might have taken place to end up with duplicate executions of the same activities.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you pointing to &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;5924 | issueOptionToLandOwner &lt;BR /&gt;5931 | issueOptionToLandOwner&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;There are two user task with different execution Ids but same activityId. I guess they were executed in paralel (may be in parallel loop)&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>Fri, 13 Dec 2013 08:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153715#M108255</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-12-13T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153716#M108256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) Difference between a process-instance and an execution is simple: A PI is the root-execution when you're running a process. When you have, for example a parallel gateway in your process, additional executions are created, each representing a parallel path. These executions ARE NOT PI's, but rather reference the PI as being their parent, indicating that they are a child of it. In that execution, more children can be created (e.g. when another parallel gateway is present in a parallel path). Other occasions where another execution would be created is when you're using a sub-process, boundary-events, …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The table you're referring to indeed show different activities that were executed for the same "activity" (eg. reviewSiteSurvey). Can you share a diagram of the process you're using? Without it, it's difficult to see what can cause the duplicates. Anyway, duplicate executions can occur and are not necessarily problematic. Maybe also the way you complete the tasks, whould be good to know (java-code).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:12:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153716#M108256</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-13T08:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153717#M108257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you to Martin and Frederick for taking the time to offer your advice and opinions - I'm very grateful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the clarification on PI vs Ex - very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As to my problem of duplicate executions - There is no parallel gateway before this task: this task is user-task no. 7 of a33 user tasks.&amp;nbsp; The only parallel gateway is at the end 17+, everything else is user-tasks joined sequentially.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my process (redacted for privacy) - The GREEN process is the earlier noted activity we found to have duplicates (there are some others too)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A href="http://i42.tinypic.com/qoiu6w.jpg" rel="nofollow noopener noreferrer"&gt;http://i42.tinypic.com/qoiu6w.jpg&lt;/A&gt;&lt;SPAN&gt;[/IMG] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other points to remark upon are as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are occasionally some "early abort" end stages. where the user can decide to end the process after some particular user tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This functionality is created using a process variable set by a required form variable named "proceedAfter"+activityId &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Two conditional sequence flows are connected to the user task - one looks at variable=="YES" (this links to next user task) and the other matches on variable=="NO" (which links to a local end-task) (The form parameters are enumerated YES/NO and can't be null or anything else)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other thing worth mentioning is that each task also has a boundary timer event, which fire off 3 times after overdue time, which fires a script activity, which in turn fires a mail activity to send the reminders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are not shown in the diagram because they are set in code at runtime. (to make a cleaner/simpler diagram)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All user tasks use the same completion form that renders any form variables for submission and calls back to the following line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;formService.submitTaskFormData(taskId, map)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that I have explained this process sufficiently.&amp;nbsp; I think I will manually delete one of the duplicate executions from each of the multiples that I find.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any further assistance or suggestions that you have, as to why some processes have duplicate executions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 22:27:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153717#M108257</guid>
      <dc:creator>robshep</dc:creator>
      <dc:date>2013-12-17T22:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153718#M108258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not see reason why it has 2 executions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Next steps proposals:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Could you create jUnit test for it?&lt;/LI&gt;&lt;LI&gt;Did you try to debug it? (e.g. BreakPoint in org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.execute(ActivityExecution))&lt;/LI&gt;&lt;/UL&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, 18 Dec 2013 08:52:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153718#M108258</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-12-18T08:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153719#M108259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although valid, it's not recommended to use multiple outgoing sequence-flows on an activity. Rather, better to add an exclusive gateway after the task with 2 outgoing flows. But that should not explain the behaviour, but just to make sure, can you try using gateways and see if that has duplicate executions of the activities as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The additional executions can be explained by the usage of the timer boundary-events. A bondary-event will create a seperate execution scope around the activity it's attached to. I'll double-check the behaviour of the execution-listeners responsible for adding the ACT_HI_ACTINST instances, might be that it's added BEFORE the scope is created under the parent-execution, and added again when the completing child-execution. I'll come back on this today..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:52:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153719#M108259</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T08:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153720#M108260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also remarkable is that the start and end-times of the activities are seconds apart. If something goes wrong with the scope-creation, I expect the difference to be zero or maybe a couple of millis…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:55:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153720#M108260</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153721#M108261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have verified the behaviour of boundary-events and their impact on HistoricActivityInstances. I thought they created duplicates (hence the deleted post &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;), but I was testing it wrong. Boundary-events don't cause duplicate executions. I suggest trying the exclusive gateway approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:58:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153721#M108261</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-19T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153722#M108262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks to both of you for your input.&amp;nbsp; I do not know why there are duplicate executions. They seem to be initiated around 10 seconds aparts.&amp;nbsp; Too far apart as you say for automatically retrying software, and too far a apart for "double click" syndrome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've realised that my version was quite out of date. I have now upgraded to 5.12.1 (the latest afforded me by the grails plugin)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll see if this occurs again with the updated libraries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your hlep&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 23:50:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153722#M108262</guid>
      <dc:creator>robshep</dc:creator>
      <dc:date>2013-12-19T23:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help required - duplicate executions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153723#M108263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For your information, the problem of doubled execution occurs again (using version 5.22.0).&lt;/P&gt;&lt;P&gt;I am also using the exclusive gateway approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 13:33:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-required-duplicate-executions/m-p/153723#M108263</guid>
      <dc:creator>yossra</dc:creator>
      <dc:date>2019-05-30T13:33:56Z</dc:date>
    </item>
  </channel>
</rss>

