How to fire rules based on the ruleflow-group?

Solution Verified - Updated -

Issue

If using code below for firing rules:

   kSession.fireAllRules(new AgendaFilter()
            {
                public boolean accept(Match match)
                {
                    String rulename = match.getRule().getName();
                    System.out.println("RuleName" + rulename);

                    if(rulename.startsWith("CPRule"))  return true;

                    return false;
                }
            });

It is not possible to filter rules based on the ruleflow-group. The main requirement is to categorize rules based on the ruleflow-group and when required, fire set of the rules which belongs to the certain ruleflow-group. How to achieve this?

Environment

  • Red Hat JBoss BRMS
    • 5.x
    • 6.x
  • Red Hat JBoss BPM Suite
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content