It's a bit tricky to assign task to a variable number of users. The Gateway service is good, but when you know the number of user ahead of time.
If you don't know the number of users ahead of time, you'll need to be a bit creative and use the Gateway service (to assign the task to a user) and then loopback to it n number of times so that multiple users will get the item.
Then the other part you'll need to worry about is when users will complete their task. You'll need to have a condition outside of the Gateway to check if all users a done, before moving forward with the rest of the process.
Hi, just to follow through on this thought, I have a gateway which assigns tasks in parallel properly. What I'm having problems with is that as soon as one person is done I want to remove the tasks from the other users worklists. I wish that I didn't have to but the client has requested that it be done in this manner. Is there a "task terminating" service that would enable me to remove items from peoples' worklists?
I am able to create more user tasks in parralel but I don't know, how to obtain filled forms back from theese user tasks. I thought to use TaskCompletedWithData event but I don't know how to get the form data from the event. Could anyone help, pleae.
Another quick follow up, i'm having problems finding a way to use the completeTask function on a task that is NOT assigned to the user that i specified in the connection properties. I tried using the administrator login info for the connection properties and i get an exception saying that the task is not assigned to the user;
com.adobe.idp.taskmanager.dsc.client.task.TaskPermissionException: User: E1B55006-6542-195B-25DF-E95844A96AD0 is not assigned task: 7902. The task cannot be completed
I was wondering if there was a way to completeTask regardless of the connection properties?