Bug 1330634 - Calculation in Drools incorrect
Summary: Calculation in Drools incorrect
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BRE
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-26 15:46 UTC by Oscar Molina
Modified: 2020-03-27 19:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:07:11 UTC
Type: Bug


Attachments (Terms of Use)
Drools math test (5.49 KB, application/zip)
2016-04-26 15:46 UTC, Oscar Molina
no flags Details

Description Oscar Molina 2016-04-26 15:46:51 UTC
Created attachment 1151000 [details]
Drools math test

Description of problem:

If you have a complex formula in the RHS of a rule, you need to add parentheses in order to get the correct result. Those parentheses should not be necessary to enforce operator precedence.

Version-Release number of selected component (if applicable):

BxMS 6.x.xx

How reproducible:

There is a reproducer to this BZ which demonstrates this issue. It is a sample rule to a small MVEL test case.

Steps to Reproduce:
1. Use the reproducer attached to this BZ.

Actual results:

The test 'testParenthesis1' fails.

Expected results:

The test 'testParenthesis1' should work.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.