Module: Proxy::Dynflow::Callback::PlanHelper

Defined in:
lib/smart_proxy_dynflow/callback.rb

Instance Method Summary collapse

Instance Method Details

#plan_with_callback(input) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/smart_proxy_dynflow/callback.rb', line 33

def plan_with_callback(input)
  input = input.dup
  callback = input.delete('callback')

  planned_action = plan_self(input)
  plan_action(Callback::Action, callback, planned_action.output) if callback
end