My requirement is to do externalized dwl mapping files outside of the project and not include in src/main/resources folder.
To fulfil the requirement I need suggestion how I can proceed. Please check the below point provide any article or the way how I can implement-
- Can I keep dwl folder outside of the project? I tried to provide the file path in transform message like this #[MULE::${dwl.location}]/common/set-client-secret.dwl but this is not working.
- Is it possible to create dwl library for all dwl mappings files and can we import in transform message?
example: Below we have dwl mapping file that should be inside common library and in mule flow how can import just defining something like import::bad_request.dwl
%dw 2.0
output application/json
---
{
message: "Bad request",
error: error.description default ""
}