use of org.camunda.bpm.model.dmn.instance.ContextEntry in project camunda-dmn-model by camunda.
the class ContextEntryImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ContextEntry.class, DMN_ELEMENT_CONTEXT_ENTRY).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<ContextEntry>() {
public ContextEntry newInstance(ModelTypeInstanceContext instanceContext) {
return new ContextEntryImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
variableChild = sequenceBuilder.element(Variable.class).build();
expressionChild = sequenceBuilder.element(Expression.class).required().build();
typeBuilder.build();
}
Aggregations