Sequential Workflow Machine
Sequential Workflow Machine is a workflow execution engine for frontend and backend JavaScript applications.
It runs workflow definitions step by step, supports pluggable execution handlers, and uses the same data model as Sequential Workflow Designer.
Why Use This Workflow Engine
- Execute process automation logic in your own runtime.
- Run sequential task pipelines in backend jobs.
- Implement custom business workflows with predictable execution flow.
- Move from visual workflow design to production runtime using one definition model.
Key Capabilities
- sequential workflow execution
- custom step handlers (activities)
- frontend and backend runtime support
- TypeScript-friendly API
- shared workflow definition model with the Designer
Execution Model
The engine executes steps in order and delegates step behavior to your handlers.
import { createAtomActivity } from 'sequential-workflow-machine';
const activity = createAtomActivity('sendEmail', {
handler: async (step, globalState) => {
// custom execution logic
},
});
Quick Start
npm install sequential-workflow-model sequential-workflow-machine
Part of the Complete Workflow Stack
Sequential Workflow Machine works together with:
- Sequential Workflow Designer to create workflow definitions visually
- Sequential Workflow Editor to configure and validate step data
- Sequential Workflow Components Overview to see the full architecture