public class VariableContainsExpressionFunction extends AbstractFlowableVariableExpressionFunction
String: following StringUtils.contains(CharSequence, CharSequence) semantics for all passed values
- Collection: following the Collection.contains(Object) for all 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 variale value is not null, and the instance type is not one of the cases above, false will be returned.functionName, localName, method, pattern, prefix, replacePattern, variableScopeName| Constructor and Description |
|---|
VariableContainsExpressionFunction(String variableScopeName) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayNodeContains(com.fasterxml.jackson.databind.node.ArrayNode arrayNode,
Object value) |
static boolean |
collectionContains(Collection collection,
Object value) |
static boolean |
contains(VariableScope variableScope,
String variableName,
Object... values) |
getFinalFunctionPrefix, getFunctionPrefixOptions, getVariableValue, isMultiParameterFunction, prefix, valuesAreNumbersbuildOrWordGroup, enhance, findMethod, functionMethod, isNoParameterMethod, localNamepublic VariableContainsExpressionFunction(String variableScopeName)
public static boolean contains(VariableScope variableScope, String variableName, Object... values)
public static boolean collectionContains(Collection collection, Object value)
public static boolean arrayNodeContains(com.fasterxml.jackson.databind.node.ArrayNode arrayNode,
Object value)
Copyright © 2019 Flowable. All rights reserved.