Class DataFunctionUtils

java.lang.Object
com.flowable.platform.common.el.data.DataFunctionUtils

public class DataFunctionUtils extends Object
Utility methods for JSON object manipulation, used by the flw.data EL resolver.
Author:
Tijs Rademakers
  • Constructor Details

    • DataFunctionUtils

      public DataFunctionUtils()
  • Method Details

    • hasProperty

      public static boolean hasProperty(Object jsonObj, String propertyPath)
    • compact

      public static Object compact(Object jsonObj, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • pick

      public static Object pick(Object jsonObj, List<String> propertyNames, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • keys

      public static List<String> keys(Object jsonObj)
    • removeProperty

      public static Object removeProperty(Object jsonObj, String propertyName, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • removePropertyWithValue

      public static Object removePropertyWithValue(Object jsonObj, Object valueToRemove, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • addProperty

      public static Object addProperty(Object jsonObj, String propertyName, Object value, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • merge

      public static Object merge(Object target, Object source, org.flowable.common.engine.impl.json.VariableJsonMapper mapper)
    • putValue

      protected static void putValue(org.flowable.common.engine.impl.json.FlowableObjectNode node, String propertyName, Object value)
    • jsonValueEquals

      protected static boolean jsonValueEquals(org.flowable.common.engine.impl.json.FlowableJsonNode jsonValue, Object compareValue)
    • asObjectNode

      protected static org.flowable.common.engine.impl.json.FlowableObjectNode asObjectNode(Object value)