Class Ruote::Exp::WaitExpression
In: lib/ruote/exp/fe_wait.rb
Parent: FlowExpression

Waits (sleeps) for a given period of time before resuming the flow.

  sequence do
    accounting :task => 'invoice'
    wait '30d' # 30 days
    accounting :task => 'check if customer paid'
  end

‘_sleep’ is also OK

  _sleep '7d10h' # 7 days and 10 hours

(the underscore prevents collision with Ruby‘s sleep method)

:for and :until

‘wait’ accepts as well :

  wait :for => '30d' # wait for 30 days
  wait :until => '2011/12/10 12:00:00' # any parseable date/time format

Methods

apply  

Public Instance methods

[Validate]