Carl,
Lookup the workflow instance by wfid then call reply on your
participant with the workflow instance you looked up.
https://github.com/jmettraux/ruote/blob/master/lib/ruote/part/storage_participant.rb#L123
Hope this helps.
Cheers,
Sean
On Mar 11, 2011, at 4:32 PM, Carl Shimer wrote:
> Hi there,
>
> I am writing some prototype code using Ruote. I am trying to
> understand how to coordinate a workflow using some kind of participant
> ID.
>
> This is my scenario:
>
> 1) Create a worflow instance with engine.launch(...)
> 2) A participant task emails a user with a link to a form. embedded
> in that URL is an identifier that maps back to a form. Example:
> foo.com/survey/49/?wfid=abc. In this case I am using a custom
> Participant that doesn't return immediately to engine, e.g the consume
> method send email but does not call return_to_engine.
> 3) User fills out form.
> 4) web server records the form response and tells the workflow to
> continue.
>
> How do I do step 4? In other words, how do I tell the engine with a
> specific workflow ID that a specific participant should now complete?
> I see that I can lookup a workflow instance by the wfid, but I can't
> see how to invoke a specific participant to continue processing.
>
> If this description isn't clear enough let me know and I'll post some
> sample code.
>
> Thanks,
> Carl
>
> --
> 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
__________
Sean Johnson
[email protected]
--
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