Class: OpenWFE::NoOperationParticipant
- Inherits:
-
Object
- Object
- OpenWFE::NoOperationParticipant
- Includes:
- LocalParticipant
- Defined in:
- lib/openwfe/participants/participants.rb
Overview
The NoOperationParticipant immediately replies to the engine upon receiving a workitem.
Is used in testing. Could also be useful during the ‘development’ phase of a business process, as an empty placeholder.
Instance Attribute Summary
Attributes included from Contextual
Instance Method Summary collapse
-
#consume(workitem) ⇒ Object
Simply discards the incoming workitem.
Methods included from LocalParticipant
#call_block, #get_flow_expression, #reply_to_engine
Methods included from Contextual
#get_work_directory, #init_service, #lookup
Methods included from Logging
#ldebug, #ldebug_callstack, #lerror, #lfatal, #linfo, #llog, #lunknown, #lwarn
Methods included from OwfeServiceLocator
#get_engine, #get_error_journal, #get_expool, #get_expression_map, #get_expression_pool, #get_expression_storage, #get_expression_storages, #get_journal, #get_participant_map, #get_scheduler, #get_wfid_generator
Instance Method Details
#consume(workitem) ⇒ Object
Simply discards the incoming workitem
239 240 241 242 |
# File 'lib/openwfe/participants/participants.rb', line 239 def consume (workitem) reply_to_engine workitem end |