Class VariableContainsExpressionFunction

java.lang.Object
org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction
org.flowable.common.engine.impl.el.function.VariableContainsExpressionFunction
All Implemented Interfaces:
FlowableFunctionDelegate, FlowableAstFunctionCreator

public class VariableContainsExpressionFunction extends AbstractFlowableVariableExpressionFunction
Checks if the value of a variable (fetched using the variableName through the variable scope) contains all of the provided values. Depending on the variable type, this means the following: - 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 variable value is not null, and the instance type is not one of the cases above, false will be returned.
Author:
Joram Barrez
  • Constructor Details

    • VariableContainsExpressionFunction

      public VariableContainsExpressionFunction()
  • Method Details

    • contains

      public static boolean contains(VariableContainer variableContainer, String variableName, Object... values)
    • collectionContains

      public static boolean collectionContains(Collection collection, Object value)
    • arrayNodeContains

      public static boolean arrayNodeContains(com.fasterxml.jackson.databind.node.ArrayNode arrayNode, Object value)