Class: Dynflow::Action::Suspended

Inherits:
Object
  • Object
show all
Defined in:
lib/dynflow/action/suspended.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action) ⇒ Suspended

Returns a new instance of Suspended.



5
6
7
8
9
# File 'lib/dynflow/action/suspended.rb', line 5

def initialize(action)
  @world             = action.world
  @execution_plan_id = action.execution_plan_id
  @step_id           = action.run_step_id
end

Instance Attribute Details

#execution_plan_idObject (readonly)

Returns the value of attribute execution_plan_id.



3
4
5
# File 'lib/dynflow/action/suspended.rb', line 3

def execution_plan_id
  @execution_plan_id
end

#step_idObject (readonly)

Returns the value of attribute step_id.



3
4
5
# File 'lib/dynflow/action/suspended.rb', line 3

def step_id
  @step_id
end

Instance Method Details

#<<(event = nil) ⇒ Object



15
16
17
# File 'lib/dynflow/action/suspended.rb', line 15

def <<(event = nil)
  event event
end

#event(event, future = Future.new) ⇒ Object Also known as: ask



11
12
13
# File 'lib/dynflow/action/suspended.rb', line 11

def event(event, future = Future.new)
  @world.event execution_plan_id, step_id, event, future
end