Class: CadenceThrift::RequestCancelExternalWorkflowExecutionFailedEventAttributes

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

CAUSE =
10
DECISIONTASKCOMPLETEDEVENTID =
20
DOMAIN =
30
WORKFLOWEXECUTION =
40
INITIATEDEVENTID =
50
CONTROL =
60
FIELDS =
{
  CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::CancelExternalWorkflowExecutionFailedCause},
  DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true},
  DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
  WORKFLOWEXECUTION => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecution', :class => ::CadenceThrift::WorkflowExecution, :optional => true},
  INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true},
  CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2240
2241
2242
2243
2244
# File 'lib/gen/thrift/shared_types.rb', line 2240

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