Extension integration ecosystem
Elsa's extension ecosystem adds workflow-facing capabilities without changing the core workflow model. Extension packages connect activities to external systems, provide alternate persistence and transport services, register optional platform features, and add product capabilities such as agents or Studio support.
Extension boundary
The extension boundary is the point where Elsa turns a package into a usable workflow capability. An extension normally contributes a feature that registers activities, services, background work, or a connection to an external system. The application chooses which extensions to enable, so a deployment can remain small while still using the same workflow platform.
The main extension path is src/extensions/. Its packages share release and packaging rules, target the supported .NET versions, and can be built either against local Elsa projects or packaged Elsa dependencies. The package manifest hint marks these extensions as server-side features. src/extensions/Directory.Build.props src/…/PackageManifestHints.cs
The following diagram shows how an application uses an extension to connect workflow definitions with platform services and an external system.
flowchart LR
App[Elsa application] --> Registration[Extension registration]
Registration --> Catalog[Workflow activity catalog]
Registration --> Services[Runtime services]
Registration --> Hosted[Optional hosted work]
Catalog --> Execution[Workflow execution]
Execution --> Services
Services --> External[External system or store]
Hosted --> External
Capability families
Extension packages group around the needs of a workflow rather than around one shared runtime. This keeps domain actions, transport access, storage choices, and optional product features separate so an application can compose only the capabilities it needs.
Domain activity libraries
Domain activity libraries expose a business or technical operation as a workflow activity. The activity becomes available to code-based workflows and, when the host exposes the activity catalog, to workflow authoring tools. Examples include SQL work, CSV processing, file storage, compression, email, LDAP, and MQTT operations. The feature for each library is responsible for making its activity set visible and for providing the service that performs the operation. src/…/SqlFeature.cs src/…/README.md src/…/BlobStorageFeature.cs
These libraries are reusable building blocks for workflow authors. See Integration activity libraries for the activity families and their common composition patterns.
References: src/…/SqlFeature.cs• L33-39 src/…/README.md• L81-99 src/…/BlobStorageFeature.cs• L26-36
Transport and external service adapters
Transport adapters let workflows receive, send, or react to messages and service events. The service-bus family covers Kafka and Azure Service Bus. Other packages cover MQTT, HTTP OpenAPI support, email, communications, and telecom services. These extensions bridge workflow execution with a provider's client, worker, or event model instead of making that provider part of the core platform. src/…/KafkaFeature.cs src/…/AzureServiceBusFeature.cs src/…/README.md
The adapter usually has two sides. A trigger or consumer brings an external event into a workflow, while an action or producer sends a workflow result outward. Some adapters also start workers or maintain provider resources in the background, so enabling one can affect application startup and shutdown. src/…/AzureServiceBusFeature.cs src/extensions/servicebus/Elsa.ServiceBus.MassTransit/Elsa.ServiceBus.MassTransit.csproj
References: src/…/KafkaFeature.cs• L54-88 src/…/AzureServiceBusFeature.cs• L49-86 src/…/README.md• L117-148 src/…/Elsa.ServiceBus.MassTransit.csproj• L3-24
Persistence and storage providers
Persistence extensions connect Elsa or an optional Elsa domain to a selected data system. MongoDB and Elasticsearch provide document or search-oriented clients. Dapper provides a relational access path, while database-specific packages and EF Core integrations provide database choices for extension domains such as agents and connections. File and Azure storage extensions provide blob storage for workflow-facing data rather than workflow execution state itself. src/…/MongoDbFeature.cs src/…/ElasticsearchFeature.cs src/…/DbContextFactories.cs
The provider choice is a deployment concern. An application selects a provider that matches its data store and then configures the related extension domain against that store. This separates the domain contract from connection details and keeps storage concerns out of activity definitions. src/extensions/connections/Elsa.Connections.Core/Elsa.Connections.Core.csproj src/extensions/connections/Elsa.Connections.Persistence.EFCore/Elsa.Connections.Persistence.EFCore.csproj
References: src/…/MongoDbFeature.cs• L38-55 src/…/ElasticsearchFeature.cs• L23-46 src/…/DbContextFactories.cs• L1-13 src/…/Elsa.Connections.Core.csproj• L17-20 src/…/Elsa.Connections.Persistence.EFCore.csproj• L1-20
Optional product capabilities
Some extensions add a complete product capability around the workflow engine. Agents add configurable AI agents and multi-agent workflows as activities. Workflow contexts add context management. Connections and secrets add shared resources and credential handling. Studio packages add user-facing management, while scheduling, actors, diagnostics, caching, and CMS packages support operational or application needs. src/…/README.md src/extensions/agents/Elsa.Agents/Elsa.Agents.csproj src/…/WorkflowContextsFeature.cs
These capabilities often span more than one package. A core package can define the domain, an activity or API package can expose it to workflows, a persistence package can make it durable, and a Studio package can make it manageable. The package family therefore describes a product slice, not only a single activity. src/extensions/agents/Elsa.Studio.Agents/Elsa.Studio.Agents.csproj src/extensions/connections/Elsa.Connections.Api/Elsa.Connections.Api.csproj
References: src/…/README.md• L1-23 src/…/Elsa.Agents.csproj• L3-20 src/…/WorkflowContextsFeature.cs• L10-27 src/…/Elsa.Studio.Agents.csproj• L1-18 src/…/Elsa.Connections.Api.csproj• L3-20
Feature composition
Feature composition is the common registration model across the ecosystem. A feature declares what it adds to Elsa, applies its service registrations, and can depend on another feature when its behavior requires a base capability. This gives the host one place to enable an integration while preserving clear boundaries between activity discovery, service wiring, and background work.
Registration stages
An extension feature can contribute to several stages of application composition:
| Stage | Role in the system |
|---|---|
| Activity registration | Makes domain activities available to workflow execution and authoring. |
| Service registration | Supplies clients, factories, providers, evaluators, or storage services. |
| Hosted work | Starts consumers, workers, resource setup, or other long-running integration work. |
| Dependency declaration | Ensures a base feature is present before the extension is used. |
| Shell or Studio registration | Adds the capability to a host or user interface that supports modular features. |
SQL and email show the common activity-plus-service shape. Compression also declares a dependency on the IO feature and adds a workflow variable type. Kafka and Azure Service Bus add workers and handlers because their integrations must process messages outside a single activity call. src/…/SqlFeature.cs src/…/EmailFeature.cs src/…/CompressionFeature.cs
References: src/…/SqlFeature.cs• L33-61 src/…/EmailFeature.cs• L36-50 src/…/CompressionFeature.cs• L14-32 src/…/KafkaFeature.cs• L54-88 src/…/AzureServiceBusFeature.cs• L49-86
Package family boundaries
Package families separate stable concerns so applications can replace one part without adopting every part. A transport package can use a provider-specific client. A persistence package can target one database. A product capability can add API or Studio support only when the host needs it. The boundary is useful when selecting packages because the package name alone does not always tell whether it contributes activities, runtime services, durable storage, or user interface support.
The agents and connections families show this split clearly: each has a domain or core package, an activity or API surface, and persistence or database-specific packages. This arrangement lets a deployment use the workflow capability without forcing one storage engine or one presentation layer. src/extensions/agents/Elsa.Agents.Core/Elsa.Agents.Core.csproj src/extensions/agents/Elsa.Agents.Activities/Elsa.Agents.Activities.csproj src/extensions/connections/Elsa.Connections.Persistence.EFCore.Sqlite/Elsa.Connections.Persistence.EFCore.Sqlite.csproj
References: src/…/Elsa.Agents.Core.csproj• L1-20 src/…/Elsa.Agents.Activities.csproj• L1-20 src/…/Elsa.Connections.Persistence.EFCore.Sqlite.csproj• L1-20
Extension selection
Extension selection starts with the workflow's boundary needs. Choose an activity library when a workflow must perform a domain action. Choose a transport adapter when an external event must start or resume a workflow or when a workflow must publish an event. Choose a persistence provider when a selected Elsa domain needs durable data in a particular store. Add product, Studio, or operational packages only when the deployment needs that capability.
The integration activity libraries page is the next place to look when the main question is “which reusable activity can perform this external operation?” This page remains the map of the ecosystem and its package boundaries; the child page describes the activity families in more detail.
Change checklist
When these files or sections are changed, remember to consider these:
- When a feature changes its activity registration, check the workflow activity catalog and any Studio or shell surface that depends on that registration.
- When a transport adapter changes its consumer, producer, or hosted worker contract, check trigger behavior, background startup, and provider-specific package dependencies together.
- When a persistence family changes its domain contract, check every database-specific package and the matching API or activity package.
- When a package family is split or renamed, update the capability map and the integration activity libraries cross-link so engineers do not select an incomplete package set.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An activity package is enabled without the service or provider that performs its external operation. | The activity can be visible to a workflow but cannot complete its work. | Treat activity registration and its required service registration as one feature boundary. |
| A message adapter is enabled without valid provider options or connection details. | Consumers or workers fail during startup or cannot receive messages. | Configure the provider before enabling hosted message work. |
| A product capability uses its domain package without its required persistence or API package. | The capability is present only in part and its data or management surface is unavailable. | Select the complete package family for the required workflow, storage, and management surfaces. |
| A provider-specific persistence package does not match the selected domain persistence contract. | Data access or migrations target the wrong store boundary. | Pair each database provider with the domain persistence package it extends. |
Key files
| File | Why to read it |
|---|---|
src/extensions/Directory.Build.props | Defines shared extension packaging, target, and repository rules. |
| src/…/PackageManifestHints.cs | Shows the server-side role assigned to extension packages. |
| src/…/SqlFeature.cs | Illustrates an activity library that also registers domain services. |
| src/…/KafkaFeature.cs | Shows a transport adapter with consumers, producers, options, and workflow activities. |
| src/…/AzureServiceBusFeature.cs | Shows transport startup work and provider resource setup. |
| src/…/MongoDbFeature.cs | Illustrates a persistence provider that supplies a client and database boundary. |
| src/…/README.md | Describes a larger optional capability that exposes AI agents and multi-agent workflows. |
src/extensions/agents/Elsa.Studio.Agents/Elsa.Studio.Agents.csproj | Shows how a product capability can add a Studio management surface. |
| src/…/WorkflowContextsFeature.cs | Illustrates feature dependencies and workflow activity registration. |