Skip to content

Conversation

@roumn
Copy link
Contributor

@roumn roumn commented Sep 4, 2025

Add logic to the SaveTaskCmds to trigger the IdentityLinkInterceptors in BPMN and CMMN when changing task assignee or task owner.

Added tests for all methods of the IdentityLinkInterceptors.

One additional note: I've noticed that in the process engine, when setting the task owner to null, the identity link interceptor is not executed. It is executed when setting the task assignee to null in the process engine, or when setting owner or assignee to null in the CMMN engine.

Process engine: https://github.com/flowable/flowable-engine/blob/main/modules/flowable-engine/src/main/java/org/flowable/engine/impl/util/TaskHelper.java#L302

CMMN engine: https://github.com/flowable/flowable-engine/blob/main/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/task/TaskHelper.java#L168

I've kept it for now, but might make sense to make behavior consistent.

Check List:

  • Unit tests: YES
  • Documentation: NO

@roumn
Copy link
Contributor Author

roumn commented Sep 4, 2025

I've made the behavior consistent and the IdentityLinkInterceptors are not now called when the task is unclaimed or the assignee is removed.

@tijsrademakers tijsrademakers merged commit 918253c into flowable:main Sep 4, 2025
2 checks passed
tijsrademakers pushed a commit that referenced this pull request Sep 4, 2025
#4119)

* Add tests for IdentityLinkInterceptors and enhance SaveTaskCmds to handle assignee and owner changes

* Do not trigger IdentityLinkInterceptors when assignee or owner is removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants