Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Mapping logic -counter UDF required

$
0
0

Hi Experts,

 

I have below  source/target test XML structures, i need to add -1 counter value increment by -1 in target  if Order ID value is same ,tried using counter but no luck.

 

 

<Order>

  <OrderID>AZ1234</Order>

  <Location>CA</Location>

<Region>NA</Region>

<Name>Mike</Name>

<Status>New</Status>

<Card>yes</Card>

</Order>

<Order>

  <OrderID>AZ1234</Order>

  <Location>CA</Location>

<Region>NA</Region>

<Name>Mike</Name>

<Status>Old</Status>

<Card>yes</Card>

</Order>

<Order>

  <OrderID>AZ9999</Order>

  <Location>CA</Location>

<Region>NA</Region>

<Name>MikeSwiney</Name>

<Status>New</Status>

<Card>yes</Card>

</Order>

 

 

Output

 

<FinalOrder>

  <OrderID>AZ1234-1</</Order>

  <Name>Mike</Name>

<FinalOrder>

<FinalOrder>

  <OrderID>AZ1234-2</</Order>

  <Name>Mike</Name>

<FinalOrder>

<FinalOrder>

  <OrderID>AZ9999-1</Order>

  <Name>MikeSwiney</Name>

<FinalOrder>

 

Thank you so much.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>