Newer Version Available

This content describes an older version of this product. View Latest

Limitations of DataWeave in Apex (Beta)

DataWeave in Apex has these limitations in Developer Preview.

This feature is a Beta Service. Customer may opt to try such Beta Service in its sole discretion. Any use of the Beta Service is subject to the applicable Beta Services Terms provided at Agreements and Terms. You can provide feedback and suggestions for the DataWeave in Apex feature in the Trailblazer Community. The beta release of DataWeave in Apex supports packaging of DataWeave scripts within a namespace. However, you can only access scripts within a package, not across different namespaces.

Note

  • The DataWeave Java bridge, that is, the ability to bind to static Java methods is disabled. See Introduction to Mule 4. Features that interact with the environment such as the readURL and envVar functions are also disabled. 
  • DataWeave is constrained to disallow the loading of additional libraries. Therefore, scripts must be self-contained.
  • DataWeave modules and importing other scripts aren’t supported. For example, import modules::MyMapping as per Using a Mapping File in a DataWeave Script isn’t supported.

    The feature supports built-in modules. See DataWeave Reference.

    Note

  • DataWeave in Apex doesn’t support these content types.
  • Apex classes must be at API version 53.0 or later to access DataWeave integration methods.
  • There’s a maximum of 50 DataWeave scripts per org.
  • The maximum body size of one DataWeave script is 100000 (one hundred thousand) characters.

XML Entity Expansion isn’t supported, either currently or in the future, as a guard against denial of service attacks.

Note