nerdexam
MuleSoft

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…

DataWeave

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

MCD-LEVEL-1 question #7 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)
  • A
    6% (2)
  • B
    16% (5)
  • C
    74% (23)
  • D
    3% (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

#DataWeave lookup#flow reference#subflow invocation#DataWeave expressions

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice