cancel
Showing results for 
Search instead for 
Did you mean: 

How to declare a form var in multi-instance(sub-process)?

activitilover
Champ in-the-making
Champ in-the-making
i am using sub-process to impl a workflow and the sub-process is multi-instance.
to complete a user task,i need a form to interact with assigneer,
but form var is global,i want to set the var id like XXX-${loopCount},but it is not working.
how to solve the problem?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
That's indeed a problem that we need to solve better. Currently, you could try to use an execution listener on the seq flow out of the task that copies the value of the variable to the XX-${loopcounter}.
But really we should have a mapping mechanism for that. It's on our todo list (but it's a long list), as we have felt the pain of this ourselves.