Can camunda multi-instance task be used for different inputs?

767 views
Skip to first unread message

adarsh...@gmail.com

unread,
Jan 8, 2016, 2:01:27 AM1/8/16
to camunda BPM users
Hi,

I have a list of ids and need to make a service call with every single id. I thought about using the multi-instance feature which parallely creates multiple instances of the same task. However, is it possible to give different inputs (in my case different ids) to every instance?

Thanks,
Adarsh

Philipp Ossler

unread,
Jan 8, 2016, 2:14:57 AM1/8/16
to camunda BPM users, adarsh...@gmail.com
Hi Adarsh,

yes, a multi-instance task can work with collections. You have to specify the process variable which holds the collection and a variable name there the current element is stored - just like a 'for' loop in programming language. See [1] how to use it.

Greetings,
Philipp

Reply all
Reply to author
Forward
0 new messages