Red Hat Bugzilla – Bug 1294069
Numeric comparison expressions in BP's not working
Last modified: 2016-01-08 17:02:14 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
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
Created attachment 1109197 [details]