On Wed, Mar 10, 2010 at 8:04 AM, Christian <[email protected]> wrote: > Hi Thorsten, Thank you for your detailed description, it helps a lot!
Hello Christian, next time could you please start a new thread ? Thanks in advance. If you really need to link to a previous conversation, use a link like : http://groups.google.com/group/openwferu-users/t/2c012627bdb5b1e7 > I am trying now your old configuration and the new ruote-on-rails in > parallel. But i have still some issues. > I already instaled the ruote-kit gem with sudo gem install ruote-kit. > > When I try to do some scaffolding I always get the following errors: > > (...) > > /ruote-on-rails/config/initializers/ruote_kit.rb:14: undefined method > `configure_catchall!' for RuoteKit:Module (NoMethodError) Strange, what does your ruote_kit.rb look like ? No changes from http://github.com/tosch/ruote-on-rails/blob/master/config/initializers/ruote_kit.rb ? > (...) > > I am using ruby enterprise edition on ubuntu 9.10. > I also have some question about the StorageParticipant. Am I right > with the assumption, that all the workitem manipulation should be done > "outside" any ruote participant? Please define "ruote participant", please define "outside". Well, could you please rephrase your question ? > When is the workitem created? When a process instance is launched, a workitem is created inside of the engine and travels throughout the instance. When a concurrence is reached, the workitem gets cloned, when the concurrence is over, the workitem gets re-united. When a workitem reaches a participant expression (something like 'participant :ref => "toto"') the engine will dispatch the workitem (at least a copy of it) to the "real participant". Usually that implies calling the "consume" method of a participant implementation. In the case of StorageParticipant, the workitem will appear in the list of workitems of the participant and you can "update" it or directly "reply" with it. (update and reply are two instance methods of StorageParticipant). > I did some initialization (engine.launch) and get the workitems out of > the participant with storageParticipant.all. They all seem to be > vompletely empty. Shouldn't they have at least a fei or something > alike stored in it? There should be a fei : ---8<--- p workitem.fei p workitem.fields p workitem.participant_name --->8--- You can set initial fields for the workitem when launching : ---8<--- RuoteKit.engine.launch( process_definition, 'project' => 'new pasta machine', 'budget_range' => 'low', 'customer_classes' => [ 'small businesses', 'medium businesses' ]) --->8--- The initial workitem in your newly launched process instance will have those 3 'project', 'budget_range' and 'customer_classes' fields. It's also OK to set fields later in the process : http://ruote.rubyforge.org/exp/set.html http://ruote.rubyforge.org/exp/restore.html (see "set_fields") > I hope my questions are not to stupid. Not at all :) I hope the current answers are helpful. Best regards, -- John Mettraux - http://jmettraux.wordpress.com -- 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
