Biztalk 2006 r2 - receive one message - send x (nearly) clones according to a field in the original one

What they want biztalk to do :
BTS receive a workorder-xml that holds a productionid and a quantity. (f.e. 4)
What they want is that biztalk sends out 4 (=  the quantity) workorder-xml's that hold all the same info as the original one.
Except that they want the productionid to be different in each xml  fe productionid-1, productionid-2,etc....
and that the quantity is 1 in each xml. 
So originating system sends 1 workorder to produce  x pieces and the receiving system gets x workorders to create 1 piece and make sure the productionorder-ids are unique. (they use the same schema)
I already see part of it in an orchestration , get that quantity somehow and loop over a send-message as many times as is in the quantity. but what would be the nicest/easiest way to fill those changed fields (all the rest remains the same)
I'm thinking about mapping two times  schema1-in -> newschema-inbetween -> schema1-out
But just checking if there is another way
Kind regards Isabelledc

Also consider a messaging only solution if performance is a real non functional requirement and drop the orchestration. Sounds like you not doing very much other than changing the production Id. Create a pipeline to split your message and update the production
ids. 
If however the splitting of the messaging becomes more complex later then consider a debatching pattern as described in Ashwins blog http://social.technet.microsoft.com/wiki/contents/articles/19644.biztalk-generating-flat-file-schema-for-file-with-tag-identifiers-not-at-the-beginning-grouping-data-by-element-and-debatching.aspx
Hope that adds to your list of possible solutions. 

Similar Messages

Maybe you are looking for