cancel
Showing results for 
Search instead for 
Did you mean: 

Split sementics with multi-instance

workflowuser2
Champ in-the-making
Champ in-the-making
Hi Experts,

I have a use-case where I would like to pass some distinct process-variable/value to "each" instance in the multi-intance.
For example:
- we collect all resources targeted in this process instance
- each multi-instance call-activiti handled "one" resource

My question, therefore, is how to pass "say resource identifier" to "each" instance in the multi-instance. Each instance will see different resource id.

Thank you, in advance.

wusernewbie
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

As described in the user guide you can do something like this:

<userTask id="miTasks" name="My Task" activiti:assignee="${assignee}">
  <multiInstanceLoopCharacteristics isSequential="true"
     activiti:collection="${myService.resolveUsersForTask()}" activiti:elementVariable="assignee" >
  </multiInstanceLoopCharacteristics>
</userTask>

The collection will contain a list of objects, where each instance will gets its own object instance.

Best regards,

workflowuser2
Champ in-the-making
Champ in-the-making
Thank you, trademak.
In the example, you shown how to do this in a UserTask. Can we do the same for "call activiti" + multiInstanceLoopCharacteristics?

frederikherema1
Star Contributor
Star Contributor
A callactivity also supports MultiInstance, yes.
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.