Bug 1254823 - Tasks with reassignment throws exception when completing it using the REST API
Summary: Tasks with reassignment throws exception when completing it using the REST API
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: ER4
: 6.2.0
Assignee: Shelly McGowan
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1256957
TreeView+ depends on / blocked
 
Reported: 2015-08-19 00:36 UTC by William Antônio
Modified: 2020-03-27 20:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 1256957 (view as bug list)
Environment:
Last Closed: 2020-03-27 20:06:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
The log, a bpmn and a video showing the error (7.10 MB, application/zip)
2015-08-21 02:12 UTC, William Antônio
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.