I am trying to use an element template and I am having trouble determining the correct JSON syntax when configuring an execution Listener with a Java Class.
Ok, so I looked into the modeler source, seems execution listener with anything other than a script are not currently available.
The question now becomes, when will this be available?
Scenario:
I want to add a set of listeners to specific user tasks but I don’t want the process designer/developer (semi technical) to have to remember which combinations of listeners go together. I want to use Element Templates to group these listeners together so the developer only needs to select the associated template to their function, the listeners would be added automatically.
The script simply creates a new instance of custom JavaDelegate/ExecutionListener class and executes it with current execution instance (see article about available script variables). And it works exactly same like “class” listener type then.
If you are looking for even further customizations, here is something i was working on yesterday that gives you access to the Fluent API builder when you deploy: Ability to edit BpmnModelInstance before bpmn parse listener?. You can configure your activities with element templates that save Camunda Properties (the extension tab in modeler). and then you detect those properties and edit with the fluent api. as reusable objects.