Bug 802797

Summary: Human task does not disappear after deleting/terminating the process instance
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Zuzana Krejčová <zkrejcov>
Component: jBPM ConsoleAssignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: lpetrovi
Target Milestone: ER6   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zuzana Krejčová 2012-03-13 14:21:32 UTC
Description of problem:
Human task does not disappear after deleting/terminating the process instance. It can still be completed.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4


How reproducible:


Steps to Reproduce:
1. Log into the console asi krisv.
2. Start an instance of Evaluation process form the jbpm sample repo, enter krisv as the user. 
3. Delete or terminate that same instance.
4. Go to Personal Tasks.
  

Actual results:
The human task, self evaluation, is available for completion.


Expected results:
No task available.

Comment 1 Maciej Swiderski 2012-03-19 20:39:18 UTC
Task is still available due to it is marked as not skippable (on bpmn2 definition). 

Suggested approach is to allow adminitrator to skip any task even these that are not marked as skippable to avoid of leaving task behing that are not connected to any process instance any more (since process instances can be deleted/terminated at any time).

Comment 2 Maciej Swiderski 2012-03-20 17:30:52 UTC
Pull request is available at https://github.com/droolsjbpm/jbpm/pull/60

introduces new method 'exit' that is used to close task in case it is not needed any more, like in case of terminate or delete of process instance. It is dedicated only to business administrators.

Comment 3 Ryan Zhang 2012-04-23 07:37:05 UTC
Update status to ON_QA. Please verify them against ER6.