Skip to content

Commit

Permalink
skipping constraints check for CaseType (MID-7351)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Nov 9, 2021
1 parent 2ae04e9 commit d7f59ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ private boolean shouldCheckConstraints() throws SchemaException {
} else if (skipWhenNoIteration && maxIterations == 0) {
LOGGER.trace("Skipping constraints check because 'skipWhenNoIteration' is true and there is no iteration defined");
return false;
} else if (TaskType.class == focusContext.getObjectTypeClass()) {
LOGGER.trace("Skipping constraints check for task, not needed because tasks names are not unique.");
} else if (TaskType.class == focusContext.getObjectTypeClass() || CaseType.class == focusContext.getObjectTypeClass()) {
LOGGER.trace("Skipping constraints check for " + focusContext.getObjectTypeClass().getSimpleName() +
", not needed because names for " + focusContext.getObjectTypeClass().getSimpleName() + " are not unique.");
return false;
} else {
return true;
Expand Down

0 comments on commit d7f59ed

Please sign in to comment.