In a rule condition the choice of comparators depend on the return type of the LHS value of the condition.
The table below lists the comparators for all possible return types.
Return Type |
Comparator Choices |
---|---|
char |
Equals Not Equals In Not In |
boolean |
Equals Not Equals |
string |
Equals Not Equals Greater Than Greater Than Equals Less Than Less Than Equals In Not In Like Not Like |
All primitive Java types except boolean and char |
Equals Not Equals Greater Than Greater Than Equals Less Than Less Than Equals In Not In |
Date (both java.util.Date and java.sql.Date) |
Equals Not Equals Greater Than Greater Than Equals Less Than Less Than Equals In Not In |
Non-primitive |
Equals Not Equals In Not In |