class Proxy::Dynflow::TaskLauncher::Single

Public Class Methods

input_format() click to toggle source
# File lib/smart_proxy_dynflow/task_launcher/single.rb, line 6
def self.input_format
  { :action_class => "MyActionClass", :action_input => {} }
end

Public Instance Methods

launch!(input, id: nil) click to toggle source
# File lib/smart_proxy_dynflow/task_launcher/single.rb, line 10
def launch!(input, id: nil)
  triggered = trigger(options[:parent],
                      action_class(input),
                      with_callback(input.fetch('action_input', {})),
                      id: id)
  @results = format_result(triggered)
  triggered
end