ReeveWorkflow.Editor 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ReeveWorkflow.Editor --version 1.1.0
                    
NuGet\Install-Package ReeveWorkflow.Editor -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ReeveWorkflow.Editor" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ReeveWorkflow.Editor" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="ReeveWorkflow.Editor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ReeveWorkflow.Editor --version 1.1.0
                    
#r "nuget: ReeveWorkflow.Editor, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ReeveWorkflow.Editor@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ReeveWorkflow.Editor&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ReeveWorkflow.Editor&version=1.1.0
                    
Install as a Cake Tool

Reeve Workflow

Reeve Workflow is a workflow-graph engine in two halves that ship separately. Four npm packages model and edit a graph; twelve NuGet packages execute one. Either half works without the other: the editor runs against any server that speaks the same HTTP surface, and the engine runs with no editor at all.

All packages carry one version number and are MIT licensed.

Which package do I need?

Editor (npm)

Package Install when
@reeve-iot/workflow-core You want the graph model, editor state, port-type system and validation, and bring your own components. No design system.
@reeve-iot/workflow-mui You want a working Material UI editor. Depends on core and re-exports it, so one dependency is enough.
@reeve-iot/workflow-client You talk to a ReeveWorkflow.AspNetCore and ReeveWorkflow.Editor server and want its endpoints typed. Depends on neither of the above.
@reeve-iot/workflow-adapters You want the data sources core declares already implemented over client. The only package that depends on both.

Engine (NuGet)

Package Install when
ReeveWorkflow.Abstractions You are writing a block. This is the whole dependency closure for one.
ReeveWorkflow.Core You want the engine: the expression language and the graph walk. Knows nothing about dependency injection or a database.
ReeveWorkflow.EntityFrameworkCore You want the tables. Ships its own DbContext; provider-agnostic, with no migrations.
ReeveWorkflow.EntityFrameworkCore.PostgreSql Your database is PostgreSQL with TimescaleDB. Ships the library's migrations and makes the execution-step table a hypertable.
ReeveWorkflow.AspNetCore You want the Executor's HTTP surface (reading and running workflows), which @reeve-iot/workflow-client is generated from.
ReeveWorkflow.Editor You want the write side: creating, versioning, drafting and publishing definitions, and the API over it.
ReeveWorkflow.DependencyInjection You are writing an add-on that hangs its own AddX() on the builder.
ReeveWorkflow.History You want run history swept on a schedule instead of growing forever.
ReeveWorkflow.Debug You want breakpoints, stepping and state snapshots over a running graph.
ReeveWorkflow.Blocks You want branches, loops, Try/Catch, conversions, arithmetic, JSON and an HTTP request without writing them. Opt-in; every block is replaceable by id.
ReeveWorkflow.Redis You run several replicas and want the run budget, fire de-duplication and the cluster signal over Redis.
ReeveWorkflow.Npgsql You run several replicas and want the run lock (and the leader gate derived from it) as PostgreSQL advisory locks.

Requirements

  • npm packages: core, mui and adapters need React 18 or 19 as a peer dependency. @reeve-iot/workflow-mui also needs react-dom, @mui/material and @mui/icons-material 9, and @emotion/react and @emotion/styled 11. @reeve-iot/workflow-client has no peer dependencies.
  • NuGet packages: .NET 11 (net11.0) and, for the EF Core packages, EF Core 11.
  • ReeveWorkflow.EntityFrameworkCore.PostgreSql: PostgreSQL with the TimescaleDB extension.
  • ReeveWorkflow.Redis: a Redis server.

docs/operations/README.md has the full list.

Installation

npm install @reeve-iot/workflow-mui         # editor with Material UI (pulls in core)
npm install @reeve-iot/workflow-core        # or: headless, bring your own components
npm install @reeve-iot/workflow-client      # typed calls to the server
npm install @reeve-iot/workflow-adapters    # core's data sources, wired to client
dotnet add package ReeveWorkflow.Core
dotnet add package ReeveWorkflow.EntityFrameworkCore
dotnet add package ReeveWorkflow.EntityFrameworkCore.PostgreSql
dotnet add package ReeveWorkflow.AspNetCore
dotnet add package ReeveWorkflow.Editor
dotnet add package ReeveWorkflow.Blocks      # optional: the standard blocks

Usage

Editor

The port-type vocabulary is open. core ships the types every host shares (String, Number, Int, Boolean, DateTime, Json, Collection<T>, Map<String,V>) and you register your own:

import { BUILTIN_PORT_TYPES, createPortTypeRegistry } from '@reeve-iot/workflow-core'

const portTypes = createPortTypeRegistry([
  ...BUILTIN_PORT_TYPES,
  { name: 'Device', aliases: ['device'], displayName: 'Device' },
  { name: 'Room', aliases: ['room'] },
])

portTypes.normalize('Collection<Device>')   // 'Collection<Device>': companion types are derived
portTypes.has('Thermostat')                 // false: not registered
portTypes.normalize('TypeFromANewerHost')   // unchanged: an unknown type never breaks a saved graph

The registry goes to createWorkflowEditorStore({ portTypes }) or to WorkflowEditorStoreProvider. See docs/reference/port-types.md for the rules and the client and adapters READMEs for talking to a server.

Engine

builder.Services.AddStandardWorkflowBlocks();

builder.Services.AddWorkflows(options =>
{
    options.ConfigureDbContext(db => db.UseNpgsql(connectionString));
    options.Defaults.ReplicaId = Environment.MachineName;   // unique per process; recovery needs it

    // Anything not named here keeps the library's own answer.
    options.Seams.Metrics.Use<MyMetrics>();
    options.Seams.Authorization.Use<MyAuthorization>(ServiceLifetime.Scoped);
})
.AddPostgreSqlSchema()      // the library's migrations and hypertable; needs TimescaleDB
.AddWorkflowEditor()
.AddWorkflowEngine();

var app = builder.Build();

await app.Services.EnsureWorkflowsDatabaseAsync(WorkflowDatabaseMode.MigrateThenVerify);

app.MapWorkflowApi("api/workflows").RequireAuthorization();
app.MapWorkflowEditorApi("api/workflows").RequireAuthorization();
app.MapWorkflowBlockApi("api/workflow-blocks").RequireAuthorization();
app.MapWorkflowExpressionApi("api/expressions").RequireAuthorization();

AddWorkflows registers the DbContext and answers every seam the library can answer itself. Authorization is restrictive by default: it grants nothing until you tell it to. AddWorkflowEngine composes the engine (the runner, a coordinator per workflow, the resumer, the recovery sweep and the waker). EnsureWorkflowsDatabaseAsync applies the schema and verifies it. The library takes no lock around it, so with several replicas run it under a lock of your own.

Recovery of runs whose replica died is off by default. Turn it on with .AddWorkflowEngine(e => e.Recovery.Enabled = true); it needs Defaults.ReplicaId. See docs/operations/clustering.md.

examples/dispatch-host is a complete host, tested as several replicas against real PostgreSQL and Redis.

Documentation

Contributing

See CONTRIBUTING.md. To report a security issue, see SECURITY.md.

Licence

MIT, see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 1,904 11/30/2026
1.1.2 666 11/29/2026
1.1.1 357 11/28/2026
1.1.0 124 11/26/2026