Posted: Tue Jun 08, 2004 9:58 am Post subject: WBIMB MRM Message set question
Novice
Joined: 03 Jun 2004 Posts: 23
Hi all,
I am trying to model a CWF message in MRM. Depending on the value of the ninth field (which can be 1, 2 or 3), my message would have 2, 4 0r 2 additional fields. Essentially the value in the ninth field determines which fields follow.
Can you please advise on how I can construct this message.
It depends on whether the remaining fields occupy the same number of bytes in all cases. If they do, you can model fields 10 onwards as a choice. You'll then need to write some ESQL to peek at field 9 and resolve the choice appropriately.
If the remaining fields are different sizes, you should be able to model the remainder of the message as an embedded message. In this case, you would need three message definitions (in addition to the already existing message definition) corresponding to the three options. Put them within a type with Composition=Message. Resolve the embedded message in ESQL in the same way as for a choice.
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