System.out.printf(" %s%n", phase.getSymbol());
}
YSLOG.error(e, "E00001", Arrays.toString(args));
return 1;
}
ExecutionTask task;
try {
task = ExecutionTask.load(conf.profile, conf.script, conf.arguments, conf.definitions);
} catch (Exception e) {
YSLOG.error(e, "E00002", conf);
return 1;
}
YSLOG.info("I00001", conf);
try {
switch (conf.mode) {
case BATCH:
task.executeBatch(conf.batchId);
break;
case FLOW:
task.executeFlow(conf.batchId, conf.flowId, conf.executionId);
break;
case PHASE:
task.executePhase(conf.batchId, conf.flowId, conf.executionId, conf.phase);
break;
default:
throw new AssertionError(conf.mode);
}
return 0;