in taverna-commandline-common/src/main/java/org/apache/taverna/commandline/CommandLineTool.java [354:368]
protected void validateWorkflowBundle(WorkflowBundle workflowBundle) throws ValidationException {
CorrectnessValidator cv = new CorrectnessValidator();
ReportCorrectnessValidationListener rcvl = new ReportCorrectnessValidationListener();
cv.checkCorrectness(workflowBundle, true, rcvl);
if (rcvl.detectedProblems()) {
throw rcvl.getException();
}
StructuralValidator sv = new StructuralValidator();
ReportStructuralValidationListener rsvl = new ReportStructuralValidationListener();
sv.checkStructure(workflowBundle, rsvl);
if (rsvl.detectedProblems()) {
throw rcvl.getException();
}
}