Search in sources :

Example 1 with CorrelationPropertyRetrievalExpression

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

the class CorrelationPropertyRetrievalExpressionImpl method registerType.

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

        public CorrelationPropertyRetrievalExpression newInstance(ModelTypeInstanceContext instanceContext) {
            return new CorrelationPropertyRetrievalExpressionImpl(instanceContext);
        }
    });
    messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF).required().qNameAttributeReference(Message.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    messagePathChild = sequenceBuilder.element(MessagePath.class).required().build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) 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) CorrelationPropertyRetrievalExpression(org.camunda.bpm.model.bpmn.instance.CorrelationPropertyRetrievalExpression)

Aggregations

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