Have a look at eval().
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
On Behalf Of Hehl, Thomas
Sent: 18 August 2010 14:22
To: rules-users@lists.jboss.org
Subject: [rules-users] Adding two numbers
I have two properties on my class that I’d like to add together and compare results. I’m trying:
when
stub:PaymentStub(daysJuror + daysPanel > 0)
But this throws an error. Either daysJuror or daysPanel work, but adding them together doesn’t. Isn’t there a way to do this?
Thanks!
Thom Hehl
Java Applications Architect
Public Safety & Justice
Affiliated Computer Services, Inc.
A Xerox Company
1733 Harrodsburg Road
Lexington, KY 40504-3617
Tel 859.277.8800 x 144
Fax 859.277.2300