Skip to main content

Workflow Lifecycle Events

Summary​

Instance-level lifecycle events cover start and two terminal outcomes. There is no cancellation event.

Lifecycle flow​

Start​

The aggregate queues the start event when constructed, before the first stage is opened. A workflow with no applicable stage can queue start and completion in one save.

Completion​

Completion queues one instance-level completion event after the final applicable stage or immediate no-stage path.

Rejection​

One task rejection queues both task-rejected and instance-rejected domain events in order.

Requires Confirmation​

Cancellation, archive and reopen lifecycle events require confirmation.

Source References​

  • microservices/src/workflow-service/Domain/Workflow/WorkflowInstance.cs
  • microservices/src/workflow-service/Domain/Workflow/WorkflowDomainEvents.cs
  • microservices/src/workflow-service/Infrastructure/WorkflowDbContext.cs

See Also​

Keywords​

Workflow events, integration contracts, transactional outbox.

Revision Information​

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