Is it not possible to assign values in multi-instance activity

Hi Suhas Madap,

  • collection is the name of the process variable that you want to iterate over (e.g. a list with the values john, mary, peter is going to result in three tasks). If you use collection, the loopCardinality should not be defined
  • elementVariable is the name of the process variable the element will be assigned to (assuming you set this to assignee, then assignee will have the value john for the first instance, mary for the second instance, etc.)
  • camunda:assignee is the name of the assignee. It can also be an EL expression and that way, you can set it dynamically based on a process variable. That means, setting it to ${assignee} should do the trick

See the docs on multi-instance for details.

Cheers,
Thorben

1 Like