Module: OpenWFE::OwfeServiceLocator

Overview

A mixin for easy OpenWFE service lookup (assumes the presence of an application context instance var)

Instance Method Summary collapse

Instance Method Details

#get_engineObject



76
77
78
# File 'lib/openwfe/rudefinitions.rb', line 76

def get_engine
    @application_context[S_ENGINE]
end

#get_error_journalObject



100
101
102
# File 'lib/openwfe/rudefinitions.rb', line 100

def get_error_journal
    @application_context[S_ERROR_JOURNAL]
end

#get_expoolObject



88
89
90
# File 'lib/openwfe/rudefinitions.rb', line 88

def get_expool
    @application_context[S_EXPRESSION_POOL]
end

#get_expression_mapObject



82
83
84
# File 'lib/openwfe/rudefinitions.rb', line 82

def get_expression_map
    @application_context[S_EXPRESSION_MAP]
end

#get_expression_poolObject



91
92
93
# File 'lib/openwfe/rudefinitions.rb', line 91

def get_expression_pool
    @application_context[S_EXPRESSION_POOL]
end

#get_expression_storageObject



94
95
96
# File 'lib/openwfe/rudefinitions.rb', line 94

def get_expression_storage
    @application_context[S_EXPRESSION_STORAGE]
end

#get_expression_storagesObject

Returns all the expression storage in the application context (there is usually a cache and a persisted exp storage).



116
117
118
119
120
121
122
# File 'lib/openwfe/rudefinitions.rb', line 116

def get_expression_storages

    @application_context.inject([]) do |r, (k, v)|
        r << v if OpenWFE::starts_with(k.to_s, S_EXPRESSION_STORAGE)
        r
    end
end

#get_journalObject

Returns the ‘journal’ service (or nil if there is no journal service available).



108
109
110
# File 'lib/openwfe/rudefinitions.rb', line 108

def get_journal
    @application_context['journal']
end

#get_participant_mapObject



97
98
99
# File 'lib/openwfe/rudefinitions.rb', line 97

def get_participant_map
    @application_context[S_PARTICIPANT_MAP]
end

#get_schedulerObject



79
80
81
# File 'lib/openwfe/rudefinitions.rb', line 79

def get_scheduler
    @application_context[S_SCHEDULER]
end

#get_wfid_generatorObject



85
86
87
# File 'lib/openwfe/rudefinitions.rb', line 85

def get_wfid_generator
    @application_context[S_WFID_GENERATOR]
end