Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owner/Assignee cannot be overridden by a StartProcessInstanceInterceptor #3628

Open
epictecch opened this issue Apr 5, 2023 · 0 comments
Open

Comments

@epictecch
Copy link

The process start capabilities have been extended with #3449. It allows to set the owner and assignee directly at the process start.
Furthermore, the developer has foreseen the possibility to override these properties by a StartProcessInstanceInterceptor but does not use these overridden values.
See
https://github.com/flowable/flowable-engine/blob/main/modules/flowable-engine/src/main/java/org/flowable/engine/impl/util/ProcessInstanceHelper.java#L236
and
https://github.com/flowable/flowable-engine/blob/main/modules/flowable-engine/src/main/java/org/flowable/engine/impl/util/ProcessInstanceHelper.java#L239
Instead of using the variables ownerId and assigneeId, the values from startInstanceBeforeContext.getOwnerId() and startInstanceBeforeContext.getAssigneeId() should be used.

Additional context:
Note that the pull request #3449 is superseded by my own pull request #3407. If it is planned to use the #3407 feature, you might want to remove the #3449 feature and in that case, this bug report gets obsolete.

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

No branches or pull requests

1 participant