Class: Ruote::NoOpParticipant

Inherits:
Participant show all
Defined in:
lib/ruote/part/test_participants.rb

Overview

A participant that simply replies immediately to the engine.

For testing purposes, but could be useful when used in conjunction with 'listen'.

Instance Attribute Summary

Attributes included from LocalParticipant

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

Instance Method Summary collapse

Methods inherited from Participant

#on_cancel

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_workitemObject

No operation : simply replies immediately.


41
42
43
44
# File 'lib/ruote/part/test_participants.rb', line 41

def on_workitem

  reply
end