on 02-25-2010 7:43 PM
Hi Experts,
my requirement is-
Source - Target-
<ABC>12,23,99</ABC> Node
I need to generate the target node as many times the number of values are coming in the source field.
like here - <ABC> contains 3 values the node will also be generated 3 times.
the source field will always come to the same context and it will come once only in the entire queue.
I have used the split function and taking the number of values in that returned array passing to the target node to generate the same. but it is not working.
Please help me in this .
Thanks
Sugata B
Hi
yuo need to write an udf like this.
source (change context Queue)---->UDF ---> Target
Variable : source and separator(",")
String[] values = source.split(separator);
for(int i = 1 ; i < values.length ; i++){
result.addValue(values<i>);
result.addValue(ResultList.CC);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.