| Module | OpenWFE::OwfeServiceLocator |
| In: |
lib/openwfe/rudefinitions.rb
|
A mixin for easy OpenWFE service lookup (assumes the presence of an application context instance var)
# File lib/openwfe/rudefinitions.rb, line 76
76: def get_engine
77: @application_context[S_ENGINE]
78: end
# File lib/openwfe/rudefinitions.rb, line 100
100: def get_error_journal
101: @application_context[S_ERROR_JOURNAL]
102: end
# File lib/openwfe/rudefinitions.rb, line 88
88: def get_expool
89: @application_context[S_EXPRESSION_POOL]
90: end
# File lib/openwfe/rudefinitions.rb, line 82
82: def get_expression_map
83: @application_context[S_EXPRESSION_MAP]
84: end
# File lib/openwfe/rudefinitions.rb, line 91
91: def get_expression_pool
92: @application_context[S_EXPRESSION_POOL]
93: end
# File lib/openwfe/rudefinitions.rb, line 94
94: def get_expression_storage
95: @application_context[S_EXPRESSION_STORAGE]
96: end
Returns all the expression storage in the application context (there is usually a cache and a persisted exp storage).
# File lib/openwfe/rudefinitions.rb, line 116
116: def get_expression_storages
117:
118: @application_context.inject([]) do |r, (k, v)|
119: r << v if OpenWFE::starts_with(k.to_s, S_EXPRESSION_STORAGE)
120: r
121: end
122: end
Returns the ‘journal’ service (or nil if there is no journal service available).
# File lib/openwfe/rudefinitions.rb, line 108
108: def get_journal
109: @application_context['journal']
110: end
# File lib/openwfe/rudefinitions.rb, line 97
97: def get_participant_map
98: @application_context[S_PARTICIPANT_MAP]
99: end
# File lib/openwfe/rudefinitions.rb, line 79
79: def get_scheduler
80: @application_context[S_SCHEDULER]
81: end