TaskListener support in ElementTemplates

Please let me know if adding a taskListener to a usertask in Camunda Modeler is supported.

Thanks in advance!

Hi,

It is supported.
image

Best regards,
Yana

Thanks for confirming.

I tried adding it in the Element Templates json as below, however it does not show up the UserTask name in the ElementTemplates dropdown. If i remove the camunda:taskListener properties entry, them it shows up. Kindly advice.

[
{
“name”: “Task Listener”,
“id”: “my.TaskListener”,
“appliesTo”: [
“bpmn:UserTask”
],
“properties”: [
{
“value”: “My Value”,
“type”: “Hidden”,
“binding”: {
“type”: “camunda:taskListener”,
“event”: “create”,
“listenerType”: “camunda:delegateExpression”
}
}
]
}
]