Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A set of useful and frequently used functions that are available in JsonNode, are exposed from the JsonNodeObject to make it easier to use JSON variables. However, if other functionality that is available is required, those functions can be unwrapped and used using the org.wso2.carbon.bpmn.core.types.datatypes.json.api.JsonNodeObject.unwrap() function. These functions are: 

Section
bordertrue
Column
width45%
  • JsonNode findValue(String fieldName)
  • JsonNode findPath(String fieldName)
  • JsonNode findParent(String fieldName)
  • List<JsonNode> findValues(String fieldName, List<JsonNode> foundSoFar)
  • List<String> findValuesAsText(String fieldName, List<String> foundSoFar)
  • List<JsonNode> findParents(String fieldName, List<JsonNode> foundSoFar)
Column
width27%
  • JsonNode path(String fieldName)
  • JsonNode path(int index)
  • String toString()
  • boolean equals(Object obj)
  • JsonNode get(int index)
  • JsonNode get(String fieldName)
Column
width27%
  • boolean has(String fieldName)
  • boolean has(int index)
  • int size()
  • Iterator<JsonNode> elements()
  • Iterator<String> fieldNames()
  • Iterator<Map.Entry<String, JsonNode>> fields()

XML

With XML support, users can create variables with the XML data type and extract or set XML content with the help of the simple JAVA API provided in WSO2 BPS. 

...