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 » Filter Node Problem.

Post new topic  Reply to topic
 Filter Node Problem. « View previous topic :: View next topic » 
Author Message
mqram
PostPosted: Mon Mar 08, 2004 3:33 am    Post subject: Filter Node Problem. Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Missam
PostPosted: Mon Mar 08, 2004 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 08, 2004 5:54 am    Post subject: Reply with quote

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
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 » Filter Node Problem.
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.