Search in sources :

Example 11 with PlanItem

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

Aggregations

PlanItem (org.camunda.bpm.model.cmmn.instance.PlanItem)11 Test (org.junit.Test)8 HumanTask (org.camunda.bpm.model.cmmn.instance.HumanTask)5 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)4 CaseDefinitionEntity (org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionEntity)3 Case (org.camunda.bpm.model.cmmn.instance.Case)3 CasePlanModel (org.camunda.bpm.model.cmmn.instance.CasePlanModel)3 Sentry (org.camunda.bpm.model.cmmn.instance.Sentry)3 Stage (org.camunda.bpm.model.cmmn.instance.Stage)3 CmmnModelInstance (org.camunda.bpm.model.cmmn.CmmnModelInstance)2 PlanItemDefinition (org.camunda.bpm.model.cmmn.instance.PlanItemDefinition)2 CmmnOnPartDeclaration (org.camunda.bpm.engine.impl.cmmn.model.CmmnOnPartDeclaration)1 CmmnSentryDeclaration (org.camunda.bpm.engine.impl.cmmn.model.CmmnSentryDeclaration)1 PlanItemTransition (org.camunda.bpm.model.cmmn.PlanItemTransition)1 CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)1 EntryCriterion (org.camunda.bpm.model.cmmn.instance.EntryCriterion)1 ExitCriterion (org.camunda.bpm.model.cmmn.instance.ExitCriterion)1 CamundaString (org.camunda.bpm.model.cmmn.instance.camunda.CamundaString)1 CmmnModelResource (org.camunda.bpm.model.cmmn.util.CmmnModelResource)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1