Search in sources :

Example 1 with ResourceParameterBinding

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

the class ResourceParameterBindingImpl method registerType.

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

        public ResourceParameterBinding newInstance(ModelTypeInstanceContext instanceContext) {
            return new ResourceParameterBindingImpl(instanceContext);
        }
    });
    parameterRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PARAMETER_REF).required().qNameAttributeReference(ResourceParameter.class).build();
    SequenceBuilder sequenceBuilder = typeBuilder.sequence();
    expressionChild = sequenceBuilder.element(Expression.class).required().build();
    typeBuilder.build();
}
Also used : BaseElement(org.camunda.bpm.model.bpmn.instance.BaseElement) ResourceParameterBinding(org.camunda.bpm.model.bpmn.instance.ResourceParameterBinding) Expression(org.camunda.bpm.model.bpmn.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)

Aggregations

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