Exam4Training

What is the difference between a subflow and a sync flow?

What is the difference between a subflow and a sync flow?
A . No difference
B . Subflow has no error handling of its own and sync flow does
C . Sync flow has no error handling of its own and subflow does
D . Subflow is synchronous and sync flow is asynchronous

Answer: B

Explanation:

Correct answer is Subflow has no error handling implementation where as sync flow has. Subflow

A subflow processes messages synchronously (relative to the flow that triggered its execution) and always inherits both the processing strategy and exception strategy employed by the triggering flow. While a subflow is running, processing on the triggering flow pauses, then resumes only after the subflow completes its processing and hands the message back to the triggering flow.

Synchronous Flow

A synchronous flow, like a subflow, processes messages synchronously (relative to the flow that triggered its execution). While a synchronous flow is running, processing on the triggering flow pauses, then resumes only after the synchronous flow completes its processing and hands the message back to the triggering flow. However, unlike a subflow, this type of flow does not inherit processing or exception strategies from the triggering flow. This type of flow processes messages along a single thread, which is ideally suited to transactional processing

Exit mobile version