Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:36:44+00:00 2026-06-17T05:36:44+00:00

The drools decision table documentation ( link ) states that it is possible to

  • 0

The drools decision table documentation (link) states that it is possible to select the first matching row in a decision table:

As each row is a rule, the same principles apply. As the rule engine processes the facts, any rules that match may fire. (Some people are confused by this. It is possible to clear the agenda when a rule fires and simulate a very simple decision table where only the first match effects an action.)

How is this done? I have set Sequential=true, but I’m not sure what else needs to be done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:36:45+00:00Added an answer on June 17, 2026 at 5:36 am

    Drools provides a way to solve this problem (selecting only first matching row) by defining an activation groups in decision table rule set.

    Your workaround, maxrules=1, might work only if you want to use drools decision table as lookup table. In this scenario since only one rule can be fired, using drools has no advantage over using a classical database lookup table, it just adds complexity.

    If you have decided to use drools, or a rule engine in general, you should move your “rules” or “decisions” into the rule definitions to benefit most from its advantages (RETE engine, flexibility, seperation of rules from application code, etc.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Drools Planner used this to select two distinct objects, ensuring that a rule did
I'm currently investigating designing a business solution that uses the drools decision table spreadsheet
We are using: • Drools Execution Server that came with Drools 5.0.x • Drools
I'm using Drools (for the first time) to express some rules and it has
I have a project that builds on a framework that uses drools. The model
I have a situation where for each product I have a different rule. Thus,
say I have the following drools rule in drl global java.lang.Boolean test; rule Initialize
Do you know of a good business rule engine for .Net? I know Drools.Net
I have following Drools rule to which I send map filled with element ,
I'm trying to use Drools as the rule engine for a grammar relations to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.