cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Gateway and Loop Cardinality in Multi Instance

sandeepsapra
Champ in-the-making
Champ in-the-making
Scenario : I am working on a scenario where there are set of tasks,say 3 tasks in series, in a workflow and each task has to be completed by 3 different users. These 3 different users belong to 3 different groups

Clarification Required:   Just wanted to know if my understanding is correct as stated below:

a) Multi Instance (Loop Cardinality) can be used for parallel and sequential(series) tasks but for a set of users which are in same group only. For eg.
———————————————————————-
    <userTask id="enterCommentsTask" name="Enter Comments by Author" >
     <documentation>
        Enter Comments which requires verification
      </documentation>
      <potentialOwner>
        <resourceAssignmentExpression>
          <formalExpression>author</formalExpression>
        </resourceAssignmentExpression>
      </potentialOwner>
     <multiInstanceLoopCharacteristics isSequential="false">
     <loopCardinality>4</loopCardinality>
     </multiInstanceLoopCharacteristics>
    </userTask>
——————————————————————-


b)Parallel Gateway is used when tasks is to be executed by set of users which belong to different groups

Is my understanding a) and b) are correct?
Regards,
Sandeep Sapra
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
a) yes … but why not simple three different task in sequence after each other?

b) no, parallel gateway is only for control flow: it splits the execution of the process in multiple concurrent paths.

sandeepsapra
Champ in-the-making
Champ in-the-making
Thanks for the reply

a) I think for a) you want to mention flow is not really required to be in parallel and series/in a sequence will do. Am I right?

But there can be a case where all the users should receive the task at same time, then a parallel condition is required as per my understanding. Correct me if I am wrong?

b) For b), ok, If parallel gateway is for control flow then for scenario tasks  to be executed by set of users which belong to different groups , what should be exactly used?

Regards,
Sandeep

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
- same, one task by different groups: multiinstance on a task
- same sequence of multiple taskst for different groups: multiinstance subprocess with in tasks in sequence in that subprocess

hth

sandeepsapra
Champ in-the-making
Champ in-the-making
Thanks for the reply!!!!
For this same sequence of multiple taskst for different groups: multiinstance subprocess with in tasks in sequence in that subprocess
Can you elaborate this with an example , if possible?  or with an bpmn file code in my case..

What I dont understand is that by creating a sub process in multiinstance also we will be able to have one group only and then how to define multiple groups?

Regards
Sandeep

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
sorry, I have no time to create a working example, but the group to assign can be a variable that you have in the multiinstance loop of the subprocess. There should be no difference with this compared to a single task that needs to be assigned to different groups. The 'only' difference is where the loop variable is declared.