Posted: Wed Feb 04, 2004 9:53 pm Post subject: Appending in XML
Acolyte
Joined: 18 Jan 2004 Posts: 52
I have the following requirement.
3 messages come in sequence. The first 2 message payloads i save in database and when the 3rd one arrives i need to combine this message and the 2 saved in db to a common output XML. How can i achieve this
And this poses many questions which your requirement does not answer.
Basically you will use a compute node to inspect the incoming message.
The compute will also inspect the database and insert/extract messages as necessary. And the compute node can also build your combined output message when all 3 messages have been received.
This will involve 3 entirely separate message flow threads one after the other. So the only place persistant information will be held is the database.
So you have to know that you have all three before trying to build the output XML message.
Now some questions that need answering are :
How do know which is the 3rd message and if you have all 3?
Are they guarenteed to arrive in a certain order ?
Are each group of messages linked in someway? So you can be sure you have 3 from the correct group and not another group.
without more specific detailed requirements then it's hard to give a more detailed response.
I thought you could only use aggregate nodes to aggregate messages if you had also fanned out corresponding messages within another broker flow using aggregate nodes.
Please correct me if I am wrong.
kt76 - In other words aggregation nodes are worth a look to see they can be used in the design of the the whole business process. And if they can then this may make life easier for you. But not applicable in isolation to this case described here. It will require changes elsewhere.
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