Class: CadenceThrift::SignalWithStartWorkflowExecutionRequest

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
SIGNALNAME =
110
SIGNALINPUT =
120
CONTROL =
130
RETRYPOLICY =
140
CRONSCHEDULE =
150
MEMO =
160
SEARCHATTRIBUTES =
161
HEADER =
170
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},
  SIGNALNAME => {:type => ::Thrift::Types::STRING, :name => 'signalName', :optional => true},
  SIGNALINPUT => {:type => ::Thrift::Types::STRING, :name => 'signalInput', :binary => true, :optional => true},
  CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
  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



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

def struct_fields; FIELDS; end

#validateObject



3765
3766
3767
3768
3769
# File 'lib/gen/thrift/shared_types.rb', line 3765

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