apache / incubator-kie-drools

Drools is a rule engine, DMN engine and complex event processing (CEP) engine for Java.
http://www.drools.org
Apache License 2.0
5.88k stars 2.5k forks source link

[new-parser] unification in accumulate #5906

Closed tkobayas closed 6 months ago

tkobayas commented 6 months ago

Parent issue

Failing tests

Rule code snippet

query getResults( String $name, List $persons )
  accumulate(  
    $p : Person( name == $name),
    $persons := collectList( $p )
  ) 
end

Error output

16:33:04.704 [main] ERROR o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build KieBaseModel:KieBaseModelName
Unable to resolve ObjectType 'accumulate' : [Query name='getResults']
tkobayas commented 6 months ago

/take

tkobayas commented 6 months ago

Fixed by https://github.com/apache/incubator-kie-drools/pull/5907