]
Mario Fusco updated DROOLS-5324:
--------------------------------
Sprint: 2020 Week 22-24 (from May 25)
Refactor "if" driven compilation for dmn/pmml
---------------------------------------------
Key: DROOLS-5324
URL:
https://issues.redhat.com/browse/DROOLS-5324
Project: Drools
Issue Type: Task
Reporter: Gabriele Cardosi
Assignee: Mario Fusco
Priority: Major
Inside
{code:java}
CanonicalKieModule.createKieBase( KieBaseModelImpl, KieProject, ResultsImpl,
KieBaseConfiguration)
{code}
there is a call to
{code:java}
CanonicalKieModule.hasNonModelResources( KieBaseModelImpl, KieProject )
{code}
This method returns `true` if there are some dmn and/or pmml files in the project.
If such boolean is `true` a new KnowledgePackagesBuildResult is created.
The main issues with this approach are:
1) managing of dmn/pmml resources is completely hidden inside this boolean method and
hard to find in debug
2) it is possible that the new KnowledgePackagesBuildResult build will fire a compilation
also of "drl" or other resources that are "compiled" anyway even
without this flag