On Wednesday, September 18, 2013 6:25:12 PM UTC-7, John Mettraux wrote:
>
>
> On Wed, Sep 18, 2013 at 02:03:01PM -0700, ypz wrote: 
> > 
> > Hi, 
>
> Hello and welcome to ruote's mailing list. 
>
>
Thanks
 

>
> > I am trying to figure out how to interact with a running process from 
> > another process. After going through this mailing list,  my 
> understanding 
> > is that I should use a StorageParticipant to manipulate the workitem of 
> the 
> > running process. 
>
> If interacting means "process A asks process B about its opinion" then 
> yes. 
>
> "interacting" could also mean "process B terminates process A" or things 
> like 
> this. 
>
> In my current use case, the individual step may fail in such a way that 
only a human administrator can fix it, so I need a script to allow 
administrator to tell the running process that "I fixed the problem, it's 
OK to proceed to next step in the workflow".


> > 
> > Did I miss something important and obvious 
>
> Ack.rb asks to the storage: "any workitem for this workflow", storage 
> replies: "no, no workitems". Looking at run_pdef.rb, one can see that 
> "wait_for_admin_ack" is not a storage participant. It does not place the 
> workitem in the storage. 
>
> Here is a rewrite of your gist (using bundler): 
>
>   https://gist.github.com/jmettraux/6617970 
>
> Like your original gist it keeps placing a workitem for the admin until 
> the 
> admin acknowledges. 
>

That helped, thanks a lot !
 

>  
>
You are not forced to use a storage participant, anything that lets process 
> B 
> looks at a workitem from process A is OK. 
>
> Storage participant is convenient. 


What are other ways to look at/access a workitem of a running process ? 
 Any examples?

So far, all my custom participants extends Ruote::Participant.  I am not 
sure when should I use Ruote::StorageParticipant.  Some general guidelines 
would help.

Take care,

Ypz

>  
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to