Skip to content

Ability for user to still add ExecutionListeners when Element Template is applied #893

@codygulley

Description

@codygulley

Is your feature request related to a problem? Please describe.

When an element template is applied only explicitly defined properties in the element template are rendered. This means that when I select an element template I lose the ability to add execution listeners.

Screen Shot 2023-03-17 at 2 56 30 PM

Business Case:
I have a custom delegate defined and I want to provide an element template for that delegate so that the model designer does not need to know implementation details such as Java Class path, input/output names, etc. However, there are cases where inputs/output variables may need to be pre/post processed (or other actions taken) in an execution listener and I lose the ability for a user to add execution listeners when the template is applied.

Describe the solution you'd like

On the element template definition allow for a variable at the root called allowUserDefinedExecutionListeners that is a boolean that will show/hide the section for execution listeners and will allow/disallow the ability to add new ones.

It will enable this section in the properties panel (as seen on a basic service task)
Screen Shot 2023-03-17 at 2 58 51 PM

Describe alternatives you've considered

  1. Not using element templates
    Not good UX because a user needs to know technical details of the implementation.
  2. Apply the element template, defined the values, then unlink the element template to allow adding execution listeners.
    Will allow for applying execution listeners, but loses the ability update to a newer version of an element template.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions