Methods

Class/Module Index [+]

Quicksearch

Ruote::Exp::UndoExpression

Undoes (cancels) another expression referred by its tag.

pdef = Ruote.process_definition do
  concurrence do
    alpha :tag => 'kilroy'
    undo :ref => 'kilroy'
  end
end

This example is rather tiny, but it shows a process branch (undo) cancelling another (alpha).

cancel

This expression is aliased to 'cancel'

cancel :ref => 'invoicing_stage'

Public Instance Methods

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

  ref = attribute(:ref) || attribute_text
  tag = ref ? lookup_variable(ref) : nil

  @context.storage.put_msg('cancel', 'fei' => tag)

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

  # never called
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.