Search in sources :

Example 1 with Question

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

the class QuestionImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Question.class, DMN_ELEMENT_QUESTION).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Question>() {

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

Aggregations

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