Deprecated Custom W4C workflows. Use Elsa instead.
Find a file
Vitali sharp8n 87b1abae4e wf test fix
2026-09-07 11:15:03 +03:00
Controllers clean and last run and count 2026-09-03 21:37:55 +03:00
Data workflow source mapping 2026-09-03 17:44:39 +03:00
Filters Initial: workflows API control plane + tests + YAML workflow definitions 2026-09-01 19:37:53 +03:00
Middleware fixes for scalar and access 2026-09-02 20:33:19 +03:00
Models workflow source mapping 2026-09-03 17:44:39 +03:00
Services fix(dispatcher): use tenant-selected workflow repo and ensure clone before dispatch 2026-09-03 19:27:03 +03:00
w4c-workflows-api.Tests wf test fix 2026-09-07 11:15:03 +03:00
.gitignore worfklow integration per tenant support 2026-09-01 22:31:27 +03:00
appsettings.json workflow source mapping 2026-09-03 17:44:39 +03:00
Dockerfile fixes for scalar and access 2026-09-02 20:33:19 +03:00
Program.cs workflow source mapping 2026-09-03 17:44:39 +03:00
README.md Initial: workflows API control plane + tests + YAML workflow definitions 2026-09-01 19:37:53 +03:00
w4c-workflows-api.csproj worfklow integration per tenant support 2026-09-01 22:31:27 +03:00

w4c-workflows-api

Control plane and worker for the custom workflows engine. One Docker image, two entrypoints:

  • default — HTTP control plane (API, trigger scheduler, Mermaid, API-key management)
  • --worker — per-tenant execution worker (pull/exec/result over Redis)

Structure

├── Controllers/       API controllers (health, keys, runs, workflows, webhooks)
├── Data/              EF Core DbContext + migrations (PostgreSQL)
├── Filters/           Action filters (e.g. RequireScope)
├── Middleware/         Auth middleware
├── Models/            EF entities + YAML schema models
├── Services/          Business logic:
│   ├── Execution/     Script executors (shell, python, node, ts, c#, agent)
│   ├── Messaging/     Redis Streams transport
│   ├── Runs/          Run lifecycle engine, task dispatcher
│   └── Triggers/      Cron/schedule trigger scheduler
├── workflows/         YAML workflow definitions (synced from source)
├── w4c-workflows-api.Tests/   xunit tests (unit + integration with Testcontainers)
├── Dockerfile
└── Program.cs

Building

docker build -t w4c-workflows-api -f Dockerfile .

Running locally

Requires PostgreSQL and Redis. See appsettings.json for connection strings.