| Author | Message | 
		
		  | LH33 | 
			  
				|  Posted: Mon Feb 09, 2004 6:19 am    Post subject: One Input with multiple output queues |   |  | 
		
		  | Master
 
 
 Joined: 21 Nov 2002Posts: 200
 
 
 | 
			  
				| I have a message flow that has one input node that accepts transactions from a system.  Based on the value of one of the tags coming in on input, I need to format another transaction and write to a separate queue. 
 For example, if I have transaction 1 come in with a value of "A" in a tag, then I want that mesage to go to queue 1.  If another transaction comes in with a value of "B" in the tag, then I want that message to go to queue 2.
 
 I have 5 different values possible so I would need to be able to send a message to five different queues.
 
 Can someone help me understand how to code this?
 
 Thanks!!  Lisa
 
 Last edited by LH33 on Mon Feb 09, 2004 9:07 am; edited 1 time in total
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | MVO | 
			  
				|  Posted: Mon Feb 09, 2004 7:03 am    Post subject: |   |  | 
		
		  |  Centurion
 
 
 Joined: 09 Sep 2001Posts: 131
 
 
 | 
			  
				| You will need to use either 1) 4 Filter nodes
 or
 2) RouteToLabel
 to send your message to different destinations.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | LH33 | 
			  
				|  Posted: Mon Feb 09, 2004 7:05 am    Post subject: |   |  | 
		
		  | Master
 
 
 Joined: 21 Nov 2002Posts: 200
 
 
 | 
			  
				| I thought you could use Destination Lists also?  I was trying to see if there are any examples of Destination Lists. 
 Thanks, Lisa
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | MVO | 
			  
				|  Posted: Mon Feb 09, 2004 7:13 am    Post subject: |   |  | 
		
		  |  Centurion
 
 
 Joined: 09 Sep 2001Posts: 131
 
 
 | 
			  
				| Oh yes, I almost forgot... sorry. 
 You can have a Compute node and set the DestinationList accordingly:
 
 set OutputLocalEnvironment.Destination.MQ.DestinationData[1].queueName=
 case InputRoot.XML.tag
 when 'A' then 'queue1'
 when 'B' then 'queue2'
 when 'C' then 'queue3'
 when 'D' then 'queue4'
 else 'queue5'
 end;
 
 Your MQOutput node shoud have "Destination Mode" set to "Destination List".
 
 Good luck.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Lisa | 
			  
				|  Posted: Mon Feb 09, 2004 8:33 am    Post subject: Route |   |  | 
		
		  | Master
 
 
 Joined: 07 Jun 2002Posts: 287
 Location: NJ
 
 | 
			  
				| Lisa, Take a look at support pac IC03. There is an example DestinationList exercise in there.
 
 Lisa
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | LH33 | 
			  
				|  Posted: Mon Feb 09, 2004 8:34 am    Post subject: |   |  | 
		
		  | Master
 
 
 Joined: 21 Nov 2002Posts: 200
 
 
 | 
			  
				| Lisa, 
 Thanks!!
 
 Where would I find the support pac?
 
 Lisa
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Mon Feb 09, 2004 9:52 am    Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |