On Fri, Jun 14, 2013 at 09:22:32AM -0700, Doug Bryant wrote:
> (nothing)

Hello Doug,

> We have a case where some fields on a running ruote process need to be
> updated.  The use case is simply applying new or updated values to
> specified workitem fields - no need to advance or alter the workflow
> further than that.
>
> The StorageParticipant#update(workitem)  looked like it would do exactly
> what was needed, but it results in an object being nil error.
>
> I was able to reproduce the error in a test which follows the basic steps
> of how I was trying to apply an update.
>
> Error:
>  1) Error:
> test_update_workitem_alt(FtStorageParticipantTest):
> NoMethodError: undefined method `[]' for nil:NilClass
>     /Users/doug/src/ruote/lib/ruote/storage/hash_storage.rb:98:in `block in
> get'
>
> (...)

OK, so I have hopefully enhanced the warning on #workitems:

  https://github.com/jmettraux/ruote/commit/8115610755d


Here is your test reworked to use the storage participant in the way it was
intended to be used:

  https://gist.github.com/jmettraux/5785678

I will investigate the first error you encountered even if it resulted from a
storage participant misuse. Since #workitems returns the workitems as they
were right when the participant got applied (before dispatchment), they're
probably still flagged with the fei of the parent expression.


Best regards, have a nice week-end,

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