Bug 1035835

Summary: Process diagram not shown or shown incorrect one for not deployed processes
Product: [Retired] JBoss BPMS Platform 6 Reporter: Maciej Swiderski <mswiders>
Component: Business CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:08:50 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:

Description Maciej Swiderski 2013-11-28 15:21:28 UTC
Description of problem:
In case for completed processes that are still in data base but the deployment unit has been removed from the runtime environment when trying to access process model from process instance details panel following can happen:
- wrong process will be shown (most likely the last one that was available)
- nothing will happen as there is NPE in the code not handled properly

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


How reproducible:


Steps to Reproduce:
1. deploy process into business central
2. execute process instance till it end
3. undeploy deployment unit with that process
4. go to complete processes for that process
5. try to open process model

Actual results:
depending if any other process model was already opened:
1 if it was same process will be shown
2 if not nothing will happen after clicking on process model button

Expected results:
user should be informed that process does not exists and thus cannot be shown


Additional info:

Comment 2 Maciej Swiderski 2013-11-28 15:35:18 UTC
fixed on master to display meaningful information about the reason and possible cause

awaiting acks

jbpm
master:
https://github.com/droolsjbpm/jbpm-console-ng/commit/6924105f9ce6eebea7116a0b18f996318310e0ae

Comment 3 Maciej Swiderski 2013-11-29 11:33:26 UTC
backported to 6.0.x

jbpm
6.0.x:
https://github.com/droolsjbpm/jbpm-console-ng/commit/a44772ad64e279d39ebd3b1de1c7e7678488499e

Comment 4 Marek Baluch 2013-12-21 08:27:55 UTC
Verified on ER6.