---
schema_version: "1"
id: d48a5a1e1e66511b43bd857b20e3a98509b85ffbd74ff58425c7b33f74293d63
title: Mule (dw::Mule)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-mule.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-mule
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 89b8c3f78d847297f0ea7d878dfd6e89699bf8ab8cd4a6d6398a7a95fecc9606
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# Mule (dw::Mule)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This DataWeave module contains functions for interacting with Mule runtime engine.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::Mule` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-mule-functions-causedby">causedBy</a></p></td><td><p>This function matches an error by its type, like an error handler does.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-mule-functions-lookup">lookup</a></p></td><td><p>This function enables you to execute a flow within a Mule app and retrieve the resulting payload.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-mule-functions-p">p</a></p></td><td><p>This function returns a string that identifies the value of one of these input properties: Mule property placeholders, System properties, or Environment variables.</p></td></tr></tbody></table>

## Types

- [Mule Types](https://docs.mulesoft.com/dataweave/2.4/dw-mule-types)
