Search in sources :

Example 1 with AllowedAnswers

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

the class AllowedAnswersImpl method registerType.

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

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

Aggregations

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