]
Mark Proctor updated JBRULES-1998:
----------------------------------
Assignee: Michael Neale (was: Mark Proctor)
Classes with same name but difference packages cannot be used as
Facts in BRL definitions
-----------------------------------------------------------------------------------------
Key: JBRULES-1998
URL:
https://jira.jboss.org/jira/browse/JBRULES-1998
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-guvnor
Affects Versions: 5.0.0.M5
Reporter: Chris LeCompte
Assignee: Michael Neale
Guvnor (as well as Drools in general) allows for defining packages which import facts
from different java packages with the same name. In a technical rules file, this problem
can be resolved obviously by fully qualifying the names of the facts used in the rule(s).
In the business rule editor however the user is presented with two names in the facts drop
down and can only pull properties from the last type added in the imports. The editor
should have some capability to sort this out either by appending a package name where
collisions occur or by appending a (1), (2),..., (n) suffix to the names of the classes
and internally mapping the facts back to their respective classes. The error in the logs
when validating a resultant rule using the editor gives the error:
Unable to find unambiguously defined class...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: