Methods

Class/Module Index [+]

Quicksearch

Ruote::Exp::SequenceExpression

The plain 'sequence' expression.

sequence do
  participant 'alpha'
  participant 'bravo'
  participant 'charly'
end

Public Instance Methods

apply() click to toggle source
# File lib/ruote/exp/fe_sequence.rb, line 41
def apply

  reply(h.applied_workitem)
end
reply(workitem) click to toggle source
# File lib/ruote/exp/fe_sequence.rb, line 46
def reply (workitem)

  position = workitem['fei'] == h.fei ?
    0 :
    Ruote::FlowExpressionId.new(workitem['fei']).child_id + 1

  if position < tree_children.size
    apply_child(position, workitem)
  else
    reply_to_parent(workitem)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.