Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

PI UDF Query

$
0
0

Hi,

I have a mapping requirement - I am providing source xml and target xml . Please try to help in it.

 

Mapping conditions -

(1) If D_3035 is BY and its D_3039 is 71694800 then take last 4 characters of D_3039 where D_3035 is DP

 

(2) If D_3035 is BY and its D_3039 is 007222200 then take removing preceding zeroes of D_3039 where D_3035 is CN

 

Source XML -

<G_SG2>

<S_NAD>

<D_3035>BY</D_3035>

<C_C082>

<D_3039>71694800</D_3039>

<D_1131>160</D_1131>

</C_C082>

</S_NAD>

</G_SG2>

 

<G_SG2>

<S_NAD>

<D_3035>SE</D_3035>

<C_C082>

<D_3039>00381636677</D_3039>

<D_1131>200</D_1131>

</C_C082>

</S_NAD>

</G_SG2>

 

 

<G_SG2>

<S_NAD>

<D_3035>DP</D_3035>

<C_C082>

<D_3039>00393363667</D_3039>

<D_1131>210</D_1131>

</C_C082>

</S_NAD>

</G_SG2>

 

Target XML - you can take any xml with a field A like - <B> <A> value </A></B>


Viewing all articles
Browse latest Browse all 6719

Trending Articles



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