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
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: following StringUtils.isEmpty(CharSequence) semantics
- Collection: if the collection has no elements
- Json Array: 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 AbstractFlowableVariableExpressionFunction
functionName, functionNamesOptions, method, variableScopeName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEmpty(VariableContainer variableContainer, String variableName) Methods inherited from class AbstractFlowableVariableExpressionFunction
createFunction, createVariableNameNode, findMethod, functionMethod, getFunctionNames, getVariableValue, localName, localNames, prefix, prefixes, valuesAreNumbersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FlowableFunctionDelegate
functionMethod
-
Constructor Details
-
VariableIsEmptyExpressionFunction
public VariableIsEmptyExpressionFunction()
-
-
Method Details
-
isEmpty
-