Result Class

Contains methods to retrieve data that was transformed using Script class methods.

Namespace

DataWeave

Example

See Script Class for an example to run a DataWeave script from Apex and retrieve the resulting script output.

Result Methods

The following are methods for Result.

getValue()

Returns the result of a DataWeave script execution as an object.

Signature

public Object getValue()

Return Value

Type: Object

getValueAsString()

Returns the result of a DataWeave script execution as a string value.

Signature

public String getValueAsString()

Return Value

Type: String