Class VariableContainsAnyExpressionFunction
- java.lang.Object
-
- org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
-
- org.flowable.common.engine.impl.el.function.VariableContainsAnyExpressionFunction
-
- All Implemented Interfaces:
FlowableFunctionDelegate,FlowableAstFunctionCreator
public class VariableContainsAnyExpressionFunction extends AbstractFlowableVariableExpressionFunction
Checks if the value of a variable (fetched using the variableName through the variable scope) contains any of the provided values. Depending on the variable type, this means the following: -String: followingStringUtils.contains(CharSequence, CharSequence)semantics for one of the passed values -Collection: following theCollection.contains(Object)for one of the passed values -ArrayNode: supports checking if the arraynode contains a JsonNode for the types that are supported as variable type When the variable value is null, false 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 VariableContainsAnyExpressionFunction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsAny(VariableContainer variableContainer, String variableName, Object... values)-
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
-
containsAny
public static boolean containsAny(VariableContainer variableContainer, String variableName, Object... values)
-
-