Bug 1254823
| Summary: | Tasks with reassignment throws exception when completing it using the REST API | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | William Antônio <wsiqueir> | ||||
| Component: | Business Central | Assignee: | Shelly McGowan <smcgowan> | ||||
| Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 6.1.0 | CC: | kverlaen, wsiqueir | ||||
| Target Milestone: | ER4 | ||||||
| Target Release: | 6.2.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1256957 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-03-27 20:06:25 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1256957 | ||||||
| Attachments: |
|
||||||
William, thanks for creating the bug. Could you attach a full server.log to the bugzilla? Thanks! If you could also attach the BPMN2 file that you're using to reproduce this issue, that would be great. Created attachment 1065425 [details]
The log, a bpmn and a video showing the error
Hello Marco, please see the attachment I created. It has the logs, a video and the bpmn of the process.
Thanks!
Note to self: in the video, the exception being thrown shows that the per-process-instance deployment strategy is being used. Make sure to test against that as well as the other 2 strategies. Fixed. Commits: 6.3.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/c5309e82 master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/89827668 Task was completed via REST api, verified with 6.2.0ER4 |
Description of problem: With a really simple process with a human task only that has a reassignment to a group if an user does not complete the task, and if the tasks is completed using the REST API before the reassignment happen, we have the following exception: ERROR org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context {context} Version-Release number of selected component (if applicable): n/a How reproducible: alwyas Steps to Reproduce: 1.create a process with a single human task and configure a reassignment of type "not-complete" for it, for example: users:|groups:r1@1m@not-completed 2. deploy the project with the process 3. start the process, claim the task, start it and complete it using the REST API before the reassignment fires, make sure the process is finished once you complete the task 4. Wait the same time you set for the reassignment Actual results: Error in the logs when the reassignment should be fired: ERROR org.kie.internal.runtime.manager.SessionNotFoundException: No session found for context {context} Expected results: No error in the logs Additional info: It works when completing the task using Business Central. Seems that the REST API probably misses some call when process are ended to cancel all the scheduled re-assignments?