Posted: Tue Sep 06, 2005 7:10 am Post subject: UnorderedSet and choice (REDEFINES) ?
Apprentice
Joined: 01 May 2002 Posts: 31
I've got to change one of our MRM messages models to include a redefines (first time we've ever had to use REDEFINES!).
The input data is XML and we are outputing CWF. I've looked this up in the manuals and found the bit about 'choice'...however our existing message model is built as an UnorderedSet (so the fields could be populated out of order) and it looks like the use of 'choice' in an UnorderedSet isnt allowed ?
Currently the message model just contains a couple of repeating groups and the lowest level repeating group is the one that needs to be redefined.
I tried replacing the 'type' with a 'group' with composition set to 'choice' and got an error message :
'Invalid content starting with element 'SectionGroup'. The parent content model is <unorderedSet>, which can only contain {annotation (0-1), element (0-UNBOUNDED)}'
Is this correct or am I going about it wrong ?
Any advice appreciated
K.
Your general approach is fine. However, UnorderedSet cannot contain groups, so you will have to change it to Sequence, and then make sure that you populate the message tree in the correct sequence.
Unfortunetaly I dont have the luxury of being able to re-code it to populate in the correct sequense so i've ended up creating a new message and selecting the approriate one using ESQL.
Thanks for confirming the requirements for groups though.
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