---
schema_version: "1"
id: 82d1953b6a6cd4b27afb4b137d1e69ed2d6162142f78db6013d1172820b00cbf
title: Runtime (dw::Runtime)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-runtime.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-runtime
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a0833c41e83bb6b34ac39b57232796c02af01dbab9128d8727c156a24eed1603
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# Runtime (dw::Runtime)

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

This module contains functions that allow you to interact with the DataWeave engine.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::Runtime` 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.3/dw-runtime-functions-fail">fail</a></p></td><td><p>Throws an exception with the specified message.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-failif">failIf</a></p></td><td><p>Produces an error with the specified message if the expression in the evaluator returns <code>true</code>, otherwise returns the value.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-locationstring">locationString</a></p></td><td><p>Returns the location string of a given value.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-orelse">orElse</a></p></td><td><p>Returns the result of the <code>orElse</code> if the <code>previous</code> try result failed if not returns the result of the <code>previous</code></p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-orelsetry">orElseTry</a></p></td><td><p>Function to be use with try in order to chain multiple <code>try</code></p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-prop">prop</a></p></td><td><p>Returns the value of the property with the specified name or <code>null</code> if the property is not defined.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-props">props</a></p></td><td><p>Returns all the properties configured for Mule runtime.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-try">try</a></p></td><td><p>Evaluates the delegate function and returns an object with <code>success: true</code> and <code>result</code> if the delegate function succeeds, or an object with <code>success: false</code> and <code>error</code> if the delegate function throws an exception.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.3/dw-runtime-functions-wait">wait</a></p></td><td><p>Stops the execution for the specified timeout (in milliseconds).</p></td></tr></tbody></table>

## Types

- [Runtime Types](https://docs.mulesoft.com/dataweave/2.3/dw-runtime-types)
