Category: Dataweave
-
DataweaveRaw Metadata Selector (.^raw)
The following example uses the Set Payload component (set-payload) to produce a binary value, then uses the Transform Message component…
November 21, 2021
-
DataweaveCustom Metadata Selector (.^myCustomMetadata)
The following example uses userName.^myCustomMetadata to return the value of custom metadata that is defined as a variable (named userName)…
November 21, 2021
-
DataweaveScatter-Gather Router
The Scatter-Gather component is a routing event processor that processes a Mule event through different parallel processing routes that contain…
November 21, 2021
-
DataweaveError Handling in Mule 4
An exception occurs when an unexpected event happens while processing. Exception (or error) handling is the process of responding to…
November 23, 2021
-
DataweaveVariables in DataWeave 2.0 (Mule 4)
Variables are a way to store values with a given name so they can be later reused from different parts…
November 27, 2021
-
DataweaveGlobal & Local Variables In DataWeave 2.0
We can create a global variable in the header using var directive. We need to give it a name and…
November 27, 2021
-
DataweaveLogical Operators
A logical operator is a symbol or word used to connect two or more expressions such that the value of…
November 27, 2021
-
DataweaveFlow Control
Flow control is used when you want to execute certain parts of your code in some situations, while not executing…
November 27, 2021
-
Dataweaveif else Condition in Flow Control (DataWeave 2.0)
An if statement evaluates a conditional expression and returns the value under the if only if the conditional expression returns…
November 27, 2021
-
Dataweaveelse if Condition in flow (DataWeave 2.0)
You can chain several else expressions together within an if-else construct by incorporating else if.
November 27, 2021
-
Dataweavedo statement in flow control (DataWeave 2.0)
A do statement creates a scope in which new variables, functions, annotations, or namespaces can be declared and used.
November 27, 2021
-
DataweavePattern Matching with Literal Values
A match expression contains a list of case statements that can optionally have an else statement. Each case statement consists…
November 27, 2021