Skip to content

Commit

Permalink
validator set fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Mar 28, 2014
1 parent a484d7b commit 5ce7d5b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ public List<ValidationError> validate(BpmnModel bpmnModel) {

for (ValidatorSet validatorSet : validatorSets) {
for (Validator validator : validatorSet.getValidators()) {
validator.validate(bpmnModel, allErrors);
if (allErrors.size() > 0) {
for (ValidationError error : allErrors) {
List<ValidationError> validatorErrors = new ArrayList<ValidationError>();
validator.validate(bpmnModel, validatorErrors);
if (validatorErrors.size() > 0) {
for (ValidationError error : validatorErrors) {
error.setValidatorSetName(validatorSet.getName());
}
allErrors.addAll(validatorErrors);
}
}
}
Expand Down

0 comments on commit 5ce7d5b

Please sign in to comment.