Search in sources :

Example 1 with ContextEntry

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();
}
Also used : Expression(org.camunda.bpm.model.dmn.instance.Expression) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext) ContextEntry(org.camunda.bpm.model.dmn.instance.ContextEntry)

Aggregations

ContextEntry (org.camunda.bpm.model.dmn.instance.ContextEntry)1 Expression (org.camunda.bpm.model.dmn.instance.Expression)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1