John, thank you for your helpful reply.
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.
Regards,
Reed
On Aug 24, 5:43 pm, John Mettraux <[email protected]> wrote:
> On Wed, Aug 24, 2011 at 02:19:57PM -0700, R Law wrote:
>
> > I have several authors who need to submit forms defined like so:
>
> > concurrent_iterator :times => '${f:coauthors}', :tag => 'coauthor_forms',
> > :over_if => '${f:reject}' do
> > participant 'co-author-${v:i}', :task => 'submit_forms'
> > end
>
> > There are a lot of other steps that should happen before these
> > workitems are needed. So what I want to do is something like this:
>
> > concurrent_iterator :times => '${f:coauthors}', :tag => 'coauthor_forms'
> > do
> > participant 'co-author-${v:i}', :task => 'submit_forms'
> > sequence do # From this step on we don't need iteration, just
> > concurrence
> > participant 'corresponding-author', :task => 'submit'
> > ...
> > end
> > end
>
> > Is it possible to do other tasks concurrently while waiting for the
> > concurrent_iterator workitems?
>
> Hello Reed,
>
> I'm not sure if I understand your requirements correctly, but I will try to
> answer with multiple variants.
>
> > Is it possible to do other tasks concurrently while waiting for the
> > concurrent_iterator workitems?
>
> Literally, yes.
>
> ---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.
>
> > There are a lot of other steps that should happen before these
> > workitems are needed.
>
> Would it mean that you need to do stuff before calling the
> concurrent_iterator ? "before" seems to imply you want a "sequence".
>
> ---8<---
> sequence do
>
> # other steps that should happen before these workitems are needed...
>
> concurrent_iterator :on_f => '${f:coauthors}' do
> participant 'co-author-${v:i}', :task => 'submit_forms'
> end
> end
> --->8---
>
> or you want something like
>
> ---8<---
> concurrent_iterator :on_f => '${f:coauthors}' do
> concurrence do
> participant 'co-author-${v:i}', :task => 'submit_forms'
> sequence do
> # some other work...
> end
> end
> end
> --->8---
>
> Well, maybe it's easier if you express in words what you are trying to
> achieve and I will try to come up with a solution.
>
> 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