Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8392

UDF to Create multiple nodes

$
0
0

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


Viewing all articles
Browse latest Browse all 8392

Trending Articles



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