DataWeave 2.0

Flow Control

Flow control is used when you want to execute certain parts of your code in some situations, while not executing…

3 years ago

Logical Operators

A logical operator is a symbol or word used to connect two or more expressions such that the value of…

3 years ago

Global & 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…

3 years ago

Variables 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…

3 years ago

Custom Metadata Selector (.^myCustomMetadata)

The following example uses userName.^myCustomMetadata to return the value of custom metadata that is defined as a variable (named userName)…

3 years ago

Raw Metadata Selector (.^raw)

The following example uses the Set Payload component (set-payload) to produce a binary value, then uses the Transform Message component…

3 years ago

MIME Type Metadata Selector (.^mimeType)

In the following Mule app flow, the Loggers use payload.^mimeType to select a string "my string", then to select a…

3 years ago

Media Type Metadata Selector (.^mediaType)

Returns the MIME type of a value that includes parameters (for example, application/json;charset=UTF-16). The expression in the value of {…

3 years ago

Encoding Metadata Selector (.^encoding)

In the following Mule app flow, the Logger uses payload.^encoding to select the encoding of "my string"`set in the Set…

3 years ago

Class Metadata Selector (.^class)

Returns the class of the Plain Old Java Object (POJO). The value might result from calling a method in a…

3 years ago