abstract protected String getWorkflowXml(Configuration conf);
@Override
protected String call(WorkflowStore store) throws StoreException, CommandException {
incrJobCounter(1);
WorkflowAppService wps = Services.get().get(WorkflowAppService.class);
try {
XLog.Info.get().setParameter(DagXLogInfoService.TOKEN, conf.get(OozieClient.LOG_TOKEN));
String wfXml = getWorkflowXml(conf);
XLog.getLog(getClass()).debug("workflow xml created on the server side is :\n");
XLog.getLog(getClass()).debug(wfXml);
WorkflowApp app = wps.parseDef(wfXml);
if (conf.get(OozieClient.USE_SYSTEM_LIBPATH) == null) {
if (Services.get().getConf().getBoolean(USE_SYSTEM_LIBPATH_FOR_MR_PIG_JOBS, false)) {
conf.setBoolean(OozieClient.USE_SYSTEM_LIBPATH, true);
}
}
XConfiguration protoActionConf = wps.createProtoActionConf(conf, authToken, false);
WorkflowLib workflowLib = Services.get().get(WorkflowStoreService.class).getWorkflowLibWithNoDB();
PropertiesUtils.checkDisallowedProperties(conf, DISALLOWED_USER_PROPERTIES);
// Resolving all variables in the job properties.