Skip to content
a ruby workflow engine
Ruby Shell
Latest commit fd1060f @jmettraux fail to address gh-93
mark that...
Failed to load latest commit information.
examples modernize barley infrastructure
lib Fixed issue in ProcessObserver when handling error_intercepted messag…
quickstart Fix link to quickstart.rb file
snips remove "require 'pp'" in issue template
.gitignore modernize barley infrastructure
CHANGELOG.txt let radial accept \r\n strings
CREDITS.txt Merge branch 'master' of
Gemfile.template Gemfile --> Gemfile.template
LICENSE.txt 2013 port readme to markdown
Rakefile bring back rdoc generation
TODO.txt use Struct in lieu of OpenStruct
ruote.gemspec upgrade to rufus-scheduler >= 3.0.0

Important Note

Active development on ruote ceased.

See scaling down ruote.

Do not involve ruote in your new project.

I still offer support on the ruote mailing list for existing projects, though.


Ruote is a Ruby workflow engine. It's thus a workflow definition interpreter. If you're enterprisey, you might say business process definition.

Instances of these definitions are meant to run for a long time, so Ruote is oriented towards persistency / modifiability instead of transience / performance like a regular interpreter is. A Ruote engine may run multiple instances of workflow definitions.

Persistent mostly means that you can stop Ruote and later restart it without losing processes. Modifiability means that you can modify a workflow instance on the fly.

Process definitions are mainly describing how workitems are routed to participants. These participants may represent worklists for users or group of users, pieces of code, ...


grab ruote

gem install yajl-ruby
gem install rufus-scheduler -v 2.0.24
gem install ruote

or better, use a Gemfile like this one:


require 'rubygems'
require 'ruote'
require 'ruote/storage/fs_storage'

# preparing the engine

engine ='ruote_work')))

# registering participants

engine.register_participant :alpha do |workitem|
  workitem.fields['message'] = { 'text' => 'hello !', 'author' => 'Alice' }

engine.register_participant :bravo do |workitem|
  puts "I received a message from #{workitem.fields['message']['author']}"

# defining a process

pdef = Ruote.process_definition :name => 'test' do
  sequence do
    participant :alpha
    participant :bravo

# launching, creating a process instance

wfid = engine.launch(pdef)

  # blocks current thread until our process instance terminates

# => 'I received a message from Alice'

test suite






Something went wrong with that request. Please try again.