cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping: Create a node only if value change

Former Member
0 Kudos

Hi experts!

I'm trying to create a new node in my mapping only if there is a value change in a field of my mapping (PartnerNumberBAL).

the source message is:

<ns0:MT_Addresses_BAL_OUT xmlns:ns0="http://BAL.Addresses.com">

<RECORD>

<ITEM>

<PartnerNumberBAL>AAA</PartnerNumberBAL>

<HomesteadSequential/>

</ITEM>

<ITEM>

<PartnerNumberBAL>AAA</PartnerNumberBAL>

<HomesteadSequential/>

</ITEM>

<ITEM>

<PartnerNumberBAL>BBB</PartnerNumberBAL>

<HomesteadSequential/>

</ITEM>

</RECORD>

</ns0:MT_Addresses_BAL_OUT>

For this source msg, the target should be

<ns0:MT_Addresses_BAL_INB xmlns:ns0="http://BAL.Addresses.com">

<RECORD>

<ITEM>

<PartnerNumberBAL>AAA</PartnerNumberBAL>

<HomesteadSequential/>

</ITEM>

<ITEM>

<PartnerNumberBAL>BBB</PartnerNumberBAL>

<HomesteadSequential/>

</ITEM>

</RECORD>

</ns0:MT_Addresses_BAL_INB>

I tryed to use "Split by value (value change)" but it didn't work.

Does anybody could help?

Points will be given,

Regards,

Daniela

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Now it is working, I forgot the "Collapse context".

Thanks anyway