cancel
Showing results for 
Search instead for 
Did you mean: 

Question mapping

0 Kudos

Hi all,

I want to compare different value of a node with occurrence 1..n.

I need to put into value1 the integer with the max value of the n nodes.

For example:

I have this structure:

<MAIN>

     <NODE>

          <value1></value1>

     </NODE>

</MAIN>

In my case, i recieved this file:

<MAIN>

     <NODE>

          <value1>1</value1>

     </NODE>

     <NODE>

          <value1>2</value1>

     </NODE>

     <NODE>

          <value1>3</value1>

     </NODE>

</MAIN>

Exist any form (in JAVA or UDF wiithout ccBPM & PBM ) to compare elements of different nodes (node ocurrence 0 [value 1] with node with ocurrence 1  [value 2])?

The solution should be:

<MAIN>

     <NODE>

          <value1>3</value1>

     </NODE>

</MAIN>

Thanks.

Regards.

View Entire Topic
former_member190624
Active Contributor
0 Kudos

Hi Alvaro,

Try below logic ,

Value1 (Source) -> Remove Context -> Sort - > UDF -> Value1 (Target)

UDF Logic :

get last value from the Queue.

Thanks

Hari.