Author |
Message
|
SOLOHERO |
Posted: Wed Jun 27, 2007 11:07 pm Post subject: END FLOW |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Hi Guys,
Is there any statement for comming out of the flow.
RETURN TRUE; is used to come out of the loop, but how can i come out of the flow.(to end the flow)
Thanks for your Help. _________________ Thanks |
|
Back to top |
|
 |
jsware |
Posted: Wed Jun 27, 2007 11:47 pm Post subject: Re: END FLOW |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
SOLOHERO wrote: |
Hi Guys,
Is there any statement for comming out of the flow.
RETURN TRUE; is used to come out of the loop, but how can i come out of the flow.(to end the flow)
|
There are probably a number of ways. Onces that come to mind are:
Don't wire any "downstream nodes".
Throw a user exception and catch and absorb it off the catch terminal of your input node.
Question: When you say "come out of the flow" do you want any messaging performed committed or rolled back? _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Jun 28, 2007 12:02 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi SOLOHERO,
Put a RETURN FALSE, nothing will come out, flow will end there itself
Regards. |
|
Back to top |
|
 |
jbanoop |
Posted: Thu Jun 28, 2007 7:27 am Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
...and all operations performed by the flow till then would be committed. |
|
Back to top |
|
 |
SOLOHERO |
Posted: Thu Jun 28, 2007 9:44 pm Post subject: Thanks |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Thanks guys,
i got the solution. i end up doing
PROPAGATE TO TERMINAL 'out1'; _________________ Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 29, 2007 2:53 am Post subject: Re: Thanks |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
SOLOHERO wrote: |
Thanks guys,
i got the solution. i end up doing
PROPAGATE TO TERMINAL 'out1'; |
That only works if out1 is not wired to anything...
If you want to end the flow regardless of the wiring of the node, just a return false from inside the node should do it...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jsware |
Posted: Fri Jun 29, 2007 4:23 am Post subject: Re: Thanks |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
fjb_saper wrote: |
That only works if out1 is not wired to anything...
If you want to end the flow regardless of the wiring of the node, just a return false from inside the node should do it... |
I knew that and missed the obvious.  _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
WBI_user |
Posted: Fri Jun 29, 2007 5:38 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Will "return false" result in a commit or roll back of the flow ? ( for example if you have updated the DB in a compute node inside the flow) |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Jun 29, 2007 7:30 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi WBI_user,
Yes it is committed.
Regards. |
|
Back to top |
|
 |
|