cancel
Showing results for 
Search instead for 
Did you mean: 

Aggregate result from a loop

rvashishth
Champ in-the-making
Champ in-the-making
Hi,

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">
      <extensionElements>
        <activiti:field name="approver">
          <activiti:expression>${username}</activiti:expression>
        </activiti:field>
      </extensionElements>
      <multiInstanceLoopCharacteristics isSequential="true" activiti:collection="userlist" activiti:elementVariable="username"></multiInstanceLoopCharacteristics>
    </serviceTask>


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.


Thanks,
Rahul
2 REPLIES 2

rvashishth
Champ in-the-making
Champ in-the-making

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Your multiinstance loop is sequential. You can use one variable to aggregate result.
Another possibility is to iterate over result variables and evaluate condition.

Regards
Martin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.