Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1461

AgendaFilter not usable when rules are combined with a ruleflow and fired using KieSession.startProcess

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rbourner@redhat.com Richard Bourner
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: