Mario Fusco created DROOLS-3499:
-----------------------------------
Summary: Allow both prefixed and infixed AND in nested accumulates
Key: DROOLS-3499
URL:
https://issues.jboss.org/browse/DROOLS-3499
Project: Drools
Issue Type: Feature Request
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
At the moment drools can compile composite condition in a nested accumulate only using a
prefixed 'and' like in
{code}
String($l: length)
accumulate(
(and
Integer(this == $l)
accumulate(
Long()
;$counter: count(1);$counter <= 4)
)
;$mainCounter: count(1);$mCounter <= 2
)
{code}
while it fails when using the infixed notation like in:
{code}
String($l: length)
accumulate(
(
Integer(this == $l) and
accumulate(
Long()
;$counter: count(1);$counter <= 4)
)
;$mainCounter: count(1);$mCounter <= 2
)
{code}
It is required that this could work also with the infix AND also because this is notation
used by the DRLDumper when regenerating the drl from a PackageDescr
--
This message was sent by Atlassian Jira
(v7.12.1#712002)