class Dynflow::Action::Suspended

Attributes

execution_plan_id[R]
step_id[R]

Public Class Methods

new(action) click to toggle source
# File lib/dynflow/action/suspended.rb, line 6
def initialize(action)
  @world             = action.world
  @execution_plan_id = action.execution_plan_id
  @step_id           = action.run_step_id
end

Public Instance Methods

<<(event = nil) click to toggle source
# File lib/dynflow/action/suspended.rb, line 22
def <<(event = nil)
  event event
end
ask(event, sent = Concurrent::Promises.resolvable_future)
Alias for: event
event(event, sent = Concurrent::Promises.resolvable_future) click to toggle source
# File lib/dynflow/action/suspended.rb, line 16
def event(event, sent = Concurrent::Promises.resolvable_future)
  # TODO: deprecate 2 levels backtrace (to know it's called from clock or internaly)
  # remove lib/dynflow/clock.rb ClockReference#ping branch condition on removal.
  plan_event(event, nil, sent)
end
Also aliased as: ask
plan_event(event, time, sent = Concurrent::Promises.resolvable_future) click to toggle source
# File lib/dynflow/action/suspended.rb, line 12
def plan_event(event, time, sent = Concurrent::Promises.resolvable_future)
  @world.plan_event(execution_plan_id, step_id, event, time, sent)
end