Author |
Message
|
meenas |
Posted: Thu Dec 15, 2005 3:47 am Post subject: How to handle Repeating Elements with dynamic Repeat Count |
|
|
Newbie
Joined: 30 Nov 2005 Posts: 5
|
Hi All,
I have a complex Message Definition with several repeating elements. The Repeat Count of these structures will be dynamic. Can I specify the Repeat Count based on some condition? - like exit repeating if a particular pattern is reached - this is how I used to do it in SeeBeyond. Can the same be done in WBIMB?
If not how can it be done?
This Message Set is the one which I will get in my MQ Input Node. The node has to parse automatically for the repeating structures also.
Thanks & Regards,
Meena. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 15, 2005 4:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Are the repeat counts going to be in your message? That is, is there going to be an element of your message that says "the next group will have x repeats in it"?
If it does not, you have to use the Tagged Delimited String (TDS) parser in the MRM.
TDS requires that you have some means of identifying each repeating segment - either a tag or a delimiter or a pattern.
TDS also supports the use of regular expressions for matching data.
So yes, you can do this. I highly recommend you get some training on Broker. Even with experience in other tools, it is not a simple thing to get up to speed with.
If you can't get training, or you don't have time for training, then you should sit down and read read read. The Broker Info Center has a lot of information about using the MRM and the TDS parser, including some examples. There is also a PDF about working with messages that should be a good help. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
recallsunny |
Posted: Thu Dec 15, 2005 1:20 pm Post subject: |
|
|
 Disciple
Joined: 15 Jun 2005 Posts: 163 Location: Massachusetts
|
Jeff's right, even with knowledge of other similar EAI tools, it doesn;t help clear the obscurity around message sets.... Take the advice and get back to the drawing board |
|
Back to top |
|
 |
kimbert |
Posted: Thu Dec 15, 2005 1:53 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
...and in case you didn't get the message, Jeff's right. TDS can do what you want, but you'll need to read up on how to do it. Parsing is a deceptively difficult thing to do, whatever technology you use. Feel free to ask again once you've grasped the basics. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 15, 2005 2:13 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kimbert wrote: |
Parsing is a deceptively difficult thing to do, |
First, pretend you're a Turing machine....
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
meenas |
Posted: Thu Dec 15, 2005 8:46 pm Post subject: |
|
|
Newbie
Joined: 30 Nov 2005 Posts: 5
|
Hi Jeff, Kimbert & Sunny,
Thanks a lot for the response.
I'm attending WBIMB training by IBM next week. Will also go through the documents on Message Modelling.
Thanks for your valuable suggestion.
Regards,
Meena. |
|
Back to top |
|
 |
|