lib/ruote/exp/fe_cron.rb in ruote-2.1.11 vs lib/ruote/exp/fe_cron.rb in ruote-2.2.0

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2005-2010, John Mettraux, jmettraux@gmail.com +# Copyright (c) 2005-2011, John Mettraux, jmettraux@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -97,21 +97,21 @@ h.job_id = nil reschedule end - def reply (workitem) + def reply(workitem) launch_sub( "#{h.fei['expid']}_0", tree_children[0], :workitem => Ruote.fulldup(h.applied_workitem), :forget => true) reschedule end - def cancel (flavour) + def cancel(flavour) @context.storage.delete_schedule(h.job_id) reply_to_parent(h.applied_workitem) end