Skip to content

Commit

Permalink
Make sure text annotations don't result in a warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed May 7, 2024
1 parent 7211201 commit 82337ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ public void processDI(CmmnModel cmmnModel, List<CaseDefinitionEntity> caseDefini
continue;
}

if (cmmnModel.findPlanItem(cmmnReference) == null && cmmnModel.getCriterion(cmmnReference) == null) {
if (cmmnModel.findPlanItem(cmmnReference) == null && cmmnModel.getCriterion(cmmnReference) == null &&
cmmnModel.findTextAnnotation(cmmnReference) == null) {

logger.warn("Invalid reference in diagram interchange definition: could not find {}", cmmnReference);
}
}
Expand Down

0 comments on commit 82337ee

Please sign in to comment.