lib/openwfe/expressions/fe_command.rb in openwferu-0.9.13 vs lib/openwfe/expressions/fe_command.rb in openwferu-0.9.14

- old
+ new

@@ -36,11 +36,10 @@ # # John Mettraux at openwfe.org # require 'openwfe/expressions/condition' -#require 'openwfe/expressions/flowexpression' module OpenWFE # @@ -190,9 +189,23 @@ # go_to_shop # check_prices # _break :if => "${price} > ${f:current_cash}" # buy_stuff # end + # + # The 'rif' attribute may be used instead of the 'if' attribute. Its value + # is some ruby code that, when evaluating to true will let the command + # be executed. + # + # _skip 2, :rif => "workitem.customers.size % 2 == 0" + # # + # # skips if the nb of customers is pair + # + # Note that the 'rif' attribute will work only if the + # <tt>:ruby_eval_allowed</tt> parameter is set to true in the engine's + # application context. + # + # engine.application_context[:ruby_eval_allowed] = true # class CursorCommandExpression < FlowExpression include CommandConstants include ConditionMixin