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 » Using a filter node to check a vlue to process - not working

Post new topic  Reply to topic
 Using a filter node to check a vlue to process - not working « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Wed Mar 26, 2003 6:52 am    Post subject: Using a filter node to check a vlue to process - not working Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Hi!

I have a message flow that reads a formatted XML message off a queue. I use a Filter node to check a database value to determine if I want to write the error to another queue or ignore the message. Can someone look at the following code in my Filter node and see what I may be doing wrong? Also, I cannot find any helpful documentation on what to wire the Unknown and Failure terminals to - or if I ned to. Any suggestions would be appreciated! Note: - The value of LOG_ERROR in the database is equal to 'Y'

Thanks, LisaB

DECLARE TmpFlag Char;
SET TmpFlag = THE (SELECT ITEM L.LOG_ERROR
from Database.BGE_BROKER_ENV_VARS as L
Where L.MSG_FLOW_ID = 'ODLEmerMaintErrors');
If TmpFlag = 'Y' Then
return true;
else
return false;
Back to top
View user's profile Send private message
yaakovd
PostPosted: Wed Mar 26, 2003 8:29 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Lisa, try this:
Code:
EXIST(SELECT * L.LOG_ERROR
from Database.BGE_BROKER_ENV_VARS as L
Where L.MSG_FLOW_ID = 'ODLEmerMaintErrors'
AND L.LOG_ERROR = 'Y')

or
Code:
THE (SELECT ITEM L.LOG_ERROR
from Database.BGE_BROKER_ENV_VARS as L
Where L.MSG_FLOW_ID = 'ODLEmerMaintErrors') = 'Y'


Both statements will receive true as you need and
Code:
If TmpFlag = 'Y' Then
return true;
else
return false;
is not necessary
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
LH33
PostPosted: Wed Mar 26, 2003 9:02 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Thank you!!!
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 » Using a filter node to check a vlue to process - not working
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.