Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
7.42.0.Final
-
None
-
2020 Week 34-36 (from Aug 17)
-
-
NEW
-
NEW
Description
The following valid accumulate clause:
Set(size>=1) from accumulate( $p1:Pattern1(...) and $p2:Pattern2(...) , collectSet($p1) )
is modified as follows when parsed and re-serialized with DRLParser/DRLDumper:
Set(size>=1) from accumulate( ($p1:Pattern1(...) and $p2:Pattern2(...)) , collectSet($p1) )
The latter syntax is rejected by the Drools compiler with the following error:
Error Messages: Message [id=1, kieBase=defaultKieBase, level=ERROR, path=org/example/rules.drl, line=14, column=0 text=Invalid accumulate pattern in rule 'round trips accumulate'.]