|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Route to Destination not executing |
« View previous topic :: View next topic » |
Author |
Message
|
LH33 |
Posted: Mon Jul 28, 2003 10:53 am Post subject: Route to Destination not executing |
|
|
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 |
|
 |
kirani |
Posted: Mon Jul 28, 2003 12:33 pm Post subject: |
|
|
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 |
|
 |
LH33 |
Posted: Mon Jul 28, 2003 12:35 pm Post subject: |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
|
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
|
|
|
|