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?
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