Class: CadenceThrift::WorkflowExecutionContinuedAsNewEventAttributes

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

NEWEXECUTIONRUNID =
10
WORKFLOWTYPE =
20
TASKLIST =
30
INPUT =
40
EXECUTIONSTARTTOCLOSETIMEOUTSECONDS =
50
TASKSTARTTOCLOSETIMEOUTSECONDS =
60
DECISIONTASKCOMPLETEDEVENTID =
70
BACKOFFSTARTINTERVALINSECONDS =
80
INITIATOR =
90
FAILUREREASON =
100
FAILUREDETAILS =
110
LASTCOMPLETIONRESULT =
120
HEADER =
130
MEMO =
140
SEARCHATTRIBUTES =
150
FIELDS =
{
  NEWEXECUTIONRUNID => {:type => ::Thrift::Types::STRING, :name => 'newExecutionRunId', :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},
  DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
  BACKOFFSTARTINTERVALINSECONDS => {:type => ::Thrift::Types::I32, :name => 'backoffStartIntervalInSeconds', :optional => true},
  INITIATOR => {:type => ::Thrift::Types::I32, :name => 'initiator', :optional => true, :enum_class => ::CadenceThrift::ContinueAsNewInitiator},
  FAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'failureReason', :optional => true},
  FAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'failureDetails', :binary => true, :optional => true},
  LASTCOMPLETIONRESULT => {:type => ::Thrift::Types::STRING, :name => 'lastCompletionResult', :binary => true, :optional => true},
  HEADER => {:type => ::Thrift::Types::STRUCT, :name => 'header', :class => ::CadenceThrift::Header, :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}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1688
1689
1690
1691
1692
# File 'lib/gen/thrift/shared_types.rb', line 1688

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