DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Security Is a Platform Property, Not a Pipeline Step
  • An XGBoost Property Valuation Postmortem: Leakage, Overfitting, and SHAP Surprises
  • Comprehensive Guide to Property-Based Testing in Go: Principles and Implementation
  • Implement Hibernate Second-Level Cache With NCache

Trending

  • Managing Technical Debt in AI-Generated Code
  • Getting Started With Weaviate: Building AI-Powered Search Applications With Java
  • Getting Started With Qdrant: Building Intelligent Search Applications With Java
  • Ingesting Public Data That Fails Silently: Patterns From a TypeScript and Cloudflare Workers Pipeline

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

Mule Runtime 4.4 Features

Mule runtime engine 4.4 provides important enhancements and fixes. Read this article to learn how to benefit from all the improvements in this version.

By 
Nitin Gupta
·
Oct. 06, 21 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
15.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Mule runtime engine 4.4 provides important enhancements and fixes. Deploy all your new and existing applications to Mule 4.4 to benefit from all the improvements in this version.

Correlation ID Management

Mule 4.4 enables you to modify the correlation ID associated with a Mule event. You can also change the algorithm Mule uses to generate each correlation ID.

Improved Logging Capabilities

Mule 4.4 incorporates Mapped Diagnostic Context (MDC), which enriches logging and improves tracking by providing more context or information in the logs for Mule events.

By using the Mule Tracing module, you can add, remove, and clear variables from the logging context for a given Mule event.

DataWeave Updates

The 2.4 version of DataWeave introduces the following features:

  • Ability to read larger-than-memory strings automatically: When you are using the indexed reader strategy and processing a String with a size larger than 1.5 MB, DataWeave automatically splits the value in chunks to avoid out-of-memory issues. Related reader properties are com.mulesoft.dw.max_memory_allocation and com.mulesoft.dw.buffered_char_sequence.enabled. Refer to Indexed Readers in DataWeave.
  • New reader and writer properties for working with data formats: For example, the XML writer now enables you to define namespaces at the root level.

  • Many new modules, functions, types, annotations, and variables: Some are experimental and subject to change in future releases.

  • A number of functions are overloaded to introduce new helper functions for handling null values.

Changes to the documentation include: more detailed function signatures, and organization of the functions by their module names, such as dw::Core, dw::core::Strings, and dw::util::Math.

New Properties for Data Formats

DataWeave introduces the following reader and writer properties:

  • DataWeave (dw) reader property: privileges enable you to provide a comma-separated list of privileges to use in the format, such as Resources,Properties

  • Excel (XLSX) reader property: tableLimit enables you to set the position of the last column in each row.

  • YAML writer property: writeDeclaration enables you to write the header declaration.

  • XML writer properties: defaultNamespace specifies the default namespaces of the output XML, and writeDeclaredNamespaces marks the namespaces to declare in the root element of the XML.

New DataWeave Function Modules and Features

New DataWeave modules and features:

  • dw::Core introduces new functions and annotations:

    • indexOf

    • lastIndexOf

    • onNull

    • then

    • Core Annotations introduce a number of new annotations.

  • dw::core::Dates is a new module with functions and types to create and manipulate Date types; for example, the function today.

  • dw::core::Strings introduces new functions:

    • collapse

    • countCharactersBy

    • countMatches

    • everyCharacter

    • first

    • hammingDistance

    • last

    • levenshteinDistance

    • lines

    • mapString

    • remove

    • replaceAll

    • reverse

    • someCharacter

    • substring

    • substringBy

    • substringEvery

    • words

  • dw::util::Coercions is a new DataWeave module with functions and types to simplify data type transformations, for example, the function toString.

  • dw::util::Math is a new DataWeave module with functions and variables that provides mathematical functions; for example, the function sin.

  • dw::util::Periods is a new DataWeave module with functions and types to simplify the creation of Periods; for example, the function days.

  • dw::util::Tree introduces new functions:

    • filterArrayLeafs

    • filterObjectLeafs

    • filterTree

    • isArrayType

    • isAttributeType

    • isObjectType

  • dw::util::Values provides a new type UpdaterValueProvider.

Core Components

Mule 4.4 introduces the Mule Tracing Module (available in Studio 7.11), which enables correlation ID management capabilities, as well as improved logging options.

Feature Flags

Mule 4.4 incorporates a feature flagging mechanism, which enables you to control the enablement of certain Mule features that affect backward compatibility.

Property (programming)

Opinions expressed by DZone contributors are their own.

Related

  • Security Is a Platform Property, Not a Pipeline Step
  • An XGBoost Property Valuation Postmortem: Leakage, Overfitting, and SHAP Surprises
  • Comprehensive Guide to Property-Based Testing in Go: Principles and Implementation
  • Implement Hibernate Second-Level Cache With NCache

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook