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;
}
}