In my flow, there will be Metadata with path "[Metadata.Text:Path="/order/id",Dataset="Order",Model="XML"]" and "[Metadata.Text:Path="/order/reference",Dataset="Order",Model="XML"]" how can I access them in a script?
I tried this:
Code: Select all
function jobArrived( s : Switch, job : Job )
{
var data = s.getString( xmp-path : "/order/reference", map ); // getString( xmp-path : String, prefix-map : Map ) : String
job.log(1,"Data: "+data);
}