Package org.drools.core.util
Class KieFunctions
- java.lang.Object
-
- org.drools.core.util.KieFunctions
-
public class KieFunctions extends Object
This class contains a set of utility functions that were created with the aim to be used in the context of a process's action scripts and conditions scripts. To make the life of the script programmer easier. This class will be automatically imported by the platform when process script related classes are generated. So the user don't have to take care of import this class. An example of use of this class in a process condition script can be something like this. return KieFunctions.isTrue(approved) && !KieFunctions.equals(invoiceType, "external") && KieFunctions.greaterThan(amount, "15000");
-
-
Constructor Summary
Constructors Constructor Description KieFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
between(Number number, String minValue, String maxValue)
static boolean
contains(String string, String value)
static boolean
endsWith(String string, String value)
static boolean
equalsTo(Number number, String value)
static boolean
equalsTo(String string, String value)
static boolean
greaterOrEqualThan(Number number, String value)
static boolean
greaterThan(Number number, String value)
static boolean
isEmpty(String string)
static boolean
isFalse(Boolean value)
static boolean
isNull(Object object)
static boolean
isTrue(Boolean value)
static boolean
lessOrEqualThan(Number number, String value)
static boolean
lessThan(Number number, String value)
static boolean
startsWith(String string, String value)
-