Class: Proxy::Dynflow::Action::Batch
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- Proxy::Dynflow::Action::Batch
- Includes:
- Dynflow::Action::WithSubPlans
- Defined in:
- lib/smart_proxy_dynflow/action/batch.rb
Direct Known Subclasses
Instance Method Summary collapse
- #create_sub_plans ⇒ Object
- #notify_on_finish(_plans) ⇒ Object
-
#plan(launcher, input_hash) ⇒ Object
{ execution_plan_uuid => { :action_class => Klass, :input => input } }.
- #rescue_strategy ⇒ Object
Instance Method Details
#create_sub_plans ⇒ Object
13 14 15 16 17 |
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 13 def create_sub_plans Proxy::Dynflow::TaskLauncher::Abstract .new_from_hash(world, input[:launcher]) .launch_children(self, input[:input_hash]) end |
#notify_on_finish(_plans) ⇒ Object
23 24 25 |
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 23 def notify_on_finish(_plans) # Do nothing end |
#plan(launcher, input_hash) ⇒ Object
{ execution_plan_uuid => { :action_class => Klass, :input => input } }
8 9 10 11 |
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 8 def plan(launcher, input_hash) plan_self :input_hash => input_hash, :launcher => launcher.to_hash end |