| Class | Ruote::Exp::FlowExpression |
| In: |
lib/ruote/exp/ro_attributes.rb
lib/ruote/exp/flowexpression.rb lib/ruote/exp/ro_variables.rb lib/ruote/exp/ro_persist.rb |
| Parent: | Object |
Reopening the FlowExpression class to add [un]persist methods.
| VV | = | %w[ val value ] |
| COMMON_ATT_KEYS | = | %w[ if unless forget timeout on_error on_cancel on_timeout ] |
| VAR_PREFIX_REGEX | = | /^(\/*)/ |
| context | [R] | |
| h | [R] |
Returns the value for attribute ‘key’, this value should be present in the array list ‘values’. If not, the default value is returned. By default, the default value is the first element of ‘values’.
Given something like
sequence do
participant 'alpha'
end
in the context of the participant expression
attribute_text()
will yield ‘alpha’.
Returns a Hash containing all attributes set for an expression with their values resolved.
Returns a fresh hash of all the variables visible from this expression.
This is used mainly when forgetting an expression.
The raw handling of messages passed to expressions (the fine handling is done in the cancel method).
Like compile_atts, but the keys are expanded as well.
Useful for things like
set "f:${v:field_name}" => "${v:that_variable}"
Persists and fetches the _rev identifier from the storage.
Only used by the worker when creating the expression.
prefix = ‘on’ => will lookup on, on_val, on_value, on_v, on_var, on_variable, on_f, on_fld, on_field…
Turns this FlowExpression instance into a Hash (well, just hands back the base hash behind it.
Called by consider_timeout (FlowExpression) and schedule_timeout (ParticipantExpression).
Returns the flow expression that owns a variable (or the one that should own it) and the var without its potential / prefixes.
Used by lookup_variable and set_variable to extract the prefix in a variable name