- Thu Sep 28, 2017 9:58 pm
You can create a process like this:
Here are the routing rules of the first gateway which is used to loop until @@doTask is set:
And here are the routing rules of the second gateway which decide whether to skip Task 6 or not:
If you think that the loop-around is ugly, then you can get rid of it and use PMFPauseCase() in a trigger before routing in the first task to pause the case. Then, in your external process which has a loop with a script task, use PMFSendVariables() to set the @@doTask variable, and then call PMFUnpauseCase() and then PMFDerivateCase() to move the case to the gateway. If you use this method, then here would be your process:
And here would be your gateway's routing rules:
Here are two sample processes:
In this process, it loops indefinitely until the variable @@doTask is set. If set to "yes", then Task 6 will be executed. If set to "no", then Task 6 will be skipped.