Search in sources :

Example 1 with DefaultControl

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

the class DefaultControlImpl method registerType.

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

        public DefaultControl newInstance(ModelTypeInstanceContext instanceContext) {
            return new DefaultControlImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : 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) DefaultControl(org.camunda.bpm.model.cmmn.instance.DefaultControl)

Aggregations

DefaultControl (org.camunda.bpm.model.cmmn.instance.DefaultControl)1 PlanItemControl (org.camunda.bpm.model.cmmn.instance.PlanItemControl)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1