Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
What is the proper way to handle exceptions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Danny Fullerton  
View profile  
 More options Jun 18 2012, 3:50 pm
From: Danny Fullerton <nort...@mantor.org>
Date: Mon, 18 Jun 2012 15:50:04 -0400
Local: Mon, Jun 18 2012 3:50 pm
Subject: Re: [ruote:3593] What is the proper way to handle exceptions
Hello,

You should find what you need in the participant, not the storage.

 http://ruote.rubyforge.org/implementing_participants.html#cancel

Regards,

--
Danny Fullerton, CISSP GCIH GHTQ
Founder
Mantor Organization

Sent from mobile


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ddeng  
View profile  
 More options Jun 18 2012, 4:20 pm
From: ddeng <dengtians...@gmail.com>
Date: Mon, 18 Jun 2012 13:20:28 -0700 (PDT)
Local: Mon, Jun 18 2012 4:20 pm
Subject: Re: [ruote:3593] What is the proper way to handle exceptions

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options Jun 18 2012, 6:28 pm
From: John Mettraux <jmettr...@gmail.com>
Date: Tue, 19 Jun 2012 07:28:01 +0900
Local: Mon, Jun 18 2012 6:28 pm
Subject: Re: [ruote:3599] What is the proper way to handle exceptions

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.

Best regards,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options Jun 18 2012, 6:59 pm
From: John Mettraux <jmettr...@gmail.com>
Date: Tue, 19 Jun 2012 07:59:49 +0900
Local: Mon, Jun 18 2012 6:59 pm
Subject: Re: [ruote:3594] What is the proper way to handle exceptions

Hello Deng (and Danny),

I recently did some work about propagating more easily errors happening in
remote participants to the engine/workers:

  https://github.com/jmettraux/ruote/commit/2e752ebb4d29c2621ca19e6cf8c...

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.

Best regards,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options Jun 19 2012, 11:04 am
From: John Mettraux <jmettr...@gmail.com>
Date: Wed, 20 Jun 2012 00:04:19 +0900
Local: Tues, Jun 19 2012 11:04 am
Subject: Re: [ruote:3594] What is the proper way to handle exceptions

On Tue, Jun 19, 2012 at 07:59:49AM +0900, John Mettraux wrote:

> I recently did some work about propagating more easily errors happening in
> remote participants to the engine/workers:

>   https://github.com/jmettraux/ruote/commit/2e752ebb4d29c2621ca19e6cf8c...

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

  https://github.com/jmettraux/ruote/commit/4bb2d9903b7405855e0369d63df...

Here is an example of its use, one that should map your use case:

  https://gist.github.com/2954664

I hope it helps, questions are welcome, best regards,

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ddeng  
View profile  
 More options Jun 19 2012, 2:07 pm
From: ddeng <dengtians...@gmail.com>
Date: Tue, 19 Jun 2012 11:07:56 -0700 (PDT)
Local: Tues, Jun 19 2012 2:07 pm
Subject: Re: [ruote:3594] What is the proper way to handle exceptions

John:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ddeng  
View profile  
 More options Jun 19 2012, 2:08 pm
From: ddeng <dengtians...@gmail.com>
Date: Tue, 19 Jun 2012 11:08:49 -0700 (PDT)
Local: Tues, Jun 19 2012 2:08 pm
Subject: Re: [ruote:3594] What is the proper way to handle exceptions

John:
That is exactly what I want, thank you for quick response. I am enjoying it
in my program :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »