Module: OpenWFE::HistoryMixin

Includes:
OwfeServiceLocator, ServiceMixin
Included in:
BaseHistory
Defined in:
lib/openwfe/expool/history.rb

Overview

A Mixin for history modules

Instance Attribute Summary

Attributes included from ServiceMixin

#service_name

Attributes included from Contextual

#application_context

Instance Method Summary collapse

Methods included from ServiceMixin

#stop

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

#log(event, *args) ⇒ Object

Raises:

  • (NotImplementedError)


64
65
66
67
# File 'lib/openwfe/expool/history.rb', line 64

def log (event, *args)
    raise NotImplementedError.new(
        "please provide an implementation of log(e, fei, wi)")
end

#service_init(service_name, application_context) ⇒ Object



55
56
57
58
59
60
61
62
# File 'lib/openwfe/expool/history.rb', line 55

def service_init (service_name, application_context)

    super

    get_expression_pool.add_observer(:all) do |event, *args|
        log(event, *args)
    end
end