On Thu, Aug 25, 2011 at 06:14:01AM -0700, R Law wrote:
>
> What I mean is there is more than one co-author who needs to submit
> forms. There is a large concurrent workflow happening while the co-
> authors may be submitting their forms. In other words:
>
> 1) Author submits a paper.
> 2) Co-authors begin submitting forms (may be concurrent with the
> following steps).
> 3) Paper goes through review and revision processes.
> 4) Final decision is reached.
> 5) If paper is accepted for publication, the co-authors' forms are now
> due.
> 6) Paper is published.
>
> It seems to be most like your first example:
> ---8<---
> concurrence :count => 1 do
>   concurrent_iterator :on_f => '${f:coauthors}' do
>     # ... iterations ...
>   end
>   sequence :lose => true do
>     # ... something else ...
>   end
> end
> --->8---
> > The "lost sequence" will never reply to the parent concurrence. Since this 
> > parent concurrence has a count of 1, it will be terminated as soon at the 
> > concurrent_iterator is done.
>
> I don't want the sequence to be lost. The sequence is the main process
> but the concurrent_iterator may be lost (in the case the paper is
> rejected). If the paper is accepted, then the concurrent_iterator must
> be completed.

Hello Reed,

maybe this variant then:

---8<---
concurrence do
  concurrent_iterator :on_f => '${f:coauthors}', :tag => 'coauthors' do
    # ... iterations ...
  end
  sequence do
    # review and revision process
    # ...
    cancel 'coauthors', :if => '${paper_rejected}'
  end
end
--->8---

When the sequence reaches its last step, 'cancel coauhtors' is triggered if the 
paper is rejected. The sequence and the concurrent_iterator will then both 
terminate and reply to the concurrence which will terminate.

If the "cancel coauthors" is not triggered, the sequence will terminate and 
will wait on the concurrent_iterator to terminate.

I hope it's what you need.


Best regards,

--
John Mettraux - http://lambda.io/processi

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