QuestionQ47

VerifiedDeveloping Mule Applications

A Mule project includes a DataWeave module file, WebStore.dwl, that defines a function named loginUser. The module file is stored in the project's src/main/resources/libs/dw folder.

Which DataWeave code correctly imports all functions from WebStore.dwl and then calls loginUser for the login "[email protected]"?

Explanation

Custom DataWeave modules stored beneath src/main/resources are referenced by their relative folder path and module name, using :: as the separator and omitting the .dwl extension. import * from libs::dw::WebStore imports the module’s functions into the local namespace, allowing loginUser("[email protected]") to be called directly.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!