For the complete documentation index, see llms.txt. This page is also available as Markdown.

Listeners

It is possible to add listeners to almost every BPMN element. These listeners can execute custom logic when the element is in a certain state. Unlike Delegates, a listener is not visible on the BPMN diagram. It is hidden from the users. Some examples of elements to which you can add listeners:

  • take: A sequence flow is traversed.

  • create: A user task is created, meaning the task is initiated.

  • start: A service task starts its execution.

There are two different types of listeners:

  • execution listeners: A generic listener that you can add to almost every element, for example start events, service tasks, user tasks or sequence flows.

  • task listeners: A listener you can only add to and that only works within a user task.

API v2 listeners belong to the com.collibra.dgc.workflow.api.listener Java Workflow API package. Include them by specifying the full package and class name in the Execution listeners attribute. For example, use com.collibra.dgc.workflow.api.listener.AuthCacheEvictExecutionListener.

Similar to delegates, you can also construct your own listener on the fly that executes one single expression. However, it is not possible to have a return value.

Last updated

Was this helpful?