Download User Manual
Transcript
OpenRules® User Manual
OpenRules, Inc.
Comparing Dates
You may use the standard java.util.Date or any other Java Comparable
type. Here is an example of comparing Dates:
C1
op.compare(visit.date,date)
Operator op
Date date
Operator
Date
==
2/15/2007
!=
1/1/2007
<=
2/15/2007
>
2/15/2007
<
2/15/2007
Please note that the current implementation compares dates without time.
Another way to use operators directly inside a table is to use expressions. In the
example above, instead of having two sub-columns "Operator" and "Value" we
could use one column and put an expression inside the cell:
{ c.creditCardBalance <= 0; }
The use of expressions is very convenient when you do not know ahead of time
which operator will be required for which columns.
Comparing Boolean Values
If a parameter type is defined as "boolean", you are allowed to use the following
values inside rule cells:
-
True, TRUE, Yes, YES
False, FALSE, No, NO
You also may use formulas that produce a Boolean, .e.g.
{ loan.additionalIncomeValidationNeeded; }
69