Class VariableGetOrDefaultExpressionFunction
- java.lang.Object
-
- org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
-
- org.flowable.common.engine.impl.el.function.VariableGetOrDefaultExpressionFunction
-
- All Implemented Interfaces:
FlowableFunctionDelegate,FlowableAstFunctionCreator
public class VariableGetOrDefaultExpressionFunction extends AbstractFlowableVariableExpressionFunction
Returns the value of a variable, or a default if the value is null. This avoids thePropertyNotFoundExceptionthat otherwise gets thrown when referencing a variable in JUEL.- 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 VariableGetOrDefaultExpressionFunction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetOrDefault(VariableContainer variableContainer, String variableName, Object value)-
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
-
getOrDefault
public static Object getOrDefault(VariableContainer variableContainer, String variableName, Object value)
-
-