nerdexam
MuleSoft

MCD-LEVEL-1 · Question #163

How can you call a subflow from Dataweave?

The correct answer is C. Lookup function. This is a trick question. You can call only flows from DataWeave using lookup function. Note that lookup function does not support calling subflows. A subflow needs a parent context to inherit behaviors from such as exception handling, which a flow Hence correct answer is Not…

Build Mule applications using Mule components

Question

How can you call a subflow from Dataweave?

Options

  • ANot possible in Mule 4
  • BImport function
  • CLookup function
  • DInclude function

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    88% (44)
  • D
    6% (3)

Explanation

This is a trick question. You can call only flows from DataWeave using lookup function. Note that lookup function does not support calling subflows. A subflow needs a parent context to inherit behaviors from such as exception handling, which a flow Hence correct answer is Not possible in Mule 4

Topics

#DataWeave#subflow#lookup function#flow invocation

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice