Class EdgesBuilder.RouteMap
java.lang.Object
com.google.adk.workflow.EdgesBuilder.RouteMap
- Enclosing class:
EdgesBuilder
A routing map configured in
EdgesBuilder.EdgeChain.route(Consumer) 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(Node, Node...)completes it.on(EdgesBuilder.RouteSet routes) Starts an entry whose edges fire once when the source node emits any ofroutes, built withanyOf(String, String, String...);EdgesBuilder.RouteMapEntry.then(Node, Node...)completes it.Starts an entry forroute, such as aRoute.Num;EdgesBuilder.RouteMapEntry.then(Node, Node...)completes it.Starts an entry forrouteas aRoute.Tag;EdgesBuilder.RouteMapEntry.then(Node, 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(Node, Node...)completes it. -
on
Starts an entry forrouteas aRoute.Flag;EdgesBuilder.RouteMapEntry.then(Node, Node...)completes it. -
on
Starts an entry forroute, such as aRoute.Num;EdgesBuilder.RouteMapEntry.then(Node, Node...)completes it. -
on
Starts an entry whose edges fire once when the source node emits any ofroutes, built withanyOf(String, String, String...);EdgesBuilder.RouteMapEntry.then(Node, Node...)completes it. -
otherwise
-
anyOf
Groups string routes asRoute.Tags foron(RouteSet). -
anyOf
Groups routes, such asRoute.Nums, foron(RouteSet).
-