Greg found some code in FlowExpressionId where it looks like you're
trying to migrate from sub_wfid to subid. It appears that that's going
wrong somewhere. Our idea now is to pull out every workitem, delete
the sub_wfid if it exists, generate a subid if it doesn't, and update
the _id so it's consistent with the subid. Does that sound like a
workable plan to you?

On Fri, Jul 22, 2011 at 11:31 AM, Ian Smith-Heisters <[email protected]> wrote:
> We just upgraded to 2.2.0, and we're getting nil errors here when we
> call #reply: 
> https://github.com/jmettraux/ruote/blob/v2.2.0/lib/ruote/part/storage_participant.rb#L131
>
> `doc` is nil. Digging in, we found that the ids being generated and
> used for the call to #fetch don't match the ids in the workitem.
> Here's a workitem for which #reply works:
>
> --
> {"_id"=>"wi!0_1_0!8b3ce0349854160a94f4abcb2799ffeb!20110429-yuzesefu",
> "_rev"=>"1-8144c6ddd25217c417cfe63edeb5ba87",
> "participant_name"=>"writer", "wfid"=>"20110429-yuzesefu",
> "put_at"=>"2011-07-22 17:44:15.466697 UTC",
> "fields"=>{"writer_write_timeout"=>"7d", "review"=>"reject",
> "__timed_out__"=>[{"sub_wfid"=>"1443272066997", "wfid"=>"20110429-
> yuzesefu", "engine_id"=>"engine", "expid"=>"0_1_0"}, "2011-07-15
> 17:08:25.557435 UTC"], "user_id"=>"bcipolla",
> "required_attachments"=>[], "team"=>{"writer"=>"rosemarie_lennon",
> "copy_editor"=>"kc_ifeanyi", "publisher"=>"kc_ifeanyi",
> "audio_producer"=>"djh", "final_reviewer"=>"bcipolla",
> "content_editor"=>"bcipolla"}, "accepted"=>true,
> "params"=>{"timeout"=>"7d", "task"=>"write", "ref"=>"writer"},
> "dispatched_at"=>"2011-07-22 17:44:15.466617 UTC"},
> "type"=>"workitems", "fei"=>{"sub_wfid"=>nil, "wfid"=>"20110429-
> yuzesefu", "engine_id"=>"engine", "expid"=>"0_1_0",
> "subid"=>"8b3ce0349854160a94f4abcb2799ffeb"}}
> --
>
> ... and the id used for #fetch is "wi!0_1_0!
> 8b3ce0349854160a94f4abcb2799ffeb!20110429-yuzesefu".
>
>
> And here's a workitem for which #reply does not work:
>
> --
> {"_id"=>"wi!0_2_0_4_4!024f91718f930172f602dd75c6a94092!20110713-
> bepaberuja", "_rev"=>"1-db4ca4eb0badf6b6c60cff6bfa609c7a",
> "put_at"=>"2011-07-22 16:47:17.232287 UTC", "wfid"=>"20110713-
> bepaberuja", "participant_name"=>"final_reviewer",
> "fields"=>{"writer_write_timeout"=>"7d", "user_id"=>"kc_ifeanyi",
> "required_attachments"=>[], "accepted"=>true,
> "team"=>{"copy_editor"=>"kc_ifeanyi", "writer"=>"rosemarie_lennon",
> "publisher"=>"kc_ifeanyi", "final_reviewer"=>"bcipolla",
> "audio_producer"=>"djh", "content_editor"=>"bcipolla"},
> "approve_without_revisions"=>false, "params"=>{"task"=>"final review",
> "ref"=>"final_reviewer"}, "dispatched_at"=>"2011-07-22 16:47:17.231953
> UTC"}, "type"=>"workitems", "fei"=>{"wfid"=>"20110713-bepaberuja",
> "engine_id"=>"engine", "expid"=>"0_2_0_4_4",
> "subid"=>"0399945637068"}}
> --
>
> ... and the id used for #fetch is "wi!0_2_0_4_4!0399945637068!20110713-
> bepaberuja", while I would expect it to be "wi!0_2_0_4_4!
> 024f91718f930172f602dd75c6a94092!20110713-bepaberuja".
>
> The only idea we have to fix this is to go through all workitems and
> update their `_id` fields to match ids generated from their feis.
> However, it seems the problem is spreading, as though Ruote 2.2.0 is
> causing this problem as it touches the workitems. I'm concerned that
> things will continue to break even if we migrate the ids.
>
> Any ideas?
>
> Thanks,
> Ian
>

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