AnsweredAssumed Answered

Aggregate result from a loop

Question asked by rvashishth on Jun 24, 2014
Latest reply on Jun 25, 2014 by martin.grofcik

I need to implement below basic flow, please suggest me the possible steps to implement

I have a service task as below

<serviceTask id="servicetask1" name="Service Task" activiti:class="com.demo.activititest.HelloServiceTask">
        <activiti:field name="approver">
      <multiInstanceLoopCharacteristics isSequential="true" activiti:collection="userlist" activiti:elementVariable="username"></multiInstanceLoopCharacteristics>

In the execution of every serviceTask call i am creating a new variable with username and value as true/false,  now my task is to check if for all the users from userlist are set to true or false, How i can aggregate the boolean result of loop or subprocess to make a decision.