camunda / issues

4 stars 0 forks source link

Provide Execution listeners comprehensive support #770

Open engineering-issue-sync-app[bot] opened 4 months ago

engineering-issue-sync-app[bot] commented 4 months ago

Value Proposition Statement πŸš€

Easily react on process execution to evaluate complex variable handling with code or update the internal database.

User Problem 🀦

Summary: Customers require the ability to perform pre and post-execution tasks, often involving custom code, for activities within a process definition. These tasks should not be represented as separate steps in the BPMN diagram, as they are purely technical in nature.

Details: Currently, there is a lack of functionality to respond to transitions within a process instance in order to track the progress of process execution in external systems and execute code both before and after specific process elements. The external code typically encompasses business logic that relies on data from various internal systems to update flow node instances before or after specific elements.

The only available option for achieving this functionality is by employing code within an external task, which is limited to service tasks. In scenarios where such logic needs to be applied to other elements, this approach becomes impractical, as it either becomes impossible or necessitates the modeling of service tasks before and after each activity.

Release Notes

Have you ever faced a situation when you needed to add pre- and post-processing logic for specific elements in the process definition without bloating the diagram? With this release, Camunda introduces Execution Listeners to respond to transitions within a process instance effectively. Users can now add ELs to any activity, including process instances, to facilitate their use cases.

Developers can use the existing job worker concept to efficiently handle listener jobs, passing additional variables as needed and using usual job properties like retries or job type.

User Stories πŸ§‘β€πŸš€

Modeling

Execution

Documentation and monitoring

Implementation πŸ‘·

Scope:

:robot: This issue is automatically synced from: source