use of org.apache.oozie.coord.ElException in project oozie by apache.
the class CoordPushDependencyCheckXCommand method resolveCoordConfiguration.
private String resolveCoordConfiguration() throws CommandException {
try {
Configuration actionConf = new XConfiguration(new StringReader(coordAction.getRunConf()));
StringBuilder actionXml = new StringBuilder(coordAction.getActionXml());
String newActionXml = CoordActionInputCheckXCommand.resolveCoordConfiguration(actionXml, actionConf, actionId, coordAction.getPullInputDependencies(), coordAction.getPushInputDependencies());
actionXml.replace(0, actionXml.length(), newActionXml);
return actionXml.toString();
} catch (ElException e) {
coordAction.setStatus(CoordinatorAction.Status.FAILED);
updateCoordAction(coordAction, true);
throw new CommandException(ErrorCode.E1021, e.getMessage(), e);
} catch (Exception e) {
throw new CommandException(ErrorCode.E1021, e.getMessage(), e);
}
}
Aggregations