Search in sources :

Example 26 with ExitCriterion

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();
}
Also used : PlanItem(org.camunda.bpm.model.cmmn.instance.PlanItem) Sentry(org.camunda.bpm.model.cmmn.instance.Sentry) CmmnModelInstance(org.camunda.bpm.model.cmmn.CmmnModelInstance) ExitCriterion(org.camunda.bpm.model.cmmn.instance.ExitCriterion) Test(org.junit.Test)

Aggregations

ExitCriterion (org.camunda.bpm.model.cmmn.instance.ExitCriterion)26 Sentry (org.camunda.bpm.model.cmmn.instance.Sentry)25 Test (org.junit.Test)23 SentryHandler (org.camunda.bpm.engine.impl.cmmn.handler.SentryHandler)21 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)21 CmmnSentryDeclaration (org.camunda.bpm.engine.impl.cmmn.model.CmmnSentryDeclaration)21 ConditionExpression (org.camunda.bpm.model.cmmn.instance.ConditionExpression)21 IfPart (org.camunda.bpm.model.cmmn.instance.IfPart)21 CasePlanModelHandler (org.camunda.bpm.engine.impl.cmmn.handler.CasePlanModelHandler)19 Body (org.camunda.bpm.model.cmmn.instance.Body)14 EntryCriterion (org.camunda.bpm.model.cmmn.instance.EntryCriterion)7 ArrayList (java.util.ArrayList)2 CmmnModelInstance (org.camunda.bpm.model.cmmn.CmmnModelInstance)2 CasePlanModel (org.camunda.bpm.model.cmmn.instance.CasePlanModel)1 PlanItem (org.camunda.bpm.model.cmmn.instance.PlanItem)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1