module Temporal::Workflow::Command

Constants

CANCEL_TIMER_TYPE
COMMAND_CLASS_MAP
COMPLETE_WORKFLOW_TYPE
CONTINUE_AS_NEW
CancelTimer
CompleteWorkflow
ContinueAsNew
FAIL_WORKFLOW_TYPE
FailWorkflow
RECORD_MARKER_TYPE
RecordMarker
RequestActivityCancellation
SCHEDULE_ACTIVITY_TYPE

only these commands are supported right now

START_CHILD_WORKFLOW_TYPE
START_TIMER_TYPE
ScheduleActivity

TODO: Move these classes into their own directories under workflow/command/*

StartChildWorkflow
StartTimer

Public Class Methods

generate(type, **args) click to toggle source
# File lib/temporal/workflow/command.rb, line 36
def self.generate(type, **args)
  command_class = COMMAND_CLASS_MAP[type]
  command_class.new(**args)
end