LOG.debug("Validating WindGate Vocabularies (batch={}, flow={})",
getEnvironment().getBatchId(),
getEnvironment().getFlowId());
boolean valid = true;
for (InputDescription input : inputs) {
WindGateImporterDescription desc = extract(input);
try {
validateCommonProperties(desc);
if (desc.getDriverScript() == null) {
throw new IllegalStateException(MessageFormat.format(
"Driver script is not defined: {0}",
desc.getClass().getName()));
}
} catch (IllegalStateException e) {
getEnvironment().error(
"Importer description \"{0}\" is invalid (batch={1}, flow={2}): {3}",
input.getName(),
getEnvironment().getBatchId(),
getEnvironment().getFlowId(),
e.getMessage());
valid = false;
}
}
for (OutputDescription output : outputs) {
WindGateExporterDescription desc = extract(output);
try {
validateCommonProperties(desc);
if (desc.getDriverScript() == null) {
throw new IllegalStateException(MessageFormat.format(
"Driver script is not defined: {0}",
desc.getClass().getName()));
}
} catch (IllegalStateException e) {
getEnvironment().error(
"Exporter description \"{0}\" is invalid (batch={1}, flow={2}): {3}",
output.getName(),