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