This Process Engine Plugin registers a TaskListener for every Human Task in all cases that are deployed to the engine.
As Human Tasks are handled as User Tasks in processes, you can reuse your existing task listeners.
No need to model this task listener explicitly in every human task any more.
The CmmnTransformerProcessEnginePlugin registers the ExampleCmmnTransformListener, which is the corresponding part to a BpmnParseListener. Here you add your ExampleTaskListener.
When a new case definition is deployed, the listener is added to every human task in the case. You don't need to model them explicitly.
To get started refer to InMemoryH2Test
and camunda.cfg.xml
.
Run the test and inspect the console output to see the listener working.
For using it in production you have to integrate the plugin into your Camunda BPM configuration.
Built and tested against Camunda BPM version 7.7.0.
This project has been generated by the Maven archetype camunda-archetype-engine-plugin-7.7.0.