use of org.camunda.bpm.model.cmmn.CmmnModelInstance 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();
}
use of org.camunda.bpm.model.cmmn.CmmnModelInstance in project camunda-cmmn-model by camunda.
the class Cmmn10Test method shouldGetPlanItemEntryCriterion.
@Test
public void shouldGetPlanItemEntryCriterion() {
CmmnModelInstance modelInstance = getCmmnModelInstance();
PlanItem planItem = modelInstance.getModelElementsByType(PlanItem.class).iterator().next();
Collection<Sentry> entryCriterias = planItem.getEntryCriterias();
assertThat(entryCriterias).hasSize(1);
Collection<Sentry> entryCriteria = planItem.getEntryCriteria();
assertThat(entryCriteria).hasSize(1);
Collection<EntryCriterion> entryCriterions = planItem.getEntryCriterions();
assertThat(entryCriterions).isEmpty();
}
Aggregations