Is your feature request related to a problem? Please describe.
There are cases where we need to enable/disable properties based on external information depending on the environment.
One for example doesnt want to create separate element-templates based on the environment where a template should be used (execution platform version or product context) but rather provide the element template engine a context that can be used to conditionally enable/disable certain properties and features in a single element-template.
Examples:
- A property that should only be shown if the element-template is applied in a Self-Managed Web-Modeler instance and not in the SaaS environment.
- A property is valid only in the context of a particular execution platform version
These cases are currently (i.e. in the case of the AWS SQS connector) handled using the labels by indicating whether an option is available or not.
Describe the solution you'd like
It would be really handy to be able to pass a context variable into the element-template engine and use this context inside a condition.
Describe alternatives you've considered
The alternative is using a single template and label options and properties that should not be considered in certain cases or to use different element templates for each environment (which leads to a lot of duplication)
Additional context
This feature could also be useful in case of when dealing with sub-processes where the engine requires context whether a single element is part of a subprocess or not.
Related to Element Template Run-time Version.
Is your feature request related to a problem? Please describe.
There are cases where we need to enable/disable properties based on external information depending on the environment.
One for example doesnt want to create separate element-templates based on the environment where a template should be used (execution platform version or product context) but rather provide the element template engine a context that can be used to conditionally enable/disable certain properties and features in a single element-template.
Examples:
These cases are currently (i.e. in the case of the AWS SQS connector) handled using the labels by indicating whether an option is available or not.
Describe the solution you'd like
It would be really handy to be able to pass a
contextvariable into the element-template engine and use thiscontextinside a condition.Describe alternatives you've considered
The alternative is using a single template and label options and properties that should not be considered in certain cases or to use different element templates for each environment (which leads to a lot of duplication)
Additional context
This feature could also be useful in case of when dealing with sub-processes where the engine requires context whether a single element is part of a subprocess or not.
Related to Element Template Run-time Version.