Introducing a new way to review your PRs.

Read the announcement

elsa-workflows / elsa-core

The Workflow Engine for .NET

View on GitHub

32 documents · Updated Oct 7, 2026

overview

Knowledge Base updated: 2026-10-06

Elsa Core knowledge base

Orientation

Elsa Core is a modular .NET workflow platform. Its workflow engine separates activity execution from management of workflow definitions and from the runtime services that dispatch, resume, persist, and recover workflow instances.

Core contracts and modules are under src/core and src/modules; optional capabilities and provider implementations are delivered from src/extensions. Server applications, APIs, Studio, and integration packages compose those capabilities for operators and workflow authors.

Critical durable state includes workflow definitions and instances, bookmarks and runtime state, identities and roles, tenant and secret data, user tasks, connection credentials, and provider-specific migration history. Persistence providers own the physical storage choices while core services consume their contracts.

flowchart TD
  Clients[Clients and Studio] --> Server[Server applications]
  Clients --> API[Workflow APIs and HTTP]
  Server --> Features[Feature composition]
  API --> Management[Workflow management]
  API --> Runtime[Workflow runtime]
  Management --> Engine[Workflow engine]
  Runtime --> Engine
  Engine --> Activities[Activities and expressions]
  Runtime --> Stores[Persistence contracts]
  Management --> Stores
  Stores --> EF[EF Core providers]
  Stores --> Dapper[Dapper providers]
  Stores --> Mongo[MongoDB providers]
  Stores --> VNext[VNext persistence]
  Features --> Security[Security and multitenancy]
  Features --> Extensions[Extension ecosystem]

Glossary

  • Bookmark — a persisted suspension point used by the runtime to resume workflow execution when a matching stimulus arrives.
  • Feature — an Elsa modular-registration unit that contributes services, endpoints, middleware, and configuration to a host.
  • Workflow instance — the durable runtime record for a particular execution of a workflow definition.
  • Workflow definition — the authored, versioned description that is materialized into executable workflow behavior.
  • VNext persistence — the next-generation Elsa persistence abstraction and implementation family that operates alongside established providers.

Invariants

  • Workflow execution state must be persisted through storage abstractions rather than directly coupling engine code to a database provider; evidence: src/core/** contracts and src/extensions/persistence/** implementations.
  • Hosts compose optional behavior through feature registration rather than requiring every module at runtime; evidence: **/…/*Feature.cs and **/…/*Extensions.cs.
  • Provider-specific schema evolution belongs in provider migration projects; evidence: src/…/*.cs.
  • Identity role operations are mediated by role-management and store abstractions; evidence: src/…/IRoleManager.cs and src/…/RoleStoreExtensions.cs.
  • Runtime resumption is driven by persisted bookmarks and runtime dispatch services; evidence: src/modules/**/Bookmarks/** and src/modules/**/Runtime/**.

Routing table