If you route a message with a flow reference to a sub flow, the flow message is processed how?

Prepare for the MuleSoft Integration Architect exam. Study with flashcards and multiple-choice questions, each offering hints and explanations to deepen understanding. Ace your exam with our focused preparation tools!

Multiple Choice

If you route a message with a flow reference to a sub flow, the flow message is processed how?

Explanation:
Invoking a sub-flow with a flow reference processes the message synchronously. It runs on the same processing thread as the calling flow, and the parent flow waits for the sub-flow to finish before continuing. The payload returned after the flow-reference completes is whatever the sub-flow leaves as the message payload (subject to any further changes in the caller). If an error occurs in the sub-flow, it follows the defined error handling for the flow. If asynchronous behavior is needed, you’d structure the flows differently (for example, using an async scope or a separate flow invoked asynchronously).

Invoking a sub-flow with a flow reference processes the message synchronously. It runs on the same processing thread as the calling flow, and the parent flow waits for the sub-flow to finish before continuing. The payload returned after the flow-reference completes is whatever the sub-flow leaves as the message payload (subject to any further changes in the caller). If an error occurs in the sub-flow, it follows the defined error handling for the flow. If asynchronous behavior is needed, you’d structure the flows differently (for example, using an async scope or a separate flow invoked asynchronously).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy