Class Ruote::ExpressionMap
In: lib/ruote/svc/expression_map.rb
Parent: Object

Mapping from expression names (sequence, concurrence, …) to expression classes (Ruote::SequenceExpression, Ruote::ConcurrenceExpression, …)

Requiring this ruote/svc/expression_map.rb file will automatically load all the expressions in ruote/exp/fe_*.rb.

When the ExpressionMap is instantiated by the engine, it will look at the Ruote::Exp namespace and register as expression any constant in there whose name ends with "Expression", like "SequenceExpression" or "ParticipantExpression".

So adding expressions to ruote should be as simple as making sure the engine sees your classes under Ruote::Exp before it instantiates this expression map (so that the expression map will automatically register your expressions).

Methods

add   expression_class   new  

Public Class methods

Will load any expression in the Ruote::Exp:namespace and map

its names to its class.

Public Instance methods

Returns the expression class for the given expression name

Protected Instance methods

[Validate]