Tag: ReadingData
-
DataweaveReading Data
reading data is just as important, and the features available to do so are just as robust.
November 21, 2021
-
DataweaveSingle-Value Selector
The single-value selector (.) allows you to lookup Object values by their key.
November 21, 2021
-
DataweaveMulti-Value Selector (.*)
The multi-value selector (.*) returns an Array containing any value that matches the key. The values returned are dependent on…
November 21, 2021
-
DataweaveDescendants Selector (..)
The descendants selector (..) is the perfect tool to use when you need the values for a certain key no…
November 21, 2021
-
DataweaveKey-Value Pair Selector (.&myKey)
The & selector acts on arrays and objects. & retrieves both the keys and values of all matching keys pairs…
November 21, 2021
-
DataweaveIndex Selector ([])
The index selector returns the element at the specified position. It can be applied over an array, object, or string.
November 21, 2021
-
DataweaveRange selector (anIndex to anotherIndex)
If you need multiple sequential values from an Array, DataWeave allows you to select a range of values with the…
November 21, 2021
-
DataweaveXML Attribute Selector (.@myKey)
Using .@ without the key name returns an object containing the attributes as key-value pairs.
November 21, 2021
-
DataweaveNamespace Selector (#)
# returns the XML namespace of a selected key as plain text.
November 21, 2021
-
DataweaveSelector Modifiers (!, ?)
You can check for the presence of a given key. ! evaluates the selection and fails with an exception message…
November 21, 2021
-
DataweaveMetadata Selector (.^someMetadata)
Returns the value of specified metadata for a Mule payload, variable, or attribute.
November 21, 2021
-
DataweaveContent Length Metadata Selector (.^contentLength)
In the following Mule app flow, the Logger uses payload.^contentLength to select the length of the string my string, set…
November 21, 2021