apache / incubator-kie-drools

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

[new-parser] unification in accumulate #5906

Closed tkobayas closed 4 months ago

tkobayas commented 4 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 4 months ago

/take

tkobayas commented 4 months ago

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