Class: Proxy::Dynflow::TaskLauncher::Single

Inherits:
Abstract
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/task_launcher/single.rb

Instance Attribute Summary

Attributes inherited from Abstract

#callback, #options, #results, #world

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Proxy::Dynflow::TaskLauncher::Abstract

Class Method Details

.input_formatObject



4
5
6
# File 'lib/smart_proxy_dynflow/task_launcher/single.rb', line 4

def self.input_format
  { :action_class => "MyActionClass", :action_input => {} }
end

Instance Method Details

#launch!(input) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/smart_proxy_dynflow/task_launcher/single.rb', line 8

def launch!(input)
  triggered = trigger(options[:parent],
                      action_class(input),
                      with_callback(input.fetch('action_input', {})))
  @results = format_result(triggered)
  triggered
end