Bug 1330634

Summary: Calculation in Drools incorrect
Product: [Retired] JBoss BPMS Platform 6 Reporter: Oscar Molina <omolinab>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:07:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Drools math test none

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: