Skip to content

Commit

Permalink
improve(user-guide): clarify end event of execution listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorbenLindhauer committed Apr 19, 2023
1 parent 26f5c18 commit 6f5b229
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/user-guide/process-engine/delegation-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@ The last execution listener is called when activity secondTask ends. Instead of
<camunda:executionListener expression="${myPojo.myMethod(execution.eventName)}" event="end" />
```

{{< note title="Note!" class="info" >}}

The `end` event triggers under *any* circumstance in which the activity ends. That includes successful completion of the activity's business logic, but also interruption and cancellation, for example when an attached boundary event triggers.

{{< /note >}}


As with other expressions, execution variables are resolved and can be used. Because the execution implementation object has a property that exposes the event name, it's possible to pass the event-name to your methods using execution.eventName.

Execution listeners also support using a delegateExpression, similar to a service task.
Expand Down

0 comments on commit 6f5b229

Please sign in to comment.