Say I have an expression tree like this:

      sequence :tag => 'submission' do
        participant 'author', :task => 'overview'
        participant 'author', :task => 'author_info'
        participant 'author', :task => 'upload_files'
        participant 'author', :task => 'gap_analysis'
        participant 'author', :task => 'responsibilities'
        participant 'author', :task => 'disclosure'
        participant 'author', :task => 'copyright'
        participant 'author', :task => 'fees'
        participant 'author', :task => 'review'
        participant 'author', :task => 'submit'
      end

I can use
engine.process(wfid).expressions[1].h.original_tree.last.count and see
that there are 10 expressions in the "submission" tag tree. What if I
want to find out how much progress an author has made within the
"submission" tree? So, for example, if the current task is
"upload_files", the author is on step 3 of 10.

I suppose I can put tags on each task (e.g. :tags => '1') but that
seems unnecessary. I guess the best approach would be to have the
workflow definition count the tasks and store it in a workitem field
and then compare the number of remaining tasks with this number.

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