I need 2 output file after reformating. See as below:
reformat.png
And here is the mapping code:
function integer transform() {
$out.0.Name = $in.0.Name;
$out.0.Age = str2integer($in.0.Age);
$out.1.Name = $in.0.Name;
return OK;
}
But after I run it, only the port 0 has record.