coderz.py

Keep Coding Keep Cheering!

Creating Data

As you’d expect, the last two are actually composite types, their contents also have type definitions:

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

SCRIPT ANATOMY

Notice in the script that there are three lines, a line with three dashes, then one more line. The first three lines of the script contain directives. The first directive, which is in every DataWeave file, defines which version the script is using.

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

Text Java Properties Format

The Text Java Properties format parses any Java properties file. This format represents simple key-value pairs. DataWeave represents these pairs as an object with string values.

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

Text Plain Format

The simplest way to store information in computer memory is as a single file with a plain text format.

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

Multipart Format (Form Data)

DataWeave supports Multipart subtypes, in particular form-data. These formats enable you to handle several different data parts in a single payload, regardless of the format each part has to distinguish the beginning and end of a part, a boundary is used and metadata for each part can be added through headers.

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

YAML Format

YAML is a data serialization language that is often used for writing configuration files. Depending on whom you ask, YAML stands for yet another markup language or YAML ain’t markup language (a recursive acronym), which emphasizes that YAML is for data, not documents.

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

URL Encoded Format

URL encoding converts non-ASCII characters into a format that can be transmitted over the Internet. URL encoding replaces non-ASCII characters with a “%” followed by hexadecimal digits.

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

Newline Delimited json Format

NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time. It works well with unix-style text processing tools and shell pipelines. It’s a great format for log files.

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

XML Format

The Extensible Markup Language (XML) is a simple text-based format for representing structured information: documents, data, configuration, books, transactions, invoices, and much more.

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

Excel Format

When we format cells in Excel, we change the appearance of a number without changing the number itself. We can apply a number format (0.8, $0.80, 80%, etc) or other formatting (alignment, font, border, etc).

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

Advertisement