Update ApplyPmmlModelCommand to manage both PMML implementations
-----------------------------------------------------------------
Key: DROOLS-5867
URL:
https://issues.redhat.com/browse/DROOLS-5867
Project: Drools
Issue Type: Task
Reporter: Gabriele Cardosi
Assignee: Gabriele Cardosi
Priority: Major
Labels: TrustyAI
Currently, ApplyPmmlModelCommand (inside drools) invoke directly the legacy PMML delegate
(ApplyPmmlModelCommandExecutorImpl).
# move Command newApplyPmmlModel(PMMLRequestData request); from ExtendedKieCommands to
KieCommands
# define PMMLCommandExecutor interface inside kie-internal (droolsjbpm-knowledge)
# define PMMLCommandExecutorFactory interface inside kie-internal (droolsjbpm-knowledge)
# write PMMLCommandExecutor implementation (inside kie-pmml-trusty )
# write PMMLCommandExecutorFactory implementation (inside kie-pmml-trusty )
# write kie.konf in the same module as PMMLCommandExecutorFactory implementation to bind
the implementation to the interface
# create a static method "isToEnable()" to be used by PMMLAssemblerService(s)
and ApplyPmmlModelCommand to retrieve which implementation is to be enabled - it will
replace the ones in PMMLAssemblerService(s) (inside kie-api)
# modify ApplyPmmlModelCommand to switch between factories/implementations (using the
above method to choose the implementation to enable)