on 06-16-2014 2:33 PM
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.
Hi Alvaro,
Try below logic ,
Value1 (Source) -> Remove Context -> Sort - > UDF -> Value1 (Target)
UDF Logic :
get last value from the Queue.
Thanks
Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.