Class: OpenWFE::PrintParticipant
- Inherits:
-
Object
- Object
- OpenWFE::PrintParticipant
- Includes:
- LocalParticipant
- Defined in:
- lib/openwfe/participants/participants.rb
Overview
The PrintParticipant will just emit its name to the test tracer if any or to the stdout else. Used by some unit tests.
Instance Attribute Summary
Attributes included from Contextual
Instance Method Summary collapse
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
253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/openwfe/participants/participants.rb', line 253 def consume (workitem) tracer = @application_context['__tracer'] if tracer tracer << workitem.participant_name tracer << "\n" else puts workitem.participant_name end reply_to_engine(workitem) end |