use of org.camunda.bpm.model.cmmn.instance.ExitCriterion in project camunda-cmmn-model by camunda.
the class Cmmn10Test method shouldGetPlanItemExitCriterion.
@Test
public void shouldGetPlanItemExitCriterion() {
CmmnModelInstance modelInstance = getCmmnModelInstance();
PlanItem planItem = modelInstance.getModelElementsByType(PlanItem.class).iterator().next();
Collection<Sentry> exitCriterias = planItem.getExitCriterias();
assertThat(exitCriterias).hasSize(1);
Collection<Sentry> exitCriteria = planItem.getExitCriteria();
assertThat(exitCriteria).hasSize(1);
Collection<ExitCriterion> exitCriterions = planItem.getExitCriterions();
assertThat(exitCriterions).isEmpty();
}
Aggregations