Author |
Message
|
Janice_Shania |
Posted: Mon Oct 02, 2006 11:46 pm Post subject: Splitting & Grouping of Messages |
|
|
Novice
Joined: 25 Sep 2006 Posts: 12
|
Hi,
I need to split an incoming message(based on a delimiter) containing a number of sub-messages and perform various operations on the individual messages.
There after these individual messages need to be grouped in the same order.
Can anyone please suggest an approach for this in WMQI/WMB. Does WMB have any inbuilt functionality?
Thanks & Regards
Janice |
|
Back to top |
|
 |
Edde |
Posted: Tue Oct 03, 2006 12:49 am Post subject: Re: Splitting & Grouping of Messages |
|
|
 Acolyte
Joined: 01 Oct 2006 Posts: 67 Location: Moscow, Russia
|
You can do this using one message flow.
TDS parser can help you to split incoming message into sub-messages.
Then in Compute node you can propagate sub-messages one by one.
After this may be ResetContentDescriptor to parse sub-messages and processing routine for one sub-message.
And finally you can use a Compute node that combines your sub-messages in Environment tree or shared variable.
Total count of sub-messages you can store also in a shared variable.
This scheme can be modified to use two message flows. In that case you can use shared variables or external data store (e.g. database table) to combine processed sub-messages.
Last edited by Edde on Tue Oct 03, 2006 12:54 am; edited 2 times in total |
|
Back to top |
|
 |
elvis_gn |
Posted: Tue Oct 03, 2006 12:50 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Janice_Shania,
Use a message set, get the parsed message and loop through using references and make multiple requests.
On the return, use MQGet or Aggregation(propagate using Aggregate) to group the messages back.
A little more info wil help us understand your reqirement better, but on a higer level of understanding this should be a simple approach.
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Oct 03, 2006 1:52 am Post subject: Re: Splitting & Grouping of Messages |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Edde wrote: |
In that case you can use shared variables or external data store (e.g. database table) to combine processed sub-messages. |
You can't share variables betweeen different flows. Only between different invocations of the same flow. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Edde |
Posted: Tue Oct 03, 2006 2:14 am Post subject: Re: Splitting & Grouping of Messages |
|
|
 Acolyte
Joined: 01 Oct 2006 Posts: 67 Location: Moscow, Russia
|
jefflowrey wrote: |
You can't share variables betweeen different flows. Only between different invocations of the same flow. |
Of course.
I mean that you can store some input messages of your flow in a shared variable.
But reliability...
Aggregate or database should be a better way. |
|
Back to top |
|
 |
|