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

wrong behaviour in InsertElementsCommand

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.0.CR1
    • 5.4.0.Final
    • drools-core (expert)
    • None

      Whether or not an "entryPoint" is specified, the objects are added to the base ksession element.

      I think the error is in a single point of the code of org.drools.command.runtime.rule.InsertElementsCommand, in the method execute()

      As for now, the code looks like:

      for ( Object object : objects ) {
      handles.add( ksession.insert( object ) );
      }

      Simply replace "ksession" with "wmep", to have it look like:

      for ( Object object : objects ) {
      handles.add( wmep.insert( object ) );
      }

      Sorry that i can't send you a pull request

              mfusco@redhat.com Mario Fusco
              mcerina_jira Matteo Cerina (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Resolved:
                Archived: