Skip to main content

Workflow Event Publishers

Summary​

Publishing spans three verified roles: the aggregate queues domain events, DbContext creates outbox integration records, and the hosted/shared relay publishes serialized records.

Publisher and consumer flow​

Aggregate publisher​

Only WorkflowInstance raises verified domain events. Definition authoring and delegation do not.

Integration publisher​

DbContext constructs new integration events with schema version 1 and stores them. The Workflow service does not directly call the integration publisher for lifecycle changes.

Transport publisher​

The shared processor passes stored type/payload/metadata to the event bus. Successful transport return leads to Processed status.

Requires Confirmation​

Consumer registrations, transport confirmation semantics and publisher monitoring require confirmation.

Source References​

  • microservices/src/workflow-service/Domain/Workflow/WorkflowInstance.cs
  • microservices/src/workflow-service/Infrastructure/WorkflowDbContext.cs
  • microservices/src/workflow-service/Messaging/OutboxRelayHostedService.cs
  • microservices/src/shared-kernel/Messaging/OutboxProcessor.cs

See Also​

Keywords​

Workflow events, integration contracts, transactional outbox.

Revision Information​

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Next review: 2026-10-20