lib/ruote/engine.rb in ruote-2.1.6 vs lib/ruote/engine.rb in ruote-2.1.7
- old
+ new
@@ -317,9 +317,23 @@
#
def add_service (name, path_or_instance, classname=nil, opts=nil)
@context.add_service(name, path_or_instance, classname, opts)
end
+
+ # Sets a configuration option. Examples:
+ #
+ # # allow remote workflow definitions (for subprocesses or when launching
+ # # processes)
+ # @engine.configure('remote_definition_allowed', true)
+ #
+ # # allow ruby_eval
+ # @engine.configure('ruby_eval_allowed', true)
+ #
+ def configure (config_key, value)
+
+ @context[config_key] = value
+ end
end
#
# A wrapper class giving easy access to engine variables.
#