Class: Proxy::Dynflow::TaskLauncher::Single
- 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
Constructor Details
This class inherits a constructor from Proxy::Dynflow::TaskLauncher::Abstract
Class Method Details
.input_format ⇒ Object
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([:parent], action_class(input), with_callback(input.fetch('action_input', {}))) @results = format_result(triggered) triggered end |