Hello, I'm reading Ruote source code and there's a specific action I can't really understand how it is supposed to work. The method is Ruote::StorageParticipant#reply recently deprecated in favor of #proceed<https://github.com/jmettraux/ruote/commit/440dc90d4b88ee8ba4de5340b5c7de2f8c34dd75> .
Here's the code fragment I'm talking about. https://github.com/jmettraux/ruote/blob/a5b395f18f8798ca6b122559b680eac476f6fb6d/lib/ruote/part/storage_participant.rb#L123-135 The method is supposed to take a workitem as argument and remove the associated document from the storage. The line that confuses me is storage#method because I can't understand what is it supposed to return. https://github.com/jmettraux/ruote/blob/a5b395f18f8798ca6b122559b680eac476f6fb6d/lib/ruote/part/storage_participant.rb#L127 If it returns true, it seems to mean "the record was not there", then Ruote will raise an error. If it returns something different that nil (for example?), then it seems the action creates a recursion by calling itself again. Why? When does the recursion is supposed to end? Thanks, -- Simone -- 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
