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

Drools keeps only the last logical insertion in each rules consequence

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.1.0.M2
    • Fix Version/s: 5.1.0.CR1
    • Component/s: drools-core
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                tirelli Edson Tirelli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: