Skip to content

Commit df5f74d

Browse files
committed
GH-2890: Document a bridge for subflow starts
Fixes #2890 Explain in a docs why and how a `bridge` appears in the flow when we declare a subflow for mapping
1 parent ff15d52 commit df5f74d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/reference/asciidoc/dsl.adoc

+5
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,11 @@ When you configure a sub-flow as a lambda, the framework handles the request-rep
816816
Sub-flows can be nested to any depth, but we do not recommend doing so.
817817
In fact, even in the router case, adding complex sub-flows within a flow would quickly begin to look like a plate of spaghetti and be difficult for a human to parse.
818818

819+
NOTE: Any sub-flow mappings end up with a `MessageChannel` connection between an original component as a producer (e.g. a `discardChannel` in the `MessageFilter`) and the first endpoint in the sub-flow as a consumer.
820+
When sub-flow is started with a channel, an extra `bridge()` is placed between the mapping channel and this one to make the proper flow wiring.
821+
When an existing `IntegrationFlow` bean is used as a subflow reference, there is no such a bridge in between since the framework can resolve the first channel from the flow bean.
822+
This information is not available yet from inline subflows.
823+
819824
[[java-dsl-protocol-adapters]]
820825
=== Using Protocol Adapters
821826

0 commit comments

Comments
 (0)