Author |
Message
|
Nyusser |
Posted: Tue Feb 04, 2003 3:57 am Post subject: Repeat value of with TDS? WMQI 2.1 CSD 4 |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
Hi,
Is it possible to implement the "Repeat value of" for TDS message elements or compound types in MRM somehow? It seems to be a major defect in WMQI.
- Nyusser
Last edited by Nyusser on Wed Mar 26, 2003 11:46 pm; edited 1 time in total |
|
Back to top |
|
 |
kirani |
Posted: Tue Feb 04, 2003 9:13 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Yes, it is similar to defining ValueOf repeating element in MRM-CWF.
But I think this value is not validated while writing the message out. Even without having a counter you can just populate Compound Type in your TDS message, for doing this just set the repeating to yes in Connection tab for this compound element. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Nyusser |
Posted: Wed Feb 05, 2003 2:13 am Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
I probably didn't explain my problem accurately. I need the MRM parser to parse an incoming message with repeating fields. A simplified example message:
2,Item A,1,20030201,ItemB,2,20030201,20030202
With field explanations
2(number of items 0-99),Item A(item), 1(number of possible shipping dates 0-99 for the item), 20030201 (shipping date), ItemB(item), 2(number of possible shipping dates 0-99), 20030201(shipping date), 20030202(shipping date)
All elements are comma-separated. How can I define that shipping date field repeats an arbitrary amount of times depending on the number of possible shipping dates field. And how can I define that the item structure repeat an arbitrary amount of times depending on the number of items field.
One cannot define these in MRM and therefore MRM Parser is unable to parse the incoming message.
- Nyusser |
|
Back to top |
|
 |
Lisa |
Posted: Thu Mar 20, 2003 8:10 am Post subject: Repeating Elements |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
Hi,
Did you resolve this issue? |
|
Back to top |
|
 |
Nyusser |
Posted: Fri Mar 21, 2003 4:17 am Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
I was unable to resolve the issue and handled the parsing with ESQL code.
- Nyusser |
|
Back to top |
|
 |
kirani |
Posted: Fri Mar 21, 2003 5:05 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
TDS allows you to specify repeat count depending on another element, which is similar to OCCURS DEPENDING ON in COBOL.
You could this use feature to model your message. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Nyusser |
Posted: Mon Mar 24, 2003 12:46 am Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
Are there some specific setting for the compound type / element created from the compound type to activate the REPEAT COUNT OF, because I am unable to find it anywhere within my TDS message types/elements. I am able to use it with CWF though.
Only settings for my TDS compound type element are:
Repeat - which is YES
Min Occurs - which is 1
Max Occurs - which is 10
Repeating Element Delimiter - which is comma (,)
Length Value Of - which seems to have no relation to anything...
I cannot find the Repeat Value of anywhere.
- Nyusser |
|
Back to top |
|
 |
kirani |
Posted: Mon Mar 24, 2003 8:54 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Nyusser wrote: |
Length Value Of - which seems to have no relation to anything...
|
I thought this property is Repeat Value of, but I guess I was wrong. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Nyusser |
Posted: Wed Mar 26, 2003 11:24 pm Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
The issue about repeating elements is explained at IBM's support site. The amount of repeating elements in TDS messages has to be redefined in (Min and) Max Occurs fields and the Repeating Element Delimiter must be defined. There is no way to set the repetition count according to some preceding field.
This is a big defect in WMQI MRM architecture.
- Nyusser |
|
Back to top |
|
 |
kirani |
Posted: Thu Mar 27, 2003 10:07 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Have you tried contacting IBM Support center regarding this? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|