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, i'm having a little trouble assigning to a dynamic number of users in parallel. Currently i have a gateway with the no-wait option looping back to itself to assign to multi users. The problem that i'm having is that after the first run (which works) i can't run the process again. I can open the form and submit, but the process doesn't fire and its not listed in the admin console. I've checked the server log and can't see an explicit error anywhere.
I was wondering is this the right route to take? What i was going to do was after it assigns that last user, have another loop that checks for a flag that would be set as soon as a user completes the task.
Whoops, sry, got it working, just a little logical error. But i am still interested to hear if anyone else has another way to accomplish this rather than using a loop at the end to check a flag to see if someone has completed the task. It just seems a little resource heavy. Of course i could put a wait in there but still not the ideal solution in my mind.