<?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 How to design a process with a dynamic number of sub process tasks? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4906#M2316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/12303_Support-Query-Process1.jpg" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In the above process, I want the tasks within the Red box to be part of a Sub process- this has to be performed as many times as I select Actor Groups in the "Update Notice Task".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example I may choose a HR group and a Finance Group as Actors, then the above review Tasks needs to create 2 sub processes(each subprocess would have different data depending on the type of Group).&lt;/P&gt;&lt;P&gt;The subsequent Master process( inthe above example "Compliance SignOff")tasks need to wait till both these subprocesses end and then proceed execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 14:47:25 GMT</pubDate>
    <dc:creator>paiyyavj13</dc:creator>
    <dc:date>2017-02-06T14:47:25Z</dc:date>
    <item>
      <title>How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4906#M2316</link>
      <description>In the above process, I want the tasks within the Red box to be part of a Sub process- this has to be performed as many times as I select Actor Groups in the "Update Notice Task".&amp;nbsp;For Example I may choose a HR group and a Finance Group as Actors, then the above review Tasks needs to create 2 sub pro</description>
      <pubDate>Mon, 06 Feb 2017 14:47:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4906#M2316</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-02-06T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4907#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the perfect situation to use a multi instance called activity. The number of Called Activity instances can be mapped to an array and assignment and mapped data can be pulled from the array as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&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, 06 Feb 2017 17:38:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4907#M2317</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-06T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4908#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used your inputs and re-designed my process and now it looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12311_Support-Query-Process2.jpg" style="width: 620px; height: 82px;" /&gt;&lt;/P&gt;&lt;P&gt;The red marked task is the Call Activity Task, which calls my sub process which I have designed as a separate process.&lt;/P&gt;&lt;P&gt;I have again currently made it work for only one instance of subprocess. i.e.: The sub process is called only once from the master process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your comment, I understand that I can store the number of Called Activity instances and mapped data in an Array and use it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My query is:&lt;/P&gt;&lt;P&gt;How do I call multiple instances of the Call Activity(subprocesses)? Can I configure the Multi Instance property in the Call Activity Task? or Use some Activiti API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.... Thank you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 21:18:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4908#M2318</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-02-07T21:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4909#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Paiyyavj13 _,&lt;/P&gt;&lt;P&gt;you can set the loopCardinality with a variable you pass to the process. The loopCardinality says how much instances of the call activity will be created.&lt;/P&gt;&lt;PRE class="" style="color: black; background: #eeeeee; border: 1px dashed #666666; padding: 1.25em 1.5625em 1.125em;"&gt;&lt;CODE data-lang="xml" style="color: black;"&gt;&amp;lt;callActivity id="callDeptReviewCallActivity" calledElement="callDeptReview"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false|true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loopCardinality&amp;gt;${variable}&amp;lt;/loopCardinality&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;BR /&gt;&amp;lt;/callActivity&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For more information take a look in the user&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnMultiInstance" title="https://www.activiti.org/userguide/#bpmnMultiInstance" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;at Chapter 8.5.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:19:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4909#M2319</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-08T07:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4910#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually loop cardinality isnt the right approach on this occasion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you have a dynamic list of users you want to assign tasks to.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ArrayList idList = new ArrayList(); &lt;BR /&gt;Long tenantId = currentUser.getTenantId();&lt;/P&gt;&lt;P&gt;List&amp;lt;User&amp;gt; users = userService.getAllUsers(0,999,tenantId);&lt;BR /&gt;for (User u : users) {&lt;BR /&gt; idList.add(u.getId());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;execution.setVariable('assigneeList', idList);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now, setup the Multi Instance properties as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collection (Multi Instance) = assigneeList&lt;/P&gt;&lt;P&gt;Multi Instance Type = parallel (or serial, doesnt matter)&lt;/P&gt;&lt;P&gt;Completion Condition = No Value&lt;/P&gt;&lt;P&gt;Cardinality = No Value (not used in this case)&lt;/P&gt;&lt;P&gt;Element Variable - assignee (this takes each element from the list and creates a named variable in the sub process)&lt;/P&gt;&lt;P&gt;Assignment = ${assignee) - if this is a complex type and includes other data, point to the user id element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have a dynamic number of instances with dynamic assignment and dynamic data elements based on the ArrayList used to trigger the multi instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really super powerful stuff, and the Completion Condition can be used to model what are typically complex scenarios such as two eye approval etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&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>Wed, 08 Feb 2017 16:34:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4910#M2320</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-08T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4911#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Greg for your post.... It really helped a lot...I had to do some minor changes for group assignment...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:57:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4911#M2321</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-02-10T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4912#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear it.&amp;nbsp;&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>Fri, 10 Feb 2017 15:05:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4912#M2322</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-10T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4913#M2323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question and I did not want to create a separate thread for this query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to send some additional process information from the Master process into my Call Activity subprocess and wanted to check below queries.&lt;/P&gt;&lt;P&gt;Earlier I was using below configurations for only sending the assignee Groups information from Master to Sub process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Collection (Multi-instance): assigneeList&lt;/LI&gt;&lt;LI&gt;Element Variable (Multi-instance): assigneeGrp&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This works fine for sending assignee group information alone to my sub process. But now I need to send some additional information into my subprocess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the type of group selected I choose a set of subtasks, I store the group and subtasks into a Java Map variable.&lt;/P&gt;&lt;P&gt;I am having trouble trying to pass and refer this additional information in my sub process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configurations change as below,&lt;/P&gt;&lt;OL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Collection (Multi-instance): mapVariableList&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Element Variable (Multi-instance): &lt;SPAN&gt;mapVariable&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Queries:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Now, How do I refer to the assignee from the Element variable?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;My choice of using a Java Map variable is the right choice?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate your assistance.... Thank you again ....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:28:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4913#M2323</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2017-02-14T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a process with a dynamic number of sub process tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4914#M2324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am travelling and on a deadline this week.&lt;BR /&gt;Will try to take a look at your question next week.&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>Fri, 17 Feb 2017 12:49:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-design-a-process-with-a-dynamic-number-of-sub-process/m-p/4914#M2324</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-17T12:49:41Z</dc:date>
    </item>
  </channel>
</rss>

