]
Michael Biarnes Kiefer updated DROOLS-607:
------------------------------------------
Fix Version/s: 7.0.0.Beta2
(was: 7.0.0.Beta1)
Match.getObjects() should reflect the patterns' order
-----------------------------------------------------
Key: DROOLS-607
URL:
https://issues.jboss.org/browse/DROOLS-607
Project: Drools
Issue Type: Enhancement
Affects Versions: 5.5.0.Final, 5.6.0.Final, 6.0.0.Final, 6.1.0.Final
Reporter: Davide Sottara
Assignee: Mark Proctor
Priority: Minor
Fix For: 7.0.0.Beta2
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 ]