-
Enhancement
-
Resolution: Done
-
Major
-
7.7.1.GA
-
False
-
False
-
Release Notes
-
-
-
-
-
-
CR1
-
-
-
Undefined
-
-
2020 Week 40-42 (from Sep 28)
An instance of an AgendaFilter can only be used when the KieSession.fireAllRules method is being invoked.
But when a ruleflow (i.e. a business process) is being used in a Drools/RHDM context (i.e. with only Rule Tasks), there is currently no way to set an instance of an AgendaFilter because there is not KieSession.startProcess(String, AgendaFilter) method.
Currently, when the KieSession.startProcess(String) is invoked, it internally calls the RuleSetNodeInstance.internalTrigger method which then calls StatefulKnowledgeSessionImpl.fireAllRules(int fireLimit). So obviously, it calls the method that doesn't use an AgendaFilter, and there is no way to make this happen.
So, we should also be able to provide an AgendaFilter when using a process.
Note that this new method (i.e. KieSession.startProcess(String, AgendaFilter)) to be added should also be supported on the KieServer and not only in the Java API.