about processes and engines

engine persistence to db for OpenWFEru

I just finished integrating Tomaso Tosolini’s work. He contributed a DbExpressionStorage, a DbErrorJournal and the CachedDbPersistedEngine that leverages them.

require ‘rubygems’
gem ‘activerecord’
require ‘active_record’
require ‘openwfe/def’
require ‘openwfe/extras/engine/db_persisted_engine’

:adapter => “mysql”,
:database => “test”,
:encoding => “utf8”)

$engine =

class MyProcessDefinition < OpenWFE::ProcessDefinition sequence do participant "user_alice" participant "user_bob" end end $engine.register_participant "user_.*" do |workitem| puts( "participant '#{workitem.participant_name}' "+ "received the message '#{workitem.message}'.") end li = MyProcessDefinition li.message = "hello !" $engine.launch li $engine.join [/sourcecode] Nice addition to the upcoming OpenWFEru 0.9.16.

Thanks Tomaso !

Written by John Mettraux

October 29, 2007 at 2:21 am

Posted in bpms, openwferu, ruby, workflow

%d bloggers like this: