Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2438

Drools template : Multiple rows from database map to multiple conditions within the when block of a a single rule

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • None
    • 7.6.0.Final
    • core engine
    • 5
    • NEW
    • NEW
    • rahul vanimisetty

    Description

      In a drool template, if i am loading rules from a database, then as per my understanding each row in the database table represents a rule. So a drool template will generate a drl file in the following way :

      rule 1
      when
      condition(first row of db)
      action
      rule 2
      condition(2cd row of db)
      then
      action
      etc.

      My requirement is to have a dynamic drl generated in the following way :

      rule 1
      when
      condition 1(1st row of db)
      condition 2 (2cd row of db)
      condition 3 (3rd row of db)
      etc
      then
      action
      end

      Please suggest a way to do this.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rahulfedex Rahul Vanimisetty (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: