| 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'
The ‘equals’ expression accepts those attributes :
and
With a bit of luck, they make sense on their own.
| OTHER_REGEX | = | /^other\_(.+)$/ |