Search in sources :

Example 1 with InputClause

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

the class InputClauseImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputClause.class, DMN_ELEMENT_INPUT_CLAUSE).namespaceUri(DMN11_NS).extendsType(DmnElement.class).instanceProvider(new ModelTypeInstanceProvider<InputClause>() {

        public InputClause newInstance(ModelTypeInstanceContext instanceContext) {
            return new InputClauseImpl(instanceContext);
        }
    });
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    inputExpressionChild = sequenceBuilder.element(InputExpression.class).required().build();
    inputValuesChild = sequenceBuilder.element(InputValues.class).build();
    // camunda extensions
    camundaInputVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_INPUT_VARIABLE).namespace(CAMUNDA_NS).build();
    typeBuilder.build();
}
Also used : DmnElement(org.camunda.bpm.model.dmn.instance.DmnElement) 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) InputExpression(org.camunda.bpm.model.dmn.instance.InputExpression) InputClause(org.camunda.bpm.model.dmn.instance.InputClause)

Aggregations

DmnElement (org.camunda.bpm.model.dmn.instance.DmnElement)1 InputClause (org.camunda.bpm.model.dmn.instance.InputClause)1 InputExpression (org.camunda.bpm.model.dmn.instance.InputExpression)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