Red Hat Bugzilla – Bug 988859
Data modeler doesn't see packages created by "New item" menu
Last modified: 2013-10-18 09:33:34 EDT
Description of problem:
First I create a new package by navigating to my project, the clicking New item > Package and entering my/cool/stuff. The I would like to define new objects using Data modeler. When I issue Data modeler > New Data Object the form that appears doesn't list my.cool.stuff among existing packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. go to uf-playground / mortgages, create new package my.cool.stuff (you have to type "my/cool/stuff" as the File Name)
2. open Data modeler and bring up the "Create new data object" dialog
The Existing package select box doesn't contain my.cool.stuff package.
It should be possible to select my.cool.stuff from Existing package select box
This is not a bug, it is due to the implementation of the data modeller. As for now, it will only take into account those packages that are non-empty, i.e. that contain valid java objects.
Possible candidate for improvement in a future release.
There are several platform and module improvements that need to be implemented to fix this issue and other related that are planned for 6.1. Since this issue is not something blocker, it's more an usability issue postpone this to 6.1 is proposed.
*** Bug 1005238 has been marked as a duplicate of this bug. ***
With reference to this bug, and bug 1005238 the following the following improvements has been done:
When the "Data modeler is opened" available packages will be read from current project. In this way when you create a new data object the list of packages to select has all the packages form project.
If you create some packages from the project explorer and then open the datamodler it works as espected.
The following use case is not yet implemented:
1) open the data modeler
2) without closing the datamodeler, go to the project explorer and create a new package "xxx".
3) go back to the data modeler and create a new data object, the package "xxx" is not available for selection.
The improvement was programmed in the following commits.
Code Refactoring in guvnor project:
push master URL: http://github.com/droolsjbpm/guvnor/commit/ad4c7dd3a
push 6.0.x URL: http://github.com/droolsjbpm/guvnor/commit/4386d5505
Commits for the improvement:
push master URL: http://github.com/droolsjbpm/kie-wb-common/commit/7d58d957a
push 6.0.x URL: http://github.com/droolsjbpm/kie-wb-common/commit/1812f0447
Taking into account that the provided fix covers the most widely used scenarios: now the user can create packages, open the modeler and select them. And also when the user is modeling he can create new packages during modeling time, it's as easy as create new data object and provide the desired package name.
I think we can close this report with the work done.
Fixed in ER4.