Posted: Mon Jun 09, 2008 2:21 am Post subject: MRM Choice clarification
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)
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.
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