lib/ruote/exp/fe_iterator.rb in ruote-2.1.11 vs lib/ruote/exp/fe_iterator.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 @@ -124,15 +124,15 @@ # # where # # class Adjust # include Ruote::LocalParticipant - # def consume (workitem) + # def consume(workitem) # workitem.command = 'break' if workitem.fields['amount'] > 10_000 # reply_to_engine(workitem) # end - # def cancel (fei, flavour) + # def cancel(fei, flavour) # end # end # # A completely stupid example... The adjust participant will make the # loop break if the amount reaches 10_000 (euros?). @@ -195,10 +195,10 @@ move_on end protected - def move_on (workitem=h.applied_workitem) + def move_on(workitem=h.applied_workitem) h.position += 1 com, arg = get_command(workitem)