Can we add custom attributes to input parameter

Hi Team,

I want to create custom attribute ref to the input parameter is it possible to add our own custom attribute.
inside input parameter.
camunda:inputOutput
<camunda:inputParameter ref=“INPUT.input” name=“input”>sdsdd</camunda:inputParameter>
</camunda:inputOutput>

Hi @shweta,

yes - that is possible. You would need to create a model extension which defines the custom attribute you want to add. An example of how to do that can be found here: model extension example.

What is the overall goal / use-case you want to implement?

1 Like

thanks for the reply maxtru
I just need to add one (ref) attribute to the input parameter to store the name of the variable whenevr we give the input
<camunda:inputOutput
<camunda:inputParameter ref=“INPUT.input” name=“input”>sdsdd</camunda:inputParameter>
</camunda:inputOutput>

Then the first step would be, to create a custom model following along this guide. Using the extends property, you can extend existing types (here, the camunda:InputParameter).

1 Like