Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: HI Everyone, i have a requirement that i want to pick the data from the last occurrence of the node.

$
0
0

Hi Vinay,

 

You can use below UDF

 

Execution type: all values of context

 

public void getLastValue(String[] input, ResultList result, Container container) throws StreamTransformationException {
result.addValue(input[input.length - 1]);  }

 

output.png

Or below message mapping

mapping.png

Regards,

Praveen.


Viewing all articles
Browse latest Browse all 3316

Trending Articles



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