| Class | OpenWFE::Extras::ActiveStoreParticipant |
| In: |
lib/openwfe/extras/participants/activeparticipants.rb
|
| Parent: | ActiveParticipant |
An extension of ActiveParticipant. It has a ‘store_name’ and it makes sure to flag every workitem it ‘consumes’ with that name (in its ‘store_name’ column/field).
This is the participant used mainly in ‘densha’ for human users.
# File lib/openwfe/extras/participants/activeparticipants.rb, line 677
677: def initialize (store_name)
678:
679: super()
680: @store_name = store_name
681: end
This is the method called by the OpenWFEru engine to hand a workitem to this participant.
# File lib/openwfe/extras/participants/activeparticipants.rb, line 687
687: def consume (workitem)
688:
689: if compact_workitems
690: workitem.attributes["compact_workitems"] = true
691: end
692:
693: Workitem.from_owfe_workitem(workitem, @store_name)
694: end