Optional
descriptionOptional descriptive text about the orchestration router.
Optional
enableControls the inclusion of to
and redirectto
fields in output CloudEvents.
true
: Enables routing metadata, allowing dynamic event targeting.false
(default): Disables routing metadata, with to
and redirectto
fields nullified.
Use sparingly, as orchestrators typically target services dynamically without preset destinations.Schema for validating the initial context data, utilizing Zod for schema definition.
Optional
lockingDictates the locking strategy for storage operations to manage concurrent access.
Optional
loggerOptional logger function for accessing router logs, facilitating debugging and monitoring.
Unique name for the orchestrator, used in constructing event handler topics.
Optional
onOptional function to handle snapshots, providing insights into the orchestration's state at specific points.
Optional function to handle snapshots, providing insights into the orchestration's state at specific points.
Identifies the orchestration process.
Captures the current state of the orchestration.
Identifies the orchestration process.
Captures the current state of the orchestration.
Optional
raiseAn optional configuration object for the router that specifies which error events should be triggered under certain conditions. This allows for fine-grained control over error handling, enabling applications to respond to specific error scenarios more effectively.
Determines whether an error should be raised when there is a mismatch between the orchestrator name specified in an event and the expected orchestrator name.
When set to true
, an error event is triggered if the name of the orchestrator that constructed the subject of the event does not match the orchestrator name that the router was expecting. This can be useful for detecting and responding to configuration errors or unauthorized attempts to trigger events.
Setting this flag to false
disables the error check, which might be suitable in environments where the orchestrator name is dynamic or verification is handled elsewhere.
A list of state machine logics with their corresponding versions, dictating the orchestration's behavior.
Manages state persistence of the orchestration, ensuring concurrent access control.
It must adhere to the ILockableStorageManager
interface from unified-serverless-storage
.
Generated using TypeDoc
Extends the basic orchestration router interface with additional configuration options, including a description, logging capabilities, initial context schema validation, and optional routing metadata enhancement.