Search in sources :

Example 1 with CaseParameter

use of org.camunda.bpm.model.cmmn.instance.CaseParameter in project camunda-cmmn-model by camunda.

the class CaseParameterImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CaseParameter.class, CMMN_ELEMENT_CASE_PARAMETER).namespaceUri(CMMN11_NS).extendsType(Parameter.class).instanceProvider(new ModelTypeInstanceProvider<CaseParameter>() {

        public CaseParameter newInstance(ModelTypeInstanceContext instanceContext) {
            return new CaseParameterImpl(instanceContext);
        }
    });
    bindingRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_BINDING_REF).idAttributeReference(CaseFileItem.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    bindingRefinementChild = sequenceBuilder.element(BindingRefinementExpression.class).build();
    typeBuilder.build();
}
Also used : SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) CaseParameter(org.camunda.bpm.model.cmmn.instance.CaseParameter) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) CaseParameter(org.camunda.bpm.model.cmmn.instance.CaseParameter) Parameter(org.camunda.bpm.model.cmmn.instance.Parameter) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

CaseParameter (org.camunda.bpm.model.cmmn.instance.CaseParameter)1 Parameter (org.camunda.bpm.model.cmmn.instance.Parameter)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