Class Ruote::Exp::ErrorExpression
In: lib/ruote/exp/fe_error.rb
Parent: FlowExpression

Triggers an error directly from the process definition.

  Ruote.process_definition :name => 'log1' do
    sequence do
      perform_inventory
      error 'inventory issue', :if => '${f:level} < 1'
      order_new_stuff
      store_new_stuff
    end
  end

Replaying the error will ‘unlock’ the process.

Methods

apply   reply  

Public Instance methods

[Validate]