Bug 1294069 - Numeric comparison expressions in BP's not working
Numeric comparison expressions in BP's not working
Status: NEW
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: jBPM Core (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Maciej Swiderski
Radovan Synek
Depends On:
  Show dependency treegraph
Reported: 2015-12-24 07:00 EST by Jeremy Lindop
Modified: 2016-01-08 17:02 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
RuntimeErrorLog (22.20 KB, text/plain)
2015-12-24 07:00 EST, Jeremy Lindop
no flags Details
BP example (15.42 KB, application/xml)
2015-12-24 07:03 EST, Jeremy Lindop
no flags Details

  None (edit)
Description Jeremy Lindop 2015-12-24 07:00:07 EST
Created attachment 1109196 [details]

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 07:03 EST
Created attachment 1109197 [details]
BP example

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