Class: CadenceThrift::StartWorkflowExecutionRequest

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb

Constant Summary collapse

DOMAIN =
10
WORKFLOWID =
20
WORKFLOWTYPE =
30
TASKLIST =
40
INPUT =
50
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS =
60
TASKSTARTTOCLOSETIMEOUTSECONDS =
70
IDENTITY =
80
REQUESTID =
90
WORKFLOWIDREUSEPOLICY =
100
RETRYPOLICY =
120
CRONSCHEDULE =
130
MEMO =
140
SEARCHATTRIBUTES =
141
HEADER =
150
FIELDS =
{
  DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
  WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowId', :optional => true},
  WORKFLOWTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'workflowType', :class => ::CadenceThrift::WorkflowType, :optional => true},
  TASKLIST => {:type => ::Thrift::Types::STRUCT, :name => 'taskList', :class => ::CadenceThrift::TaskList, :optional => true},
  INPUT => {:type => ::Thrift::Types::STRING, :name => 'input', :binary => true, :optional => true},
  EXECUTIONSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'executionStartToCloseTimeoutSeconds', :optional => true},
  TASKSTARTTOCLOSETIMEOUTSECONDS => {:type => ::Thrift::Types::I32, :name => 'taskStartToCloseTimeoutSeconds', :optional => true},
  IDENTITY => {:type => ::Thrift::Types::STRING, :name => 'identity', :optional => true},
  REQUESTID => {:type => ::Thrift::Types::STRING, :name => 'requestId', :optional => true},
  WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
  RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
  CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :optional => true},
  MEMO => {:type => ::Thrift::Types::STRUCT, :name => 'memo', :class => ::CadenceThrift::Memo, :optional => true},
  SEARCHATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'searchAttributes', :class => ::CadenceThrift::SearchAttributes, :optional => true},
  HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3168
# File 'lib/gen/thrift/shared_types.rb', line 3168

def struct_fields; FIELDS; end

#validateObject



3170
3171
3172
3173
3174
# File 'lib/gen/thrift/shared_types.rb', line 3170

def validate
  unless @workflowIdReusePolicy.nil? || ::CadenceThrift::WorkflowIdReusePolicy::VALID_VALUES.include?(@workflowIdReusePolicy)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field workflowIdReusePolicy!')
  end
end