Bug 1294069 - Numeric comparison expressions in BP's not working
Summary: Numeric comparison expressions in BP's not working
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alessandro Lazarotti
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-24 12:00 UTC by Jeremy Lindop
Modified: 2020-03-27 20:06 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:06:06 UTC
Type: Bug
Embargoed:


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

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


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