36

Does anybody know a workflow engine (such as Spring WebFlow) for Javascript? We have a home-made framework that allows us to guide site navigation using JSON, but its quality is far from good.

Edit based on given answers: the engine must run on the browser and reduce to minimum the number of requests to the server.

bluish
  • 26,356
  • 27
  • 122
  • 180
eabait
  • 1,196
  • 2
  • 10
  • 16

2 Answers2

47

As suggested by katspaugh I'm posting the libraries I found as the answer. List of workflow libraries that I've found until now:

David Dehghan
  • 22,159
  • 10
  • 107
  • 95
eabait
  • 1,196
  • 2
  • 10
  • 16
  • 1
    Which of these frameworks run in the browser and which run on the server? I imagine the ones for Backbone and SproutCore are server-side. FSM, statechart, and machina look like they can run in the browser. – Vihung Oct 04 '13 at 16:54
  • Stately.js works on both, server and browser side. – FloHimself Feb 18 '14 at 06:47
  • machina.js works both in the browser and in node. – ifandelse Dec 27 '14 at 04:40
  • 3
    To save others time, as of June 2016, only Javascript Finite State Machine and machina.js have had commits in 2016, and Stately in 2015. – Edward M Smith Jun 23 '16 at 18:13
  • 2
    To update on the previous comment, as of September. 2020, XState is being actively maintained and from experience it is a very robust and well built library adhering to the [SCXML specification](https://www.w3.org/TR/scxml/). – Moritz Roessler Sep 14 '20 at 12:19
7

dataflo.ws

It's a JSON-based workflow engine. It features:

  • modular design
  • several useful built-in tasks (MongoDB, OAuth, RabbitMQ)
  • HTTP initiator with a router

Works on Node.js, in browsers (including IE9) and in PhoneGap.

GPLv3, code on GitHub: https://github.com/apla/dataflo.ws

katspaugh
  • 17,449
  • 11
  • 66
  • 103
  • 1
    Last release on march 2016 no issue tracker activity since 2013. Seems like another JS abandoned project. – Leo Nov 28 '17 at 20:29