<?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: How to distinguish between Activity_Started Events of the same Activity ID? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15991#M7078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so you listener will (must) implement the ActivitiEventListener interface which gives you access to the execution context (DelegateExecution).&lt;BR /&gt;Therefore, you have access the process instance variables.&lt;BR /&gt;I would add a simple loop counter (if you use a serial multi-instance loop this is provided for you) as a process variable and then inside your listener add this to the Activity ID (e.g. MyTask:2).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 01:00:57 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-02-27T01:00:57Z</dc:date>
    <item>
      <title>How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15988#M7075</link>
      <description>Hi,I'm trying to catch all the events raised in consequence of starting or completing of serviceTask Activities.Event types: ACTIVITY_STARTED, ACTIVITY_COMPLETED.My system is integrated with Activiti through ActivMQ by defining the property "typedEventListeners" and implementing a class that catch t</description>
      <pubDate>Thu, 23 Feb 2017 15:04:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15988#M7075</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-02-23T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15989#M7076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maayan,&lt;BR /&gt;&lt;BR /&gt;I don't have an answer for you right now - but I'm digging a little bit deeper.&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 22:44:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15989#M7076</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-02-24T22:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15990#M7077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Thank you.&lt;BR /&gt;I keep trying to find an appropriate solution.&lt;BR /&gt;Maayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2017 07:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15990#M7077</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-02-26T07:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15991#M7078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so you listener will (must) implement the ActivitiEventListener interface which gives you access to the execution context (DelegateExecution).&lt;BR /&gt;Therefore, you have access the process instance variables.&lt;BR /&gt;I would add a simple loop counter (if you use a serial multi-instance loop this is provided for you) as a process variable and then inside your listener add this to the Activity ID (e.g. MyTask:2).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 01:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15991#M7078</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-27T01:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15992#M7079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;Hi Greg,&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;First of all, thank you for your answer.&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;One problem with this solution-&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;I cannot be sure there will be a counter on the loop and if so, I cannot be sure what is the counter variable name.&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;The process model is defined by different people and I need to be able to handle each case without making any assumption about the process model flow or variables.&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;Is it sound like something possible?&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;Thank you,&lt;/P&gt;&lt;P dir="ltr" style="margin: 0cm 0cm 8pt;"&gt;Maayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 08:02:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15992#M7079</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-02-27T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15993#M7080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, if you cannot control the definition of the processes, and you don't even know if a loop is in the model, then there's not a whole helluva lot you can do.&lt;BR /&gt;&lt;BR /&gt;The best thing I could suggest would be to add a parse handler to the engine and add a listener that handles the logic to make each task name unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reality here is BPM is about controlling your processes, if you have no controls in place in the authoring and deployment side of things, you really aren't doing BPM.&lt;BR /&gt;&lt;BR /&gt;Greg&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 14:05:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15993#M7080</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-27T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between Activity_Started Events of the same Activity ID?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15994#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The suggestion of adding&amp;nbsp;a parse handler to the engine and adding a listener that handles the logic to make each task name unique is sounds like somthing that can be helpful.&lt;/P&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;&lt;P&gt;Maayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:18:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-distinguish-between-activity-started-events-of-the-same/m-p/15994#M7081</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-03-01T14:18:57Z</dc:date>
    </item>
  </channel>
</rss>

