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 » MRM Choice clarification

Post new topic  Reply to topic
 MRM Choice clarification « View previous topic :: View next topic » 
Author Message
MrSmith
PostPosted: Mon Jun 09, 2008 2:21 am    Post subject: MRM Choice clarification Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

Proposed objective: Incoming MRM message conatins element for say curency. From the currency value if the currency is say "USD" then I want the choice group field that is a decimal of precision 15,2 to be used, if the currency is "YEN" I want to use the choice field from the group with precision 15,6 to be used or if any other currency then use choice decimal field with precision 15,4. I read th manual and it says this
Quote:
Choice
A choice cannot be resolved purely from the data. The receiving program must interpret the data and decide which option of the choice the message instance contains. This process is known as unresolved choice handling. The first reference in the application to any one of the choice elements resolves the choice to the option containing that element.
which implies quite strongly that the above objective is not achievable but have I read this correctly? Can i only change the precision from withing the ESQL (TBH was just being lazy to see if the MRM would do it for me)
Back to top
View user's profile Send private message
MrSmith
PostPosted: Mon Jun 09, 2008 2:23 am    Post subject: Reply with quote

Master

Joined: 20 Mar 2008
Posts: 215

FYI Version 5 on Windows + all the latest pacs
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jun 09, 2008 5:01 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I presume you are using XML, since you refer to an attribute. XML Schema cannot resolve a choice based on an attribute value ( so this is not really an MRM restriction ). You have 2 options:
- Write some custom ESQL/Java to validate the message tree
- Change the input XML so that the name of the tag differs depending on the currency.
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 » MRM Choice clarification
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.