ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Route to Destination not executing

Post new topic  Reply to topic
 Route to Destination not executing « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Mon Jul 28, 2003 10:53 am    Post subject: Route to Destination not executing Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

HI! I have a message flow that has several Route To Label Nodes and corresponding Label nodes. I set the destination labels in a Compute node as follows:

SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'CompleteFlow';
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[2].labelname = FIELDNAME(InputRoot.XML.*[1]);

The mode of the Route To label after the Compute node to set the destination labels is "Route to Last".

InputRoot.XML.*[1]) can be either CreateJob or ChangeJob or CloseJob.

Each of these has a corresponding label of CreateJob, ChangeJob or CloseJob.

The CreateJob XML transaction works fine, it goes to the CreateJob label and is processed.

When I try to do a ChangeJob transaction, it does not go to the ChangeJob label, but it goes to the CompleteFlow label.

Here is a portion of my trace node after I have set the destination labels. It shows that the label it should go to is ChangeJob, however it goes to the CompleteFlow label:

(0x1000000)Destination = (
(0x1000000)RouterList = (
(0x1000000)DestinationData = (
(0x3000000)labelname = 'CompleteFlow'
)
(0x1000000)DestinationData = (
(0x3000000)labelname = 'ChangeJob'

Her is a portion of my trace node after I have set the destination labels after I submit a CreateJob transaction and this works fine:

(0x1000000)Destination = (
(0x1000000)RouterList = (
(0x1000000)DestinationData = (
(0x3000000)labelname = 'CompleteFlow'
)
(0x1000000)DestinationData = (
(0x3000000)labelname = 'CreateJob'
)

Can someone help me figure out what I am doing wrong?

Thanks in advance!!
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Jul 28, 2003 12:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

There is a small mistake in your code. The labelname should be spelled as labelName, please see upper case N.

Code:

SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelName = 'CompleteFlow';
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[2].labelName = FIELDNAME(InputRoot.XML.*[1]);

_________________
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
View user's profile Send private message Visit poster's website
LH33
PostPosted: Mon Jul 28, 2003 12:35 pm    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Thanks!!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Route to Destination not executing
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.