Search in sources :

Example 1 with RequiredKnowledgeReference

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

the class RequiredKnowledgeReferenceImpl method registerType.

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

        public RequiredKnowledgeReference newInstance(ModelTypeInstanceContext instanceContext) {
            return new RequiredKnowledgeReferenceImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : RequiredKnowledgeReference(org.camunda.bpm.model.dmn.instance.RequiredKnowledgeReference) 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 RequiredKnowledgeReference (org.camunda.bpm.model.dmn.instance.RequiredKnowledgeReference)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1