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 booleanbetween(Number number, String minValue, String maxValue)static booleancontains(String string, String value)static booleanendsWith(String string, String value)static booleanequalsTo(Number number, String value)static booleanequalsTo(String string, String value)static booleangreaterOrEqualThan(Number number, String value)static booleangreaterThan(Number number, String value)static booleanisEmpty(String string)static booleanisFalse(Boolean value)static booleanisNull(Object object)static booleanisTrue(Boolean value)static booleanlessOrEqualThan(Number number, String value)static booleanlessThan(Number number, String value)static booleanstartsWith(String string, String value)
-