Posted: Tue Aug 23, 2016 4:55 am Post subject: Route Node
Centurion
Joined: 16 Oct 2011 Posts: 124 Location: London
Hi Guys,
I am observing a strange behaviour on one of the sample message flows i did.
The message flow is
MQInput -> Route Node -> 2 MQ Output Nodes(say the qnames as LQ1 and LQ2)
In the Route node, I have specified the below xpaths
$Root/XMLNSC/msg/empno - Match
$Root/XMLNSC/msg/empno - Match1
Then I tried testing using mbtest with the below message,
<msg><empno>1</empno><empgrade>B</empgrade></msg>,
and I saw only one message in either LQ1 or LQ2.
I tried debugging and I can see that the message is propogated to both the queues. But only one of the queues will be populated once the test is completed. When I run the test after changing the get messages property of LQ2 to inhibited, I can see the message sitting in this queue. I have no other flows polling from these queues.
After this, I deployed the bar file and put message to the input q. In this scenario, the message is coming to both LQ1 and LQ2.
Why mbtest is behaving in such a fashion? Is there something I missed out in the configurations?
From your description it looks like you are using the Unit Test Client in the Toolkit in V9 (or below). It seems that when using the Unit Test Client you are only seeing one output from the flow. Yet when you interact with the deployed flow you see a message on each of the output queues. I have just recreated your simple flow and can see that by default only one output message will be displayed for one output queue.
In the Unit Test Client editor the standard tab is the "Events" tab which shows the "Invoke Message Flow" sections etc. You will also see a "Configuration" tab. Click on that and under "MQ Settings" you will see a tick box for "Stop when first MQ message is received". By default this is ticked means that as soon as the test client sees the first output message that is all that it will show. If you deselect this option then you will see that both output messages will be displayed from the flow the next time you invoke it. _________________ Regards
Craig
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