ddeng <dengtians...@gmail.com> wrote: >Hi, > I have a workflow like: >sequence :on_cancel=>:report_error do > alice > bob >end
>I want report_error to be called if alice or bob fails to do the job. Both >alice and bob are storage_participant. I only found >StorageParticipant#proceed method, but is there a cancel method for the >workitem? >So I can have something like: >workitem.cancel if not alice.do(workitem)
>Thanks in advance
>-- >you received this message because you are subscribed to the "ruote users" group. >to post : send email to openwferu-users@googlegroups.com >to unsubscribe : send email to openwferu-users+unsubscribe@googlegroups.com >more options : http://groups.google.com/group/openwferu-users?hl=en
Thanks Danny, I also found there is a cancel method in Dashboard. But when I cancel a wokitem for alice, bob will still get the job. So I am wondering.....What is the difference between cancel and proceed?
> >Hi, > > I have a workflow like: > >sequence :on_cancel=>:report_error do > > alice > > bob > >end
> >I want report_error to be called if alice or bob fails to do the job. > Both > >alice and bob are storage_participant. I only found > >StorageParticipant#proceed method, but is there a cancel method for the > >workitem? > >So I can have something like: > >workitem.cancel if not alice.do(workitem)
> >Thanks in advance
> >-- > >you received this message because you are subscribed to the "ruote users" > group. > >to post : send email to openwferu-users@googlegroups.com > >to unsubscribe : send email to > openwferu-users+unsubscribe@googlegroups.com > >more options : http://groups.google.com/group/openwferu-users?hl=en
On Mon, Jun 18, 2012 at 01:20:28PM -0700, ddeng wrote:
> I also found there is a cancel method in Dashboard. But when I cancel a
> wokitem for alice, bob will still get the job.
Yes, that's right. And the on_cancel you placed on the parent 'sequence' will
not trigger since the expression that got cancelled is the alice participant
expression, not the sequence expression.
> So I am wondering.....What
> is the difference between cancel and proceed?
Dashboard#cancel(wfid_or_fei)
cancels a whole process instance (wfid) or only a branch of a process
instance (fei).
StorageParticipant#proceed(workitem)
will "unstore" the workitem and reply with it (and its potentially updated
fields) to the participant expression that emitted it. That usually makes the
flow resume.
> > I have a workflow like:
> >sequence :on_cancel=>:report_error do
> > alice
> > bob
> >end
> >I want report_error to be called if alice or bob fails to do the job. Both
> >alice and bob are storage_participant. I only found
> >StorageParticipant#proceed method, but is there a cancel method for the
> >workitem?
> >So I can have something like:
> >workitem.cancel if not alice.do(workitem)
On Mon, Jun 18, 2012 at 03:50:04PM -0400, Danny Fullerton wrote:
> You should find what you need in the participant, not the storage.
I'll cook up something in the Receiver/StorageParticipant that leverages that.
I hope to be done with this work by tomorrow, I'll notify you about it in this
mailing list thread. Stay tuned.
> I'll cook up something in the Receiver/StorageParticipant that leverages that.
> I hope to be done with this work by tomorrow, I'll notify you about it in this
> mailing list thread. Stay tuned.
Hello,
I've just added a #flunk method to the storage participant:
> > I'll cook up something in the Receiver/StorageParticipant that leverages > that. > > I hope to be done with this work by tomorrow, I'll notify you about it > in this > > mailing list thread. Stay tuned.
> Hello,
> I've just added a #flunk method to the storage participant:
> > I'll cook up something in the Receiver/StorageParticipant that leverages > that. > > I hope to be done with this work by tomorrow, I'll notify you about it > in this > > mailing list thread. Stay tuned.
> Hello,
> I've just added a #flunk method to the storage participant: