approval

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventRouteNotSubscribable = errors.New("approval: event must route to a subscribable transport")

ErrEventRouteNotSubscribable indicates the framework's event bus has no subscribable transport on the route for an event that approval itself subscribes to. The binding listener subscribes to InstanceCompletedEvent; a route resolving only to publish-only transports (e.g. just the outbox) would let the application start, then silently drop every event because Subscribe is filtered at routing time. The wrapped formatted error names the offending event type and points operators at the configuration that must be set.

View Source
var ErrEventRouteNotTransactional = errors.New("approval: event must route to a transactional transport")

ErrEventRouteNotTransactional indicates the framework's event bus is not configured to deliver an approval domain event through a transactional transport. Approval publishes every business-side event with event.WithTx (via EventPublishBehavior and engine.PublishEventsTx) so subscribers see the event iff the originating business transaction commits; without a transactional route the first publish would fail at runtime with event.ErrTxRequired and roll the business transaction back. The wrapped formatted error names the offending event type and points operators at the configuration that must be set.

Module is the approval workflow engine module.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL