class Proxy::Dynflow::Action::Shareable

Public Instance Methods

plan(input) click to toggle source
# File lib/smart_proxy_dynflow/action/shareable.rb, line 5
def plan(input)
  input = input.dup
  callback = input.delete('callback')
  if callback
    input[:task_id] = callback['task_id']
  else
    input[:task_id] ||= SecureRandom.uuid
  end

  planned_action = plan_self(input)
  # code only applicable, when run with SmartProxyDynflowCore in place
  if on_proxy? && callback
    plan_action(Proxy::Dynflow::Callback::Action, callback, planned_action.output)
  end
end

Private Instance Methods

on_proxy?() click to toggle source
# File lib/smart_proxy_dynflow/action/shareable.rb, line 23
def on_proxy?
  true
end