on 07-05-2008 8:57 AM
Hi,
I have to make a 1:n Mapping with the JAVA Mapping. The situation is as follows:
I have 1 ORDER with n positions and I have to convert this order to n ORDERS with 1 position in each order. My problem is, that I have to use the header-data of the input-order for each of the output orders and I have to use the first position of the input-order for the frist output-order the second postition for the second order and so on. Which mapping-steps do I have to use. I think this is an ordnary problem, but I could not find anything in the XI-help about this. Maybe anyon has got an idea.
Regards,
Raj
hi
The output from java mapping must look like
<Messages>
<Message1>
<Your Traget Order>....
</Message1>
<Your Traget Order>....
</Message1>
......
</Messages>
Create a Graphical mapping sample (1:N) to get an idea about this structure.
refer this also
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
rgds,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajashekar,
U would know that u can directly create the output XML structure using java mapping.hence u will have to get the value 'n' from ur input through a get NodeValue function in DOM parser,and in the execute function of the java mapping ,loop it for n times to cretae ur nodes.
Just my thinkin..let me know if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.