2012/7/31 jordi <[email protected]>: > > Hi, > > I am trying to run a worker on its own process. > I have a sinatra app where I am doing this: > RuoteKit.engine = Ruote::Engine.new( > Ruote::Sequel::Storage.new(DATABASE)) > > > I then register the participants and workflows in this engine. > > On the other hand I have a Rake task like this: > RuoteKit.run_worker Ruote::Sequel::Storage.new(DATABASE) > > > DATABASE is correct and the same constant (the rake file require the other > file). > > When I run the app and in another terminal I run the rake task, I can start > a workflow and I get its id, but when I call process on this id I get this > error every time ( in status.errors message) : > NameError: uninitialized constant LowerCaseString > > LowerCaseString is the name of the first participant of my workflow. > > > On the other hand, if I call engine.participant_list on the Sinatra app , > even after this error, I get: > /^lower_case_string$/ ==> LowerCaseString {} > and all my others participants. > > When I run the worker in the same process it seems I do not have this > problem. > Any ideas of what I am doing wrong?
Did you require the file that supplies LowerCaseString? Kind regards, Hartog. -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
