Class: OpenWFE::HashParticipant

Inherits:
Hash
  • Object
show all
Includes:
StoreParticipantMixin
Defined in:
lib/openwfe/worklist/storeparticipant.rb

Overview

The simplest workitem store possible, gathers the workitem in a hash (this class is an extension of Hash).

Some examples :

engine.register_participant(:alice, OpenWFE::HashParticipant)
engine.register_participant("bob", OpenWFE::HashParticipant)

hp = engine.register_participant(:charly, OpenWFE::HashParticipant)
#...
puts "there are currently #{hp.size} workitems for Charly"

hp = OpenWFE::HashParticipant.new
engine.register_participant("debbie", hp)

Instance Attribute Summary

Attributes included from StoreParticipantMixin

#store_name

Attributes included from Contextual

#application_context

Method Summary

Methods included from StoreParticipantMixin

#cancel, #consume, #delegate, #delete, #first_workitem, #forward, #list_workitems, #save

Methods included from LocalParticipant

#call_block, #get_flow_expression, #reply_to_engine

Methods included from Participant

#consume

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