Package org.drools.core.util
Class KieFunctions
java.lang.Object
org.drools.core.util.KieFunctions
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanequalsToIgnoreCase(String string, String value) static booleangreaterOrEqualThan(Number number, String value) static booleangreaterThan(Number number, String value) static booleanstatic booleanstatic booleanstatic booleanstatic booleanlessOrEqualThan(Number number, String value) static booleanstatic booleanstartsWith(String string, String value)
-
Constructor Details
-
KieFunctions
public KieFunctions()
-
-
Method Details
-
isNull
-
equalsTo
-
equalsTo
-
equalsToIgnoreCase
-
isEmpty
-
contains
-
startsWith
-
endsWith
-
greaterThan
-
greaterOrEqualThan
-
lessThan
-
lessOrEqualThan
-
between
-
isTrue
-
isFalse
-