[
https://issues.redhat.com/browse/DROOLS-6030?page=com.atlassian.jira.plug...
]
Gabriele Cardosi commented on DROOLS-6030:
------------------------------------------
[~mfusco]
Following our conversation, there are two possible alternatives
1) consider creation of "clean" kiebases at origin -i.e. modify maven
plugin/kogito codegen to automatically generate a kmodule.xml to have all models already
splitted in different kiebases, witout asking the user to manually write one
2) consider create a "KieBase.of" "native" method, inside KieBase
itself, to return a subset of the original KieBase,
Evaluate "KieBase.addPackage" replacement effort from PMML
----------------------------------------------------------
Key: DROOLS-6030
URL:
https://issues.redhat.com/browse/DROOLS-6030
Project: Drools
Issue Type: Task
Reporter: Gabriele Cardosi
Assignee: Gabriele Cardosi
Priority: Major
Currently, the method KieBase.addPackage(s) is used inside PMML in two classes
1) PMMLLoaderService.loadPMMLRuleMappers
2) PMMLRuntimeFactoryInternal.getPMMLRuntime(String, String, KieBase)
3) PMMLRuntimeFactoryInternal.createKieBase(KnowledgeBuilderImpl)
In all those cases the needs is to create a "clean" kiebase that contains only
the model-specific packages, to avoid name/session clashing.
Scope of the current ticket is to evaluate an alternative, since the method itself is
going to be deprecated.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)