You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "baldimir (via GitHub)" <gi...@apache.org> on 2024/02/23 11:51:53 UTC
[I] Negated value in accumulate function ends with Invalid expression error [incubator-kie-issues]
baldimir opened a new issue, #969:
URL: https://github.com/apache/incubator-kie-issues/issues/969
When negating a value in a DRL rule, in an accumulate function, like this:
```
accumulate ($p: Person (getName().startsWith("M"));
$sum : sum(-$p.getAge()))
```
The build of the executable model ends with error:
`Invalid expression -$p.getAge()`
Test case that could be added to org.drools.model.codegen.execmodel.AccumulateTest class:
https://gist.github.com/baldimir/dd594f0b6e789a61284e134b7ee8f529
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Negated value in accumulate function ends with Invalid expression error [incubator-kie-issues]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer closed issue #969: Negated value in accumulate function ends with Invalid expression error
URL: https://github.com/apache/incubator-kie-issues/issues/969
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org