Result Class
Contains methods to retrieve data that was transformed using Script class methods.
See Script Class for an example to run a DataWeave script from Apex and retrieve the resulting script output.
The following are methods for Result.
-
Returns the result of a DataWeave script execution as an object.
-
Returns the result of a DataWeave script execution as a string value.
Returns the result of a DataWeave script execution as an object.
public Object getValue()
Type: Object
Returns the result of a DataWeave script execution as a string value.
public String getValueAsString()
Type: String