I want to set userId in muti-instance as colection

I want to set userId in muti-instance as colection. how can I do it.

Hi @louhui and welcome to the forum,

I think it’s necessary to wrap the user task in a MI-subprocess.
Then you can access the element variable to get the user assignment.

Can I define a collection directly in this colletion, I don’t want to maintain a list of approvers in my software application

Yes that is possible.

How do I define it? I tested a lot of methods, but can’t start a processInstance

I ended up adding a script task before the user task:
example.bpmn (3.2 KB)

1 Like

thank you. this is a clever solution