Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

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 CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 6.1.0CC: 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:
Description Flags
The log, a bpmn and a video showing the error none

Description William Antônio 2015-08-19 00:36:17 UTC
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?

Comment 2 Marco Rietveld 2015-08-20 11:47:02 UTC
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.

Comment 3 William Antônio 2015-08-21 02:12:53 UTC
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!

Comment 4 Marco Rietveld 2015-09-24 07:56:54 UTC
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.

Comment 6 jvahala 2015-10-23 14:44:05 UTC
Task was completed via REST api, verified with 6.2.0ER4