Thanks again for your answer. Actually, it's me who should be apologizing for taking up so much of YOUR time :) Your suggestions are always useful :)
On Wed, Nov 7, 2012 at 1:45 PM, John Mettraux <[email protected]> wrote: > ---8<--- > Ruote.process_definition :name => 'bm_form_multi', :revision => '0.1' do > cursor do > wait_for_edit > human_action > wait_for_save > rewind :if => 'xyz...' > end > end # process_definition > --->8--- > > > ? It sounds possible from your description. Aggressively trying to simplify > the thing. > > Human action would be terminated upon entering wait_for_save... > We've had problems with that type of thing in our front-end, so that's why we're trying to do away with it. The idea is that human_action should only terminate when the user closes the form, not when saving. We actually have a couple more actions the user can take (locking a record and other, business-specific actions > > > > Any other ideas? > > Like I said in my previous email, I think a unique participant for the step > would be valuable... > Well, more like a pair participant/receiver. > > ---8<--- > class AbstraCC::XmppFormParticipant < Ruote::Participant > def on_workitem > XMPP.publish(encode_workitem(workitem)) > # do not reply to ruote, > # answer will come back via the HttpReceiver > end > end > > $ruote.register_participant 'xmpp_form', AbstraCC::XmppFormParticipant > > # ... > > class AbstraCC::HttpReceiver < Ruote::Receiver > def receive(http_request) > super(decode_workitem(http_request) > end > end > > $http_receiver = AbstraCC::HttpReceiver.new($ruote) > > # ... > > require 'sinatra' > > post '/workitems' do > > $http_receiver.receive(request) > > [ 200, {}, 'ok' ] > end > --->8--- > > A single participant, a single fei. > We actually have something like this in the human_action participant (quite more complex, it also deals with things like authorization and authentication, assigning workitems to groups instead of just users, and so on). The thing is, we have different actions that the user can take while the human_action is still active (i.e. the form is open) so that's how we came upon the idea of the concurrence. Much food for thought here. Again, thank you for your time and sorry for taking up so much of it :) -- 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
