cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Mapping using JAVA Mapping 1:n Transformation--Urgent??

rajasekhar_reddy14
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

hi frnds,

anyone did multi mapping using JAVA Mapping 1:n transformation..

can anyone share the view and code..

thanks

Raj

Edited by: Raja Sekhar Reddy T on Jul 7, 2008 8:44 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

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

rajasekhar_reddy14
Active Contributor
0 Kudos

hi Mohd,

I'm developing using SAX Parcer, i know how tom read xml documentusing sax parcer, if u have a solution code.. can u share...

thanks for u r valuable time..

raj