Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drools executable-model fails with a bind variable to a calculation result of int and BigDecimal #775

Closed
tkobayas opened this issue Dec 15, 2023 · 1 comment
Assignees
Labels
area:engine Related to the runtime engines area:rules Related to Rules (DRL, DROOLS) type:bug Something is behaving unexpectedly

Comments

@tkobayas
Copy link

Issue Description:
Rule like this

    when
        $fact : Fact( $value : (100000 * rate / 100) )

fails with

generateModel failed: [com/example/reproducer/PD5/LambdaExtractorD5715D1A25E76BFE57B274B9C0E75A0E.java (21:756) : The operator * is undefined for the argument type(s) int, BigDecimal

Acceptance Criteria:

  • Add test cases
  • Coerce, calculate and bind the result value
@tkobayas tkobayas changed the title drools executable-model fails with a bind variable to a caclulation result of int and BigDecimal drools executable-model fails with a bind variable to a calculation result of int and BigDecimal Dec 15, 2023
@tkobayas tkobayas self-assigned this Dec 15, 2023
@tkobayas tkobayas added type:bug Something is behaving unexpectedly area:engine Related to the runtime engines area:rules Related to Rules (DRL, DROOLS) labels Dec 15, 2023
@tkobayas tkobayas moved this from 📋 Backlog to ⏳ In Progress in 🦉 KIE Podling Board Jan 9, 2024
@tkobayas
Copy link
Author

Fixed by apache/incubator-kie-drools#5636

@github-project-automation github-project-automation bot moved this from ⏳ In Progress to 🎯 Done in 🦉 KIE Podling Board Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:engine Related to the runtime engines area:rules Related to Rules (DRL, DROOLS) type:bug Something is behaving unexpectedly
Projects
Archived in project
Development

No branches or pull requests

1 participant