Search in sources :

Example 36 with PlanItemControl

use of org.camunda.bpm.model.cmmn.instance.PlanItemControl in project camunda-cmmn-model by camunda.

the class PlanItemControlImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(PlanItemControl.class, CMMN_ELEMENT_PLAN_ITEM_CONTROL).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<PlanItemControl>() {

        public PlanItemControl newInstance(ModelTypeInstanceContext instanceContext) {
            return new PlanItemControlImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    repetitionRuleChild = sequenceBuilder.element(RepetitionRule.class).build();
    requiredRuleChild = sequenceBuilder.element(RequiredRule.class).build();
    manualActivationRuleChild = sequenceBuilder.element(ManualActivationRule.class).build();
    typeBuilder.build();
}
Also used : CmmnElement(org.camunda.bpm.model.cmmn.instance.CmmnElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) PlanItemControl(org.camunda.bpm.model.cmmn.instance.PlanItemControl) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

PlanItemControl (org.camunda.bpm.model.cmmn.instance.PlanItemControl)36 ConditionExpression (org.camunda.bpm.model.cmmn.instance.ConditionExpression)33 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)32 Test (org.junit.Test)32 CaseControlRule (org.camunda.bpm.engine.impl.cmmn.CaseControlRule)25 RepetitionRule (org.camunda.bpm.model.cmmn.instance.RepetitionRule)15 RequiredRule (org.camunda.bpm.model.cmmn.instance.RequiredRule)11 ManualActivationRule (org.camunda.bpm.model.cmmn.instance.ManualActivationRule)9 CmmnElement (org.camunda.bpm.model.cmmn.instance.CmmnElement)1 CamundaString (org.camunda.bpm.model.cmmn.instance.camunda.CamundaString)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1