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 » Mapping Node Condition

Post new topic  Reply to topic
 Mapping Node Condition « View previous topic :: View next topic » 
Author Message
Rockon
PostPosted: Thu Jul 13, 2006 3:00 pm    Post subject: Mapping Node Condition Reply with quote

Apprentice

Joined: 24 May 2004
Posts: 43

Hi All,

I am trying to map a source and target variables using Mapping node.
All except one of the field are one to one mappings.
For the one that requires a condition is setting the action.
If the source field comes as "Add" then the target value is "Create"
else use the incoming source value for the target.

FYI,
Sample ESQL would be:

SET V_ActionID = TRIM(InputRoot.XML."action");
SET "OutputRoot"."XML"."verb" =
CASE V_ActionID
WHEN 'Add' THEN 'Create'
ELSE V_ActionID
END;

How do I implement this logic within a Mapping Node.
Within the "Compose Mapping Expression" window, there is a block with "Apply Condition".But I am not able to generate the esql script that needs to be put in that box for this condition to be satisfied.
Any help with this regard will be appreciated.

Env: MB 5.0

Thankyou,
Cheers,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 13, 2006 3:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You need to create it as an ESQL function accepting 2 arguments (your 2 fields) and returning the value of the target field

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping Node Condition
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.