cancel
Showing results for 
Search instead for 
Did you mean: 

mapping question - concat two nodes

Former Member
0 Kudos

hi all,

i need to map a node with many occurrencies to a node with only one ocurrency, and i need to concat all the values from the source node into the target node.

example:

<delivery> 1..unbounded --> <data> 0..1

<delivery> "this is "

<delivery> "an example"

result

<data> "this is an example"

does anybody know how can i solve this qestion?

thanks in advanced.

regards, Fabian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go for UDF...

pass the source data as queue input to the UDF(i.e array)..in that udf loop over the source input and do concat inside the loop and pass the final result to the target element...

string target = "";

for(int i =0 ;i<input.length;i++)

{

target = target + input<i>;

}

if there are multiple contexts in this then need to handle the same

HTH

Rajesh

Former Member
0 Kudos

hi Rajesh! thank you very much for your help. Your answer was really helpful.

regards, Fabian

Answers (0)