|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Repeating Fields in MRM - WMQI v2.1 |
« View previous topic :: View next topic » |
Author |
Message
|
EvolutionQuest |
Posted: Wed Feb 11, 2004 1:56 pm Post subject: Repeating Fields in MRM - WMQI v2.1 |
|
|
 Voyager
Joined: 18 Sep 2001 Posts: 88 Location: Billings, MT
|
I need to clarify my issue a little more in relation to repeating groups. The following below is what I started out doing, but I need to simplify this a little more. Based on a simple MRM that has a group id: Group1 and each element of that group is delimited by a | what is the simpliest way to enact a repeating group of messages? I seem to be having trouble getting this to work, and I don't know why?
Some insight is greatly appreciated since the docs are not forthright.
Chris
This can not be this hard to construct. I have constructed a complex type which contains a set of elements.
Complex Types: Group1Elements in each type: Field1, Field2, Field3
Message: MyTest which has elements MyTest1 (Group1)
Under Types:
Group1-4: Type Comp: Sequence, Type Cont: Closed
The TDS for Group1-4 => Group Ind: Group1, Group Term: ~, Date Elem Sep: All Elements Delimited, Delimiter: |
Under Messages:
The Connection for Group1 => Repeat, Min Occur: 1, Max Occur: 1
The TDS for Group1 => All fields blank
Elements:
The TDS for Field1-3 => default values
The message =>
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~ |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Feb 11, 2004 2:35 pm Post subject: Re: Repeating Fields in MRM - WMQI v2.1 |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
cfryett wrote: |
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~ |
Is this the input message or output?
I recall from the class (about a year ago and haven't done much work in this particular area...) to model the messages 'inside out'...
So what I see is a simple Record with fields seperated by |
AND
I see a list of records where the records are seperated by ~
This should be a lot easier to put into the MRM/TDS definitions than the other way around.
I hope this helped...
Michael |
|
Back to top |
|
 |
EvolutionQuest |
Posted: Wed Feb 11, 2004 2:51 pm Post subject: |
|
|
 Voyager
Joined: 18 Sep 2001 Posts: 88 Location: Billings, MT
|
Actually the message would look like Group1|Field1|Field2|Field3~Group1|Field1|Field2|Field3~ and so on. This would be an input message.
What I have created is a compound type called Group1 which contains elements Field1-3. Then I have a message called MyMessage with element MsgGroup1 (Group1). The TDS for the compound type is Group Ind. = Group1| and Group Term = ~. The Date Element Separation is All Elements Delimited and the Delimiter is |. The repeat is set to Yes and min and max are 1.
This should be simple but for some odd reason it just isn't clicking for me. |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Feb 11, 2004 3:01 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Chris,
I think you are only 1 'click' away...
Group1| is simply part of the record
So Record = Group1|Field1|Field2|Field3
Model this first,
then the message consists of Record~Record~Record
this should be the easy part, just create a compound like ListOfRecords with only Record in it, set delimiter to ~ and your off...
Michael |
|
Back to top |
|
 |
Missam |
Posted: Wed Feb 11, 2004 3:35 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi,
I tried it on my box and i'm able to parse this message
First i created a CompoundType Lets Say Type1 with three Elements Field1,Field2 And Field3
Type1 Properties
----TypeComposition Sequence
----Type Content Closed
TDS Properties
---Group Indicator Group1|
---Group Terminator ~
All Elements Delimited
---Delimiter |
Create An Element Of Type1 Ele
Create One More Compound Type with Sequence as Type Composition And Closed As TypeContent
Set TDS All Elements Delimted and Delimiter As <LF>
Add Ele to This Type2
Set Ele Properties Repeating as Yes And Repeating Element Delimiter as <LF>
Create a Message Of Type2 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|