on 02-19-2015 7:06 PM
Hello All,
I have a requirement to create multiple nodes.
The source message will have a values in one particular field sent as follows: 11,22,33
And at Target i need to create 3 nodes.
I have written following UDF, but it returns the output as string, i need help in how to get the values in diff context:
====================================================================
int commas=0;
String s=new String();
s="";
for(int i=0;i<input.length();i++)
{
if(input.charAt(i)==',')
{
commas++;
s=s+"true";
}
}
return s;
===================================================================
currently i am getting the output of this udf as truetruetrue
And i need to get it as below , in diff context:
true
true
true
so that i can create 3 nodes at target side.
please help!
Thanks,
Jane
Jane,
Please create a UDF with Execution Type : "All Values in Queue"
for(int i=0;i<input[0].length();i++)
{
if(input[0].charAt(i)==',')
{
result.addValue("true");
result.addContextChange();
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.