Search in sources :

Example 1 with UsingProcessReference

use of org.camunda.bpm.model.dmn.instance.UsingProcessReference in project camunda-dmn-model by camunda.

the class UsingProcessReferenceImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(UsingProcessReference.class, DMN_ELEMENT_USING_PROCESS).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<UsingProcessReference>() {

        public UsingProcessReference newInstance(ModelTypeInstanceContext instanceContext) {
            return new UsingProcessReferenceImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : UsingProcessReference(org.camunda.bpm.model.dmn.instance.UsingProcessReference) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) DmnElementReference(org.camunda.bpm.model.dmn.instance.DmnElementReference) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

DmnElementReference (org.camunda.bpm.model.dmn.instance.DmnElementReference)1 UsingProcessReference (org.camunda.bpm.model.dmn.instance.UsingProcessReference)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1