Package com.google.adk.workflow
Class EdgesBuilder.RouteMap
java.lang.Object
com.google.adk.workflow.EdgesBuilder.RouteMap
- Enclosing class:
- EdgesBuilder
A routing map configured in
EdgesBuilder.EdgeChain.route(java.util.function.Consumer<? super com.google.adk.workflow.EdgesBuilder.RouteMap>) that maps each route the source node may
emit to the nodes it leads to, written r.on("billing").then(billing). Mapping a route
to several nodes fans out on that route.-
Method Summary
Modifier and TypeMethodDescriptionGroups routes, such asRoute.Nums, foron(RouteSet).Groups string routes asRoute.Tags foron(RouteSet).on(boolean route) Starts an entry forrouteas aRoute.Flag;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.on(EdgesBuilder.RouteSet routes) Starts an entry whose edges fire once when the source node emits any ofroutes, built withanyOf(java.lang.String, java.lang.String, java.lang.String...);EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.Starts an entry forroute, such as aRoute.Num;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.Starts an entry forrouteas aRoute.Tag;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.voidLeads to each target when no other route of the source node matches, including when it emits none.
-
Method Details
-
on
Starts an entry forrouteas aRoute.Tag;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it. -
on
Starts an entry forrouteas aRoute.Flag;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it. -
on
Starts an entry forroute, such as aRoute.Num;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it. -
on
Starts an entry whose edges fire once when the source node emits any ofroutes, built withanyOf(java.lang.String, java.lang.String, java.lang.String...);EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it. -
otherwise
Leads to each target when no other route of the source node matches, including when it emits none. -
anyOf
Groups string routes asRoute.Tags foron(RouteSet). -
anyOf
Groups routes, such asRoute.Nums, foron(RouteSet).
-