In a process, I would like to create tasks dynamically based on parameters passed at the creation of the process. For example, from ADF, I would like to create a form that allows me to select from 1 to N reviewers. On APS, I would like the process to be able to create N proofreader tasks. Is it possible to loop through a list of proofreaders to create one task per proofreader? I specify that the tasks should not be in parallel. If Proofreader 1 rejects the document, the process must stop.
Instead of creating the task "dynamically" (ssuming throught java code). you can try an inbuilt feature called multi instance. you can provide your list of proofreaders (user ids) as parameters and assign each task using a variable.
As for you rejection condition, you can store outcome of each task in a variable and check that variable's value in completion condition.
Thank you for your answer ! indeed the 'multi instance' feature would suit me perfectly. Except that I'm a bit blocked! What should we put in the "collection" field ? a list ? a variable ? In APS, you can only create string, int, boolean variables, but no array...
Would an array of the style ['usernameA", "usernameB", "usernameC"] be enough in this field ?
If yes, can we assign each task to each user via his username?