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

Match.getObjects() should reflect the patterns' order

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Minor
    • None
    • 5.5.0.Final, 5.6.0.Final, 6.0.0.Final, 6.1.0.Final
    • None
    • None

    Description

      if Match.getObjects() is called on a rule with LHS A() B() C(),
      the resulting list will have the matching objects in reversed order

      • that is, [c, b, a] - making it more difficult to analyze it.
        The object's position in the list should reflect the LHS.

      The order should be preserved even when subnetworks are present.
      For example, A() not B() C() should then result in the list [a, *, c ]

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: