Author |
Message
|
Guaresnay |
Posted: Wed Feb 10, 2010 12:43 pm Post subject: How can I route to multiple labels using a compute node? |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 8
|
Hi, I've been trying to route a single flow to multiple labels using a compute node with no luck. I don't wan't to use PROPAGATE and RouteToLabel can only route to 1 label if I'm not mistaken..
Could anyone give me a tip please? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 10, 2010 12:48 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Guaresnay |
Posted: Wed Feb 10, 2010 12:51 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 8
|
Guaresnay wrote: |
...I don't wan't to use PROPAGATE... |
 |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 1:03 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
[quote="Guaresnay"]
Guaresnay wrote: |
...I don't wan't to use PROPAGATE... |
Why not? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 1:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Your other option is to switch to a pub/sub model _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 10, 2010 1:08 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Guaresnay wrote: |
Guaresnay wrote: |
...I don't wan't to use PROPAGATE... |
 |
I'd like to be able to fly.
There is no mechanism in Broker for sending a single PROPAGATE down more than one path at a time.
Even if you create more than one Connection from a single output terminal, it still goes down each connection ONE AT A TIME (in no specified order).
You can not do what you want to do the way you want to do it.
What are you TRYING to achieve by asking how to do the impossible? |
|
Back to top |
|
 |
Guaresnay |
Posted: Wed Feb 10, 2010 2:31 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 8
|
mqjeff wrote: |
Guaresnay wrote: |
Guaresnay wrote: |
...I don't wan't to use PROPAGATE... |
 |
I'd like to be able to fly.
There is no mechanism in Broker for sending a single PROPAGATE down more than one path at a time.
Even if you create more than one Connection from a single output terminal, it still goes down each connection ONE AT A TIME (in no specified order).
You can not do what you want to do the way you want to do it.
What are you TRYING to achieve by asking how to do the impossible? |
It doesn't need to be all at the same time, I just need to pass the flow to multiple labels depending on some conditions..
I've been told to do the following:
Depending on an XML value pass the flow to different labels BUT if that value is 0 I need to pass the flow to 3 labels.
I can't use PROPAGATE because of a working methodology.. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 3:01 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Guaresnay wrote: |
I can't use PROPAGATE because of a working methodology.. |
Then it's a somewhat ill-conceived and limiting methodolgy. Who decided that and what's the motivation? What options are permissable (no point us suggesting another solution only to have it ruled out for political reasons). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Guaresnay |
Posted: Wed Feb 10, 2010 4:35 pm Post subject: Re: How can I route to multiple labels using a compute node? |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 8
|
Vitor wrote: |
Then it's a somewhat ill-conceived and limiting methodolgy. Who decided that and what's the motivation? What options are permissable (no point us suggesting another solution only to have it ruled out for political reasons). |
I know the methodology is limiting, I didn't do it. The company where I work uses it because of "Flows easier to follow graphically", don't ask me why..
Anything but a PROPAGATE would be permissable, I just can't find a way to do it :/
Thanks for your time  |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 10, 2010 5:53 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Okay, so RouteToLabel supports "RouteToFirst" and "RouteToLast", so you can do something like
Input->compute->RouteToLabel
Label1->Compute->RouteToLabel
Label2->Comptue->RouteToLabel
But you have to be very careful not to create a loop, i.e. don't go from 1 to 2 and then back to 1. |
|
Back to top |
|
 |
Guaresnay |
Posted: Wed Feb 10, 2010 6:20 pm Post subject: |
|
|
Newbie
Joined: 10 Feb 2010 Posts: 8
|
mqjeff wrote: |
Okay, so RouteToLabel supports "RouteToFirst" and "RouteToLast", so you can do something like
Input->compute->RouteToLabel
Label1->Compute->RouteToLabel
Label2->Comptue->RouteToLabel
But you have to be very careful not to create a loop, i.e. don't go from 1 to 2 and then back to 1. |
I'll play around with those properties and will let you know if I get it to work, thanks.. |
|
Back to top |
|
 |
|