How to detect external task added?

I want to add logic when adding service task with type external so is there any event to detect that external task added in camunda modeler ??

@ayatalat configure a execution listener to the external service task and get the task properties like below to identify the type of task.

execution.getBpmnModelElementInstance().getElementType().getTypeName();

image

Are you working on a custom modeler?

You can listen to elements.changed using EventBus#on and you’ll get notified whenever any element has changed. You could use that as a starting point.