Class VariableIsEmptyExpressionFunction
- java.lang.Object
-
- org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
-
- org.flowable.common.engine.impl.el.function.VariableIsEmptyExpressionFunction
-
- All Implemented Interfaces:
FlowableFunctionDelegate,FlowableAstFunctionCreator
public class VariableIsEmptyExpressionFunction extends AbstractFlowableVariableExpressionFunction
Checks if the value of a variable (fetched using the variableName through the variable scope) is empty. Depending on the variable type, this means the following: -String: followingStringUtils.isEmpty(CharSequence)semantics -Collection: if the collection has no elements -ArrayNode: if the json array has no elements. When the variable value is null, true is returned in all cases. When the variable value is not null, and the instance type is not one of the cases above, false will be returned.- Author:
- Joram Barrez
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
functionName, functionNamesOptions, method, variableScopeName
-
-
Constructor Summary
Constructors Constructor Description VariableIsEmptyExpressionFunction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(VariableContainer variableContainer, String variableName)-
Methods inherited from class org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
createFunction, createVariableNameNode, findMethod, functionMethod, getFunctionNames, getVariableValue, localName, localNames, prefix, prefixes, valuesAreNumbers
-
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(VariableContainer variableContainer, String variableName)
-
-