coderz.py

Keep Coding Keep Cheering!

do 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 | Dataweave, Mule 4, Mulesoft | No comments

else 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 | Dataweave, Mule 4, Mulesoft | No comments

if 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 true. Otherwise, it returns the expression under else. Every if expression must have a matching else expression.

November 27, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Flow Control

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

November 27, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Logical Operators

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

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

Error Handling in Mule 4

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

Scatter-Gather Router

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

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) in the header of the script as a DataWeave script.

November 21, 2021 | Dataweave, Mule 4, Mulesoft | No comments

Advertisement