Module: OpenWFE::OwfeServiceLocator
- Included in:
- CacheExpressionStorage, Engine, ErrorJournal, ExpressionPool, FlowExpression, HistoryMixin, InMemoryExpressionStorage, Journal, LocalParticipant, WorkItemListener, YamlFileExpressionStorage
- Defined in:
- lib/openwfe/rudefinitions.rb
Overview
A mixin for easy OpenWFE service lookup (assumes the presence of an application context instance var)
Instance Method Summary collapse
- #get_engine ⇒ Object
- #get_error_journal ⇒ Object
- #get_expool ⇒ Object
- #get_expression_map ⇒ Object
- #get_expression_pool ⇒ Object
- #get_expression_storage ⇒ Object
-
#get_expression_storages ⇒ Object
Returns all the expression storage in the application context (there is usually a cache and a persisted exp storage).
-
#get_journal ⇒ Object
Returns the ‘journal’ service (or nil if there is no journal service available).
- #get_participant_map ⇒ Object
- #get_scheduler ⇒ Object
- #get_wfid_generator ⇒ Object
Instance Method Details
#get_engine ⇒ Object
76 77 78 |
# File 'lib/openwfe/rudefinitions.rb', line 76 def get_engine @application_context[S_ENGINE] end |
#get_error_journal ⇒ Object
100 101 102 |
# File 'lib/openwfe/rudefinitions.rb', line 100 def get_error_journal @application_context[S_ERROR_JOURNAL] end |
#get_expool ⇒ Object
88 89 90 |
# File 'lib/openwfe/rudefinitions.rb', line 88 def get_expool @application_context[S_EXPRESSION_POOL] end |
#get_expression_map ⇒ Object
82 83 84 |
# File 'lib/openwfe/rudefinitions.rb', line 82 def get_expression_map @application_context[S_EXPRESSION_MAP] end |
#get_expression_pool ⇒ Object
91 92 93 |
# File 'lib/openwfe/rudefinitions.rb', line 91 def get_expression_pool @application_context[S_EXPRESSION_POOL] end |
#get_expression_storage ⇒ Object
94 95 96 |
# File 'lib/openwfe/rudefinitions.rb', line 94 def get_expression_storage @application_context[S_EXPRESSION_STORAGE] end |
#get_expression_storages ⇒ Object
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_journal ⇒ Object
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_map ⇒ Object
97 98 99 |
# File 'lib/openwfe/rudefinitions.rb', line 97 def get_participant_map @application_context[S_PARTICIPANT_MAP] end |
#get_scheduler ⇒ Object
79 80 81 |
# File 'lib/openwfe/rudefinitions.rb', line 79 def get_scheduler @application_context[S_SCHEDULER] end |
#get_wfid_generator ⇒ Object
85 86 87 |
# File 'lib/openwfe/rudefinitions.rb', line 85 def get_wfid_generator @application_context[S_WFID_GENERATOR] end |