Exception: Shikibu::WaitForTimerSignal

Inherits:
Error
  • Object
show all
Defined in:
lib/shikibu/errors.rb

Overview

Internal signal for workflow suspension (waiting for timer)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timer_id:, expires_at:, activity_id: nil) ⇒ WaitForTimerSignal

Returns a new instance of WaitForTimerSignal.



107
108
109
110
111
112
# File 'lib/shikibu/errors.rb', line 107

def initialize(timer_id:, expires_at:, activity_id: nil)
  @timer_id = timer_id
  @expires_at = expires_at
  @activity_id = activity_id
  super("Waiting for timer #{timer_id}")
end

Instance Attribute Details

#activity_idObject (readonly)

Returns the value of attribute activity_id.



105
106
107
# File 'lib/shikibu/errors.rb', line 105

def activity_id
  @activity_id
end

#expires_atObject (readonly)

Returns the value of attribute expires_at.



105
106
107
# File 'lib/shikibu/errors.rb', line 105

def expires_at
  @expires_at
end

#timer_idObject (readonly)

Returns the value of attribute timer_id.



105
106
107
# File 'lib/shikibu/errors.rb', line 105

def timer_id
  @timer_id
end