-
Notifications
You must be signed in to change notification settings - Fork 519
BasicDataWeaveInApexRecipes
Demonstrates various ways of invoking a DataWeave scripts in Apex. Note that this class demonstrates both static and dynamic way of invoking DataWeave scripts.For more DataWeave for Apex example head to https://github.com/developerforce/DataWeaveInApex.
Group DataWeaveInApex Recipes
Demonstrates how to invoke a DataWeave script in Apex using static invocation. The class uses the /dw/helloWorld.dwl script to log a message This shows how to invoke the script using the apex class automatically generated by the platform from the DataWeave script. The DataWeave script is deployed as the metadata.
| Type | Description |
|---|---|
String |
the result of output from DataWeave script in the string format |
Demonstrates how to invoke a DataWeave script in Apex using dynamic invocation. For dynamic invocation use DataWeave.Script.createScript. The class uses the /dw/helloWorld.dwl script to log a message
| Param | Description |
|---|---|
scriptName |
name of the DataWeave metadata to invoke |
| Type | Description |
|---|---|
String |
the result of output from DataWeave script in the string format |