Search in sources :

Example 1 with CorrelationPropertyBinding

use of org.camunda.bpm.model.bpmn.instance.CorrelationPropertyBinding in project camunda-bpmn-model by camunda.

the class CorrelationPropertyBindingImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationPropertyBinding.class, BPMN_ELEMENT_CORRELATION_PROPERTY_BINDING).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<CorrelationPropertyBinding>() {

        public CorrelationPropertyBinding newInstance(ModelTypeInstanceContext instanceContext) {
            return new CorrelationPropertyBindingImpl(instanceContext);
        }
    });
    correlationPropertyRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_CORRELATION_PROPERTY_REF).required().qNameAttributeReference(CorrelationProperty.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    dataPathChild = sequenceBuilder.element(DataPath.class).required().build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) SequenceBuilder(org.camunda.bpm.model.xml.type.child.SequenceBuilder) CorrelationPropertyBinding(org.camunda.bpm.model.bpmn.instance.CorrelationPropertyBinding) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

BaseElement (org.camunda.bpm.model.bpmn.instance.BaseElement)1 CorrelationPropertyBinding (org.camunda.bpm.model.bpmn.instance.CorrelationPropertyBinding)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