Class: Ruote::Participant

Inherits:
Object
  • Object
show all
Includes:
LocalParticipant
Defined in:
lib/ruote/part/participant.rb

Overview

A simple stub class for participants.

Used mostly as in:

class MyParticipant < Ruote::Participant

  def on_workitem
    workitem.fields['tag'] = 'kilroy was here'
  end
end

Instance Attribute Summary

Attributes included from LocalParticipant

#context, #error, #fei, #flavour, #msg, #workitem

Instance Method Summary collapse

Methods included from LocalParticipant

#_accept?, #_dont_thread?, #_on_cancel, #_on_reply, #_on_workitem, #_rtimeout, #applied_workitem, #fexp, #is_cancelled?, #is_gone?, #lookup_variable, #participant_name, #re_dispatch, #reply_to_engine, #unschedule_re_dispatch

Methods included from ReceiverMixin

#fetch_flow_expression, #fetch_workitem, #flunk, #launch, #receive, #reply, #sign

Instance Method Details

#on_cancelObject

Empty default implementation.


46
47
# File 'lib/ruote/part/participant.rb', line 46

def on_cancel
end