1 person found this helpful
Is your subprocess short lived?
If yes, you can completely remove the gateway and place the Confirm Visit subprocess between GetNext User & C++ activities.
Adding gatway in this case will run the Sub process in a separate thread. You cannot depend on the order of execution at this situation.
Thank you Nith,
Is your subprocess short lived? No
In my case I have to send for each User a pdf to sign, so if I removed the gateway , the tasks will be sent one by one to the users and the last user has to wait for all previous user to accept their tasks and this is wrong, I want to send the tasks to all users at the same time without waiting for anyone acceptance, because of that I used the gateway with NO-WAIT thought that it will call the subprocess for each iteration without waiting for the subprocess to be finished.
I agree with $Nith....you do not need the Gateway....simply call the subprocess in your loop. Each time you loop through a new subfprocess will be called. You are right that the last user will have to wait until all the others are sent ....but he wil not have to wait until they respond. Just make sure that you set the Invocation Policy to "Do not Wait"
Can't you simply just use the Assign Multiple Task instead. This will allow you to send the task to multiple users in parallel without the need of a Gateway.
Paul, thank u, I did not know about the "Invocation Policy", because I'm new in Adobe LC
Jasmin, thank u for your reply, but in my case I have to send different docs for different users, so I "Guess" the send to multiple users will not work!