Dynamic Evaluate Component
Executes the script to generate a result.
Drive Location
https://drive.google.com/drive/folders/1lamoRX_5MPhHt-Rpy_qNk6ix_gNG8Vto?usp=sharing
Why we need to use this?
1.Execute DataWeave script at runtime
2. DataWeave can be store in file system or retrieved from database
3. Dynamic Mapping store in the external location, change the mapping by no need
to deploy your app
Inside DataWeave code we can use
payload
variable
attributes and
custom parameters
In case dataweave files stored into src/main/resouces
Read DWL File
%dw 2.0
output application/java
var fileName= "dw/$(attributes.queryParams.dw).dwl"
---
readUrl("classpath://" ++ fileName,"text/plain")