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();
}
Aggregations