We're using Ruote for managing workflow between various participants,
but now I'm thinking about how to use it to implement a multi-step
form for one participant at a time.

Currently we have a form of around 10 steps filled in by an author.
Because there are no other participants involved, this happens outside
of the workflow. The steps are stored in the model in the field
"current_step", and 2 arrays (steps, and completed_steps). Once the
author completes the form the workflow is launched and sent out to
several participants. Now I'm thinking I want to use Ruote to manage
the steps for coauthors instead of attaching them to the model. With
Ruote I can easily store steps in workitem fields. If I used the
model, there would have to be a child step object for each coauthor.

So my question is: has anyone implemented a multi-step form with
Ruote? I want to display a checklist for each participant. The
checklist items should be marked completed once done. So my Rails
controller/views will need to somehow access the process branches.

For example:

        concurrent_iterator :on => '${f:coauthors}', :tag =>
'coauthor_forms', :to_var => 'v' do
          concurrence do
            participant 'coauthor-${v:v}', :task =>
'complete_information'
            participant 'coauthor-${v:v}', :task => 'submit_copyright'
            participant 'coauthor-${v:v}', :task =>
'submit_disclosure'
          end
        end

This is nearly good enough, but once a workitem is complete, there is
no "rewind". I also looked at the "iterator" expression, but since
those aren't executed in parallel, they will disappear from the views
once they are finished. Ideally, each item on the checklist could be
revisited until the final "submit".

-- 
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

Reply via email to