Hello,
I have this problem:
It has 4 inputs and one ouput
but I dont know why doesnt finish at all.
Any help please?
Thank you.
Discussion posts and replies are publicly visible
I've tried this out, the only way I get the Complex Gateway to behave as you describe is to have a loop back into the gateway from downstream of the process. Do you have anything like that?
Based on the screenshot, it has a completed outgoing flow already, so my guess is that your thinking is correct - one of the incoming flows has re-executed. I guess what I don't know is, what happens if both incoming flows re-execute? Would it work as expected one additional time, or would it not count those after the initial 2?
Still, the solution is the good ol' blank script task "Join", right?
I suppose the answer to that is how strictly the complex node join is. It's a lot easier in the case of an XOR gateway since you can always assume 1 incoming flow basically.
Stewart is right, the complex gateway won't work in your case if you are running the same node in a loop. Also, based on your screenshot since the flow after your complex gateway is blue, it indicates that the gateway is already executed once in the process instance and you have a loop coming back to it which gets stuck at the 2nd iteration.
The thing to understand with Complex gateways is that when you specify 2 incoming paths as your condition then that means 2 incoming paths for only 1 execution of the node, not multiple executions of the node.
Hello and thank you everyone.
In my case, I have 4 inputs and to continue, just I need two inputs, so it is why I used a complex. I dont have a loop in the process, but it didnt finish, and the monitoring looks like this:
Never finish.
The complex is still today in green color. I dont understand why dont finisih, because I need it executes two inputs.
Thank you for all.
Can you look at the process history for this instance, like this:
This will definitively tell you if the Complex node was transitioned to twice (once for each arriving input) and Completed once, as per your design. If you see any other instances of the Complex being started then this would be your issue. If not, I am at a loss as to what the problem is.
This is somewhat unrelated, but it may also address your issue - do you have a terminate as your end event? Regardless of the behavior of the complex gateway, the process won't finish if you don't have a terminate and still have active nodes in the process. In this case, for instance, even if the node shows as active, when additional paths arrive for the gateway, the process will complete if you use a terminate event.