Class: CadenceThrift::WorkflowExecutionInfo

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

EXECUTION =
10
TYPE =
20
STARTTIME =
30
CLOSETIME =
40
CLOSESTATUS =
50
HISTORYLENGTH =
60
PARENTDOMAINID =
70
PARENTEXECUTION =
80
EXECUTIONTIME =
90
MEMO =
100
SEARCHATTRIBUTES =
101
AUTORESETPOINTS =
110
FIELDS =
{
  EXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'execution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
  TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::CadenceThrift::WorkflowType, :optional => true},
  STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime', :optional => true},
  CLOSETIME => {:type => ::Thrift::Types::I64, :name => 'closeTime', :optional => true},
  CLOSESTATUS => {:type => ::Thrift::Types::I32, :name => 'closeStatus', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus},
  HISTORYLENGTH => {:type => ::Thrift::Types::I64, :name => 'historyLength', :optional => true},
  PARENTDOMAINID => {:type => ::Thrift::Types::STRING, :name => 'parentDomainId', :optional => true},
  PARENTEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'parentExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
  EXECUTIONTIME => {:type => ::Thrift::Types::I64, :name => 'executionTime', :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},
  AUTORESETPOINTS => {:type => ::Thrift::Types::STRUCT, :name => 'autoResetPoints', :class => ::CadenceThrift::ResetPoints, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1079
1080
1081
1082
1083
# File 'lib/gen/thrift/shared_types.rb', line 1079

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