Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
var Module = fx.Module( "vef:approval", auth.Module, strategy.Module, behavior.Module, binding.Module, engine.Module, service.Module, command.Module, query.Module, resource.Module, timeout.Module, migration.Module, fx.Invoke(verifyEventRouting), )
Module is the approval workflow engine module.
Functions ¶
This section is empty.
Types ¶
This section is empty.