if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
params.merge(spooler_task.order().params());
// mandatory parameters
name = "file";
if ( params.var(name)!=null && params.var(name).length()>0 ) {
fileName = params.var(name);
// To make orderparams available for substitution in orderparam value
while (fileName.matches("^.*%[^%]+%.*$")) {
String p = fileName.replaceFirst("^.*%([^%]+)%.*$", "$1");