Back to Browse

DataWeave Dynamic Evaluate Component | Mule 4 | MuleSoft

809 views
Sep 23, 2021
21:42

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")

Download

1 formats

Video Formats

360pmp431.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

DataWeave Dynamic Evaluate Component | Mule 4 | MuleSoft | NatokHD