Class Ruote::Exp::EqualsExpression
In: lib/ruote/exp/fe_equals.rb
Parent: FlowExpression

This expression fell out of favour a long ago. At first it was used with the ‘if’ expression :

  _if do
    equals :field_value => 'customer', :other_value => 'British Petroleum'
    participant :ref => 'Allister'
  end

but lately, the :test attribute of the ‘if’ expression is used :

  _if :test => '${f:customer} == British Petroleum' do
    participant :ref => 'Allister'
  end

In some cases, the ‘if’ expression vanishes and the :if attribute shared by all expressions is used :

  participant :ref => 'Al', :if => '${f:customer} == British Petroleum'

attributes

The ‘equals’ expression accepts those attributes :

  • :value
  • :field_value
  • :variable_value
  • :val
  • :field_val
  • :variable_val

and

  • :other_value
  • :other_field_value
  • :other_variable_value
  • :other_val
  • :other_field_val
  • :other_variable_val

With a bit of luck, they make sense on their own.

Methods

Constants

OTHER_REGEX = /^other\_(.+)$/

Public Instance methods

Protected Instance methods

[Validate]