Description of problem: When conditional element 'not' is used with length sliding window and two parts separated by operator 'and' are inside 'not', test fails with IndexOutOfBoundsException. Version-Release number of selected component (if applicable): Drools 6.0.0-SNAPSHOT Drools 6.0.0.ER3 How reproducible: Pull request #257 submited in Drools. Steps to Reproduce: 1. Make a drl file with one rule, which contains conditional element 'not' after 'when'. Two parts separated by operator 'and' should be inside 'not' and first part should contains length sliding window. 2. Write a simple test with one kieSession. 3. Run test. Actual results: IndexOutOfBoundsException is thrown. Expected results: Test should pass. Additional info:
This is now fixed and cherry-picked to 6.0.x
Verified on BRMS 6.0.0.ER5.