FSM - Finite State Machine
Flows Automation
StateWalker FSM is a workflow engine designed to describe, visualize and execute complex processes through the formalism of Hierarchical Finite State Machines (FSMs). This approach models dynamic system behavior as a set of states and transitions between them, triggered by events, providing a structured way to manage process flows and business logic.
npx @statewalker/fsm@latest ./myapp.js
The framework offers two complementary approaches to process definition and execution:
- The FSM Orchestrator provides a high-level tool that orchestrates processes based on code naming conventions without introducing any dependencies, making it ideal for rapid development and maintenance.
- The FSM Core serves as a low-level library that allows direct process execution via explicit API calls, offering fine-grained control for complex implementations.
The orchestrator builds upon the core foundation, enabling developers to load process definitions with corresponding user functions and control their execution in the proper sequence.