|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Filter Node Problem. |
« View previous topic :: View next topic » |
Author |
Message
|
mqram |
Posted: Mon Mar 08, 2004 3:33 am Post subject: Filter Node Problem. |
|
|
 Novice
Joined: 11 Sep 2002 Posts: 20 Location: chennai
|
Hi,
I have a problem in filter node. I want to do filter one XML message. In that one segment coming on loop.
<Z1GLBCLF SEGMENT="1">
<CHRNUM>01</CHRNUM>
<CHRCODE>00</CHRCODE>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>02</CHRNUM>
<CHRCODE>099</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>03</CHRNUM>
<CHRCODE>000</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>04</CHRNUM>
<CHRCODE>000</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>05</CHRNUM>
<CHRCODE>000</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>06</CHRNUM>
<CHRCODE>0000</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
<Z1GLBCLF SEGMENT="1">
<CHRNUM>07</CHRNUM>
<CHRCODE>000</CHRCODE>
<STEXT>NA</STEXT>
<LTEXT>Not Applicable</LTEXT>
</Z1GLBCLF>
I want to filter CHRNUM values is 02 and CHRCODE = 099 how can I achive this using filter node. |
|
Back to top |
|
 |
Missam |
Posted: Mon Mar 08, 2004 5:44 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
With Filter node you can only route the entire message towards the output terminals based on the condition you check.If you want to break your muti-part message and send only some of the parts which satisfy a particular condition,you can do it using compute node. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 08, 2004 5:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes, IamSam is right.
Think of a filter node like a simple 'IF/Then/Else" statement. The filter expression is used as the test condition "If <filter expression> THEN", and the true/false/unknown terminals are the Then, Else, and default cases.
What you probably want to do is either use a Compute node with a loop and the PROPAGATE statement to break each of your individual segments into single messages, and THEN filter them.
Or for a more advanced flow, you can use a SELECT statement in a Compute node to extract all of the matching segments from your InputRoot and put them into your Output Root. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|