Configs2026年7月13日·1 分钟阅读

Elsa Workflows — Visual Workflow Engine for .NET

An open-source workflow engine for .NET that lets developers build and run long-running workflows with a visual designer, code-first APIs, or both.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Elsa Workflows Overview
直接安装命令
npx -y tokrepo@latest install fb3a5463-7e94-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Elsa is a workflow engine for .NET that supports building long-running, stateful workflows. Developers can define workflows in C# code, JSON, or through a built-in visual designer. It handles orchestration of HTTP endpoints, timers, events, and custom activities.

What Elsa Does

  • Executes long-running workflows with persistence and resumption across restarts
  • Provides a visual drag-and-drop workflow designer accessible via web browser
  • Supports code-first workflow definitions using a fluent C# API
  • Offers built-in activities for HTTP requests, timers, email, and JavaScript evaluation
  • Triggers workflows from HTTP endpoints, message queues, cron schedules, or custom events

Architecture Overview

Elsa separates workflow definitions from runtime execution. Definitions are stored as JSON or compiled from C# code, and the runtime engine manages instances, bookmarks, and resumption points. A persistence layer supports EF Core, MongoDB, or custom providers. The workflow designer is a Blazor-based SPA that communicates with the engine via REST APIs.

Self-Hosting & Configuration

  • Install via NuGet: dotnet add package Elsa plus activity packages like Elsa.Http or Elsa.Email
  • Register Elsa services in Program.cs with builder.Services.AddElsa()
  • Configure persistence with SQLite, SQL Server, PostgreSQL, or MongoDB
  • Mount the workflow designer UI with app.UseElsaStudio() for visual editing
  • Deploy as a standard ASP.NET Core application behind any reverse proxy

Key Features

  • Visual designer for non-developers to create and modify workflows
  • Code-first and designer-first workflows can coexist in the same application
  • Versioned workflow definitions with rollback support
  • Built-in activity library covering HTTP, scripting, branching, and looping
  • Extensible with custom activities written in C#

Comparison with Similar Tools

  • Temporal — Language-agnostic durable execution; Elsa is .NET-native with a visual designer
  • n8n — Node.js workflow automation; Elsa integrates directly into .NET applications
  • Camunda — Java-based BPMN engine; Elsa is lighter weight and C#-native
  • Conductor (Netflix) — Microservice orchestrator; Elsa targets .NET monoliths and modular apps

FAQ

Q: Can workflows survive application restarts? A: Yes, Elsa persists workflow state and bookmarks to a database and resumes automatically.

Q: Is the visual designer included? A: Yes, the Elsa Studio designer is included as a NuGet package and runs as a Blazor WebAssembly app.

Q: Can I run Elsa without the designer? A: Yes, you can define workflows entirely in C# code and run them headlessly.

Q: What .NET versions are supported? A: Elsa 3.x targets .NET 8 and later.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产