cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to run multiInstanceLoopCharacteristics in parallel?

klymenko_ruslan
Champ in-the-making
Champ in-the-making
   I have a collection of input data in my process for each element of which i want to call another process using 'callActivity'. Is it possible to run the loop in parallel(something similiar to stream.parallel() in java8)?


   Here's how it looks in code right now:
<callActivity activiti:exclusive="true" calledElement="importMasProfiles" id="importMasProfiles" name="Call import cgmes profiles">
      <extensionElements>
        <activiti:in source="importCandidate" target="profileSetDto"/>
        <activitiSmiley Surprisedut source="profileSetDto" target="profileSetDto"/>
      </extensionElements>
      <multiInstanceLoopCharacteristics activiti:collection="${importCandidates}" activiti:elementVariable="importCandidate" isSequential="false"/>
    </callActivity>
1 REPLY 1

klymenko_ruslan
Champ in-the-making
Champ in-the-making
<callActivity activiti:exclusive="true" calledElement="importMasProfiles" id="importMasProfiles" name="Call import cgmes profiles">
      <extensionElements>
        <activiti:in source="importCandidate" target="profileSetDto"/>
        <activitiSmiley Surprisedut source="profileSetDto" target="profileSetDto"/>
      </extensionElements>
      <multiInstanceLoopCharacteristics activiti:collection="${importCandidates}" activiti:elementVariable="importCandidate" isSequential="false"/>
    </callActivity>