|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Dynamic Flow Routing |
« View previous topic :: View next topic » |
Author |
Message
|
yairleshem |
Posted: Sun Aug 10, 2003 9:49 pm Post subject: Dynamic Flow Routing |
|
|
Newbie
Joined: 09 Aug 2003 Posts: 3
|
I'm trying to create a message flow that will call a sub flow.
This is of course the easy part, I wanted to know if there is a way to dynamically select which sub flow will be called (Not by using the RouteToLabel node).
When using the RouteToLabel node, I have to set Labels for each sub flow I want to call. This solution is bad, in case I have 500 sub flows to select from.
Please help me if you got another solution.
Thanks _________________ Yair Leshem, Israel |
|
Back to top |
|
 |
kirani |
Posted: Sun Aug 10, 2003 9:56 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
see my reply here ..
http://www.mqseries.net/phpBB2/viewtopic.php?t=10249 _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 11, 2003 5:00 am Post subject: Re: Dynamic Flow Routing |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
yairleshem wrote: |
When using the RouteToLabel node, I have to set Labels for each sub flow I want to call. This solution is bad, in case I have 500 sub flows to select from. |
As Kirani said, there's no way to programmatically change the properties of a Label node.
However, I don't exactly understand your objection to the RouteToLabel node style. Yes, you have to add 500 Label nodes to your flow, and then configure the properties on each node. But you only have to do that once. And you have to build your subflow nodes and configure their properties anyway. So adding a label node isn't much extra work at all.
If you don't want to have to write a big long if/case statement that will choose the proper Label name for your flow based on your message, then you should use a database table. This table would be keyed off of whatever the relevant properties of your message are, and contain the appropriate label name. Then you set the DestinationList labelname equal to the looked up value.
But if you're dealing with 500 different possible processing paths, you might want to try and separate them into different flows instead of subflows, and pick the name of the queue to route from instead of the name of the subflow.
To my mind, this is the better approach. It will allow you to manage the scalability and resource useage of each particular task individually (and in v5, give them a different database user id). In addition, you will be able to change each processing type individually and test it without having to test everything else at the same time. The overhead of having to go to and from a queue should not be an undue burden on the execution time of your message processing - although you'll want to evaluate that against your own requirements anyway. |
|
Back to top |
|
 |
yairleshem |
Posted: Mon Aug 11, 2003 9:44 pm Post subject: Re: Dynamic Flow Routing |
|
|
Newbie
Joined: 09 Aug 2003 Posts: 3
|
I understand...
Thank you for your help... _________________ Yair Leshem, Israel |
|
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
|
|
|
|