Skip to Content
0
Former Member
Dec 03, 2009 at 08:35 PM

Node mapping condition

27 Views

Hello experts

There is a mapping requiremnt and i don't quite know how to achieve it. Hope to get some hints on how to do it.

I have a source file

<line> unbounded

<field1>

<filed2>

<field3>

</Line>

My taget is Idoc

<e1xmbh>

<e1mbxy1>

<Zitem>

<field1>

<field2>

.

.

.

</Zitem>

</e1mbxy1>

<e1mbh>

now i need to creat<Zitem> node based on a condition : if field1 (concat) field 2 combination is same( from the root context) then the Zitem must be in the same <e1mbxy1>

if field1 (concat) field2 combination is different from the previous one from the queue then the Zitem should belong to next existence of node <e1mbxy1>

It is quiet hard to explain but hopefully someone has an answer for it .

Thank you