Bug 1015557

Summary: Data Modeller resets Project Explorer package
Product: [Retired] JBoss BRMS Platform 6 Reporter: Sona Mala <smala>
Component: Business CentralAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: etirelli
Target Milestone: ER5   
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:17:16 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:
Attachments:
Description Flags
Video file - step to reproduce none

Description Sona Mala 2013-10-04 13:50:11 UTC
Created attachment 807663 [details]
Video file - step to reproduce

Description of problem:
Save operation of the data modeller resets Project Explorer package to <default> and sometimes disables dropdown menu for "New Item".


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

How reproducible:


Steps to Reproduce (see attached video):
1. open a project with some packages
2. select any package 
3. open data modeller
4. add class
5. save

Actual results:
After few minutes the project explorer shows <default> package instead of package which was selected in step 2.

Expected results:
The project explorer shows still the same package (no changes).

Additional info:
Sometimes happen that "New Item" enables just "Project" item and "Business Process" item. I hope that this is reaction on reset a state of the project explorer.

Comment 1 Edson Tirelli 2013-10-10 15:41:51 UTC
Disabling the New Item menu items is something we need to address. The package reset I am not so sure as the data modeller is global to all packages. I guess it would be nice to keep the previously selected package just for user friendliness.

Comment 2 manstis 2013-10-14 13:30:39 UTC
Walter, I suspect your use of ProjectContextChangeEvent in DataModelerScreenPresenter.saveAndChangeProject(boolean, Project) is causing this behavour? Changing the project clears the package.

Comment 3 Sona Mala 2013-10-17 13:02:46 UTC
State in ER4:
Project explorer shows right package but "New Item" drop-down menu has disabled all options (only Project is enabled). The behaviour is like the any Path is selected.

You can enable all options if you select different package in Project Explorer.

Comment 4 Walter Medvedeo 2013-10-17 16:39:45 UTC
Notifications from datamodeler to the project explorer was improved in order to let the project explorer be aware of package/files creation.

The following commits introduces the changes.

master: http://github.com/droolsjbpm/kie-wb-common/commit/570d20d8d

6.0.x: http://github.com/droolsjbpm/kie-wb-common/commit/e889ca53b

Comment 5 Sona Mala 2013-12-17 15:06:28 UTC
Verified for ER5.

Package is still selected and New Item contains actual path of Project Explorer.