Knowledge Agent does not handle multiple packages in Builder output
from single resource
----------------------------------------------------------------------------------------
Key: JBRULES-3143
URL:
https://issues.jboss.org/browse/JBRULES-3143
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.2.0.Final
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
Priority: Blocker
Fix For: 5.2.1.Final, 5.3.0.Beta1
Note: see also
https://issues.jboss.org/browse/JBRULES-2940
KnowledgeAgent with a ChecngeSet containing a single DRL:
package x
import y.Type
declare Type
@role(event)
end
//...rules etc.
If this is passed to the builder, it'll return two KnowledgePackageImpl objects, one
with name 'x' and another one with name 'y'. But the KA only takes the
first package from the Collection of packages returned by the builder.
=!=> KA must process all packages from the builder.
=!=> Incremental kBase building requires diff-ing between old/new packages. This,
then, must take into account that contribution to one package can come from several
resource builds.
=!=> The idea that the kBuilder should return packages with different names from a
single DRL build is probably wrong. If a Drools package foo contains an import bar.Type,
then this is still an asset in package foo and needs to be handled as a type reference in
foo. Any annotation additions must be carried by that asset foo. (The *Java* package of
the imported bar.Type remains of course bar.)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: