T → exactly one When branchCase
Builds an exclusive runtime selector over its ordered When consumers.
When to use
Use Case for content- or type-based routing where exactly one downstream branch must receive each value.
Behavior
- During graph construction, each attached When receives a zero-based index in generated consumer order.
- The generated Case implementation builds a selector and returns one of those indices for every T.
- The original value is delivered only to the selected When; Case does not duplicate it across branches.
- The default Go selector can map the runtime value type to the corresponding When valueType; custom generated implementations can route by message content.
General properties
Identity, ownership and operator-specific mode.
typeTransformationTypeOperator kind. It controls available properties, valid sources and generated interfaces.
RequiredAllowed:Input, Map, Filter, Join, MultiJoin, Process, FlatMap, FlatMapIterable, KeyBy, Merge, Split, Case, Sink, CycleLink, Error, Delay, WhennamestringHuman-readable stream name shown in the designer and used to derive default generated symbols.
RequiredserviceServiceService that owns the stream. Connected streams must belong to the same service.
RequiredConnections properties
Upstream graph references accepted by this operator.
sourceStreamSingle upstream stream. The designer only offers structurally and type-compatible candidates.
RequiredFunction properties
Generated business-logic implementation and its placement.
functionNamesymbolGenerated business-logic type or function name.
RequiredfunctionPackagerelative pathOptional placement below the target-language functions root. Leave empty to use that root directly. A value such as folder/sub-folder is relative to the private or public functions root selected by publicFunction; nested-path handling is language-specific and is documented in Code Generation / Packages and Modules.
empty (functions root)publicFunctionbooleanPlaces the generated function in a shared package instead of the service-internal package.
Default:falsefunctionDescriptiontextDocumentation comment emitted with the generated function.
functionInitializerGroupstringDependency-injection initialization group for the generated function.
functionModuleModuleShared module that owns the function.
Visible when publicFunction is true.Execution properties
Pipeline placement and runtime policy.
pipelinestringVisual and configuration grouping inside the owning service.
Position properties
Designer-only canvas coordinates.
xPosnumberHorizontal designer coordinate. It has no runtime effect.
RequiredyPosnumberVertical designer coordinate. It has no runtime effect.
RequiredConfiguration example
type: Case
source: multiJoinAnalyticsEvents
functionName: RouteAnalyticsResult