|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Optional Elements in MRM |
« View previous topic :: View next topic » |
Author |
Message
|
dsmq |
Posted: Wed Jul 02, 2003 10:38 am Post subject: Optional Elements in MRM |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
Hi
I gave Min Occurs for all optional fields as Zero in my message set . But if i get those fields in my Input Message , my transformation is failing.
Can anybody help me in this.
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 02, 2003 11:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Not all types of MRM models support optional fields.
You'll need to be more specific about your model and the type of data you're trying to parse before we can help. |
|
Back to top |
|
 |
dsmq |
Posted: Wed Jul 02, 2003 4:35 pm Post subject: Optional Elements in MRM |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
Thanks for u r reply
My Message contains two Compound Types, One with Fixed Length and the other one with Variable length Tag delimiter. Length of Tag is 3.
For Ex
I am Getting Following Fields in my Message
NAM
MOR
RPI
CNF
but in my Transformation ( in compute Node) i am using Following Fields
NAM
MOR
F2A
RPI
When ever it is coming for F2A field which is not in the message it is Failing
Thanks in Advance |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 03, 2003 7:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't use optional fields within fixed length types. They have to be present in the input message (even if they're blank).
If you are trying to ADD data to a message, then you can model the message twice - once as the input message without the field and once as the output message with the new field.
However, you can have optional fixed length types. That is, you can have an optional element of a fixed length type - which it sounds like you're trying to do. So your model should be something like
Code: |
Message
Records
NAMelement (required)
MORelement(required)
F2Aelement(optional)
RPIelement(required)
CNFelement(required) |
Each XXXelement is of the compound type that describes that record - which may be fixed length or variable elements tagged delimited. The Records type is a compound type of Choice composition, and is of Tagged Delimited type. The Message type is also of Tagged Delimited type and contains a single element of Records type which is a repeating element.
The tag length on all types is 3. And you set the tag on each XXXelement to be the tag, which for the NAMelement would be NAM.
If I understand your question properly, that is. |
|
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
|
|
|
|