class Temporal::Workflow::CommandStateMachine

Constants

CANCELED_STATE
COMPLETED_STATE
FAILED_STATE
NEW_STATE
REQUESTED_STATE
SCHEDULED_STATE
STARTED_STATE
TIMED_OUT_STATE

Attributes

state[R]

Public Class Methods

new() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 15
def initialize
  @state = NEW_STATE
end

Public Instance Methods

cancel() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 35
def cancel
  @state = CANCELED_STATE
end
complete() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 31
def complete
  @state = COMPLETED_STATE
end
fail() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 39
def fail
  @state = FAILED_STATE
end
requested() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 19
def requested
  @state = REQUESTED_STATE
end
schedule() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 23
def schedule
  @state = SCHEDULED_STATE
end
start() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 27
def start
  @state = STARTED_STATE
end
time_out() click to toggle source
# File lib/temporal/workflow/command_state_machine.rb, line 43
def time_out
  @state = TIMED_OUT_STATE
end