|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Wait for all connectors question |
« View previous topic :: View next topic » |
Author |
Message
|
koko |
Posted: Mon Sep 26, 2005 7:08 am Post subject: Wait for all connectors question |
|
|
 Master
Joined: 26 Sep 2003 Posts: 206
|
I have a process which can take one or more paths. At the end of these parallel routes, I need to wait for the valid incoming connectors and then proceed further.
E.G
There is a decision box and five paths out of it say with steps A, B, C,D and E in each of those paths. There is a wait step W after this. W should start only after all the valid paths ( may be A & B, may be A, C &D etc ) are complete.
My question is if I mention the Wait step to wait for all incoming connectors, what happens if one of the paths coming into it is not executed. In the above example, if A is not encountered. I think it would wait indefinitely for that path to occur and never proceed further. How do I address this issue?
In other words how do I wait for parallel activities when one or more paths may or may not get executed? _________________ Thanks
Koko |
|
Back to top |
|
 |
Ratan |
Posted: Mon Sep 26, 2005 8:36 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
The scenario you described is a easy one to test, and you should do it before posting a question.
When you have multiple incoming connectors to an activity, and the activity is set to "At least one incoming connector = true", the activity waits for all incoming connectors to be evaluated. In your case if a certain path is not executed, it still means that path is "Evaluated". So if certain paths are not executed in your flow and atleast one incoming connector is true your Join activity will execute. _________________ -Ratan |
|
Back to top |
|
 |
jmac |
Posted: Mon Sep 26, 2005 10:59 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Ratan is 100% correct....
However just to make the point again for anyone who has not heard it before:
A control connector is a 3 state object (not a 2 state object) the states are:
An activity that has control connectors that lead into it CAN NEVER execute if any connector is in the unevaluated state. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|