Bug 1294069

Summary: Numeric comparison expressions in BP's not working
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jeremy Lindop <jlindop>
Component: jBPM CoreAssignee: Alessandro Lazarotti <alazarot>
Status: CLOSED EOL QA Contact: Radovan Synek <rsynek>
Severity: unspecified Docs Contact:
Priority: unspecified    
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 20:06:06 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:
Embargoed:
Attachments:
Description Flags
RuntimeErrorLog
none
BP example none

Description Jeremy Lindop 2015-12-24 12:00:07 UTC
Created attachment 1109196 [details]
RuntimeErrorLog

Description of problem:
Note: this is a problem in current builds from master, not in the latest bpmn release 6.2.0.GA

In a BP:
If you define an expression on a path coming out of a gateway as a numeric comparison using the graphical (Editor tab) of the expression editor, such as f1 is less than 10, where f1 is an Float process variable, when the process is executed there's a runtime error (see attachment).

If the path is reached before any user tasks, when you start the process, a popup dialog error appears:
"Unexpected error encountered: [gateways.gway1:1 - :2] -- Exception when trying to evaluate constraint path1 in split"

The Expression editor creates an expression like this in the Script Tab:
return  KieFunctions.lessThan(f1, "10");

I couldn't get this expression to work, nor could I get simple java comparisons such as "f1 < 10" to work.

I think this is a runtime error, as my example works in bpms6.2.0.GA.

Version-Release number of selected component (if applicable):
Reproducible in current master build, but not in latest release bpms6.2.0.GA

How reproducible:


Steps to Reproduce:
1. Import the attached BP
2. Build & Deploy
3. Run an instance of the BP, with f1 set to 15, i1 set to 15 and s set to any string.
4. A popup error appears and an error is logged on the server

Actual results:


Expected results:


Additional info:

Comment 1 Jeremy Lindop 2015-12-24 12:03:54 UTC
Created attachment 1109197 [details]
BP example