use of org.camunda.bpm.model.dmn.instance.DecisionRule in project camunda-dmn-model by camunda.
the class DecisionRuleImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DecisionRule.class, DMN_ELEMENT_DECISION_RULE).namespaceUri(DMN11_NS).extendsType(DmnElement.class).instanceProvider(new ModelTypeInstanceProvider<DecisionRule>() {
public DecisionRule newInstance(ModelTypeInstanceContext instanceContext) {
return new DecisionRuleImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
inputEntryCollection = sequenceBuilder.elementCollection(InputEntry.class).build();
outputEntryCollection = sequenceBuilder.elementCollection(OutputEntry.class).required().build();
typeBuilder.build();
}
Aggregations