MCD-LEVEL-1 · Question #7
Refer to the exhibit. What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?
The correct answer is C. lookupf "createCustomerObject", { first: "Alice", last: "Green" > ). lookup(String, Any, Number) This function enables you to execute a flow within a Mule app and retrieve the resulting payload. It works in Mule apps that are running on Mule Runtime version 4.1.4 and later. Similar to the Flow Reference component (recommended), the lookup…
Question
Refer to the exhibit. What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?
Exhibit
Options
- AlookupC createCustomerObJect( "Alice", "Green- ) )
- BcreateCustomerObject( { first: "Alice", last: "Green" > )
- Clookupf "createCustomerObject", { first: "Alice", last: "Green" > )
- DcreateCustomerObject( "Alice", "Green")
How the community answered
(31 responses)- A6% (2)
- B16% (5)
- C74% (23)
- D3% (1)
Explanation
lookup(String, Any, Number) This function enables you to execute a flow within a Mule app and retrieve the resulting payload. It works in Mule apps that are running on Mule Runtime version 4.1.4 and later. Similar to the Flow Reference component (recommended), the lookup function enables you to execute another flow within your app and to retrieve the resulting payload. It takes the flow's name and an input payload as parameters. For example, lookup("anotherFlow", payload) executes a flow named anotherFlow. Correct answer is lookup( "createCustomerObject", {first: "Aice, last: "Green"}) MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/dw-mule- functions-lookup
Topics
Community Discussion
No community discussion yet for this question.
