On Wed, Dec 12, 2012 at 09:25:48AM -0800, Iuri G. wrote:
>
> (...)
>
> My initial though was to stick that info onto workitem fields and update it
> periodically while working on that workitem, but i got those errors. maybe
> my approach is wrong?

Hello Iuri,

would that help?

  
https://github.com/jmettraux/ruote/commit/33a407f04711de0b9f60edbec04875c2b15e2d2b

The update method has a return value:

  - nil means success
  - true means workitem is gone
  - workitem means "this is the current version, your version is out of date"

(see the rdoc of the method)

so I added a do_update method to manage the automatic update for you. Please
look at the test.

The storage participant is meant for placing workitems in the storage and let
other actors (not the participant itself) deal with them, hence it's not
adapted to your usage, though do_update can help.


If you have any other question, please ask,

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

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

Reply via email to