Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2558

Drools keeps only the last logical insertion in each rules consequence

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.1.0.CR1
    • 5.1.0.M2
    • drools-core
    • None

    Description

      If a rule contains more than on logical insertion, Drools will only keep the last one, cancelling any previously logically inserted facts. Example:

      package com.sample

      declare Some
      field : int
      end

      rule "Init"
      salience 9999
      dialect "mvel"
      when
      eval( true );
      then
      with( s0 = new Some() )

      { field = 0 }

      insertLogical(s0);
      with( s1 = new Some() )

      { field = 1 }

      insertLogical(s1);
      end

      In the above case, drools will only keep s1, but not s0.

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            etirelli@redhat.com Edson Tirelli
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty