API

Class FlowGraphStopEventPropagationBlock

Stops the propagation of an in-flight custom event.

When activated it asks the coordinator to skip the remaining handler nodes of the currently-dispatching event referenced by the event input, then activates its out flow. If the event input is not a valid, currently-dispatching event reference, activating this block only fires out with no other effect.

Hierarchy

  • FlowGraphExecutionBlockWithOutSignal
    • FlowGraphStopEventPropagationBlock
Index

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

An output connection that can be used to signal an error, if the block defines it.

Input: the event reference (produced by an event operation's event output) whose propagation should be stopped.

Input connection: The input signal of the block.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

Output connection: The signal that is synchronous triggered when the execution of this block is done. Note that is case of events or async you might want to use the done signal instead.

priority: number = 0

The priority of the block. Higher priority blocks will be executed first. Note that priority cannot be change AFTER the block was added as sorting happens when the block is added to the execution queue.

Input connections that activate the block.

signalOutputs: FlowGraphSignalConnection[]

Output connections that can activate downstream blocks.

stopImmediate: FlowGraphDataConnection<boolean>

Input: whether to also stop remaining immediate handlers. See FlowGraphCoordinator.stopEventPropagation for how this maps onto the Babylon single-Observable dispatch model.

uniqueId: string = ...

A randomly generated GUID for each block.