Skip to content

A state machine refers to a programming concept where an application or workflow is divided into a series of states or steps, and the program progresses from one state to the next based on certain conditions or triggers.

License

Notifications You must be signed in to change notification settings

pigri/n8n-nodes-statemachine

Repository files navigation

n8n-nodes-statemachine

n8n.io - Workflow Automation

n8n "simple" state machine is storing your nodes/workflow state globally or workflow level

What is the state machine?

A state machine refers to a programming concept where an application or workflow is divided into a series of states or steps, and the program progresses from one state to the next based on certain conditions or triggers.

How to install

Community Nodes (Recommended)

  1. Go to Settings > Community Nodes.
  2. Select Install.
  3. Enter n8n-nodes-statemachine in Enter npm package name.
  4. Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source.
  5. Select Install.

After installing the node, you can use it like any other node. n8n displays the node in search results in the Nodes panel.

Manual installation

To get started install the package in your n8n root directory:

npm install n8n-nodes-statemachine

For Docker-based deployments, add the following line before the font installation command in your n8n Dockerfile:

RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-statemachine

How to use

  • This node has one external depedency is you need a redis service. You can find a free redis service here
  • My suggestion is 1 trigger 1 state machine
  • Always use error handler node in your workflow

Demo

Working well

  • 1st run
  • 2nd run

Error handling

  • error
  • error_handling

Errors

If you have any error, please open an issue on Github

About

A state machine refers to a programming concept where an application or workflow is divided into a series of states or steps, and the program progresses from one state to the next based on certain conditions or triggers.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published