A logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions and on the meaning of the operator.
November 27, 2021 | Dataweave, Mule 4, Mulesoft | No comments
We can create a global variable in the header using var directive. We need to give it a name and we can assign either a constant value or a lambda expression. Global variables can be referenced by their name from anywhere in the body of the DataWeave script.
November 27, 2021 | Dataweave, Mule 4, Mulesoft | No comments
Variables are a way to store values with a given name so they can be later reused from different parts of your code, making the code cleaner and sometimes even more performant as values are calculated once.
November 27, 2021 | Dataweave, Mule 4, Mulesoft | No comments
An exception occurs when an unexpected event happens while processing. Exception (or error) handling is the process of responding to exceptions when a computer program runs.
November 23, 2021 | Dataweave, Mule 4, Mulesoft | No comments
The Scatter-Gather component is a routing event processor that processes a Mule event through different parallel processing routes that contain different event processors.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments
The following example uses userName.^myCustomMetadata to return the value of custom metadata that is defined as a variable (named userName) in the header of the script as a DataWeave script.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments
The following example uses the Set Payload component (set-payload) to produce a binary value, then uses the Transform Message component (ee:transform) component to return raw data for the MD5 (MD5(payload.^raw)) of the binary value.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments
In the following Mule app flow, the Loggers use payload.^mimeType to select a string “my string”, then to select a string that is set within an fx expression (#[“my string as String type” as String]) in the Set Payload (set-payload) component.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments
Returns the MIME type of a value that includes parameters (for example, application/json;charset=UTF-16). The expression in the value of { “myMediaType” : payload.^mediaType } might return “myMediaType”: “/; charset=UTF-8” for an input POJO.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments
In the following Mule app flow, the Logger uses payload.^encoding to select the encoding of “my string”`set in the Set Payload (`set-payload) component.
November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments