lib/openwfe/rudefinitions.rb in openwferu-0.9.10.653 vs lib/openwfe/rudefinitions.rb in openwferu-0.9.11
- old
+ new
@@ -88,28 +88,36 @@
# (assumes the presence of an application context instance var)
#
module OwfeServiceLocator
def get_engine
- return @application_context[S_ENGINE]
+ @application_context[S_ENGINE]
end
def get_scheduler
- return @application_context[S_SCHEDULER]
+ @application_context[S_SCHEDULER]
end
def get_expression_map
- return @application_context[S_EXPRESSION_MAP]
+ @application_context[S_EXPRESSION_MAP]
end
def get_wfid_generator
- return @application_context[S_WFID_GENERATOR]
+ @application_context[S_WFID_GENERATOR]
end
def get_expression_pool
- return @application_context[S_EXPRESSION_POOL]
+ @application_context[S_EXPRESSION_POOL]
end
def get_expression_storage
- return @application_context[S_EXPRESSION_STORAGE]
+ @application_context[S_EXPRESSION_STORAGE]
end
def get_participant_map
- return @application_context[S_PARTICIPANT_MAP]
+ @application_context[S_PARTICIPANT_MAP]
+ end
+
+ #
+ # Returns the 'journal' service (or nil if there is no
+ # journal service available).
+ #
+ def get_journal
+ @application_context['journal']
end
#
# Returns all the expression storage in the application context
# (there is usually a cache and a persisted exp storage).