Interface Route

All Known Implementing Classes:
Route.Default, Route.Flag, Route.Num, Route.Tag

@Experimental public sealed interface Route permits Route.Tag, Route.Num, Route.Flag, Route.Default
A value on a workflow edge, and the value a node emits to select which of its outgoing edges are followed. An edge fires when the value it carries matches one the node emitted.

On the wire a route is a bare scalar (a string, integer or boolean), and Route.Default is the DEFAULT_ROUTE_SENTINEL string.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The fallback edge, followed when no other routed edge of the node matches what it emitted, including when it emitted no route.
    static final record 
    A route identified by a boolean, for a two-way branch.
    static final record 
    A route identified by an integer.
    static final record 
    A route identified by a string, which is the common case.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The string that stands for Route.Default on the wire.