}
if (orderPayload != null && orderPayload.var("timeout") != null && orderPayload.var("timeout").toString().length() > 0
&& !orderPayload.var("timeout").toString().equals("0")) {
spooler_log.info("executable file is launched with process id " + subProc.pid() + " for timeout in "
+ orderPayload.var("timeout").toString() + "s");
boolean terminated = subProc.wait_for_termination(Double.parseDouble(orderPayload.var("timeout").toString()));
if (!terminated) {
spooler_log.info("timeout reached, process will be terminated.");
subProc.kill();
subProc.wait_for_termination();
timedOut = true;