[
https://issues.jboss.org/browse/DROOLS-4457?page=com.atlassian.jira.plugi...
]
Toni Rikkola updated DROOLS-4457:
---------------------------------
Description:
If you have fact types:
* org.Person
* org.test.Person
It will not be possible to use these in the same rule package even if they are used in
different guided assets. This is since the package imports both and the compiler does not
know what is the one that is referenced in the generated DRL code.
The fix requires:
* to update the exiting fact type selectors so that they show what the package of the fact
that is used is.
* to use the FQCN in the DRL source.
was:
If the guided decision table imports more data objects with the same name, but located in
different packages, user is unable to differentiate them during column definition, there
will be just one data object. For more details see the
[
comment|https://github.com/kiegroup/drools-wb/pull/1220#pullrequestreview...]
h2. Reproducer test
https://github.com/kiegroup/drools-wb/pull/1221
Can not use classes with same name from different packages in the
same rule package
-----------------------------------------------------------------------------------
Key: DROOLS-4457
URL:
https://issues.jboss.org/browse/DROOLS-4457
Project: Drools
Issue Type: Bug
Components: Guided Decision Table Editor
Affects Versions: 7.26.0.Final
Reporter: Jozef Marko
Assignee: Toni Rikkola
Priority: Major
Labels: drools-tools
If you have fact types:
* org.Person
* org.test.Person
It will not be possible to use these in the same rule package even if they are used in
different guided assets. This is since the package imports both and the compiler does not
know what is the one that is referenced in the generated DRL code.
The fix requires:
* to update the exiting fact type selectors so that they show what the package of the
fact that is used is.
* to use the FQCN in the DRL source.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)