Class: CadenceThrift::PendingChildExecutionInfo

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

WORKFLOWID =
10
RUNID =
20
WORKFLOWTYPNAME =
30
INITIATEDID =
40
PARENTCLOSEPOLICY =
50
FIELDS =
{
  WORKFLOWID => {:type => ::Thrift::Types::STRING, :name => 'workflowID', :optional => true},
  RUNID => {:type => ::Thrift::Types::STRING, :name => 'runID', :optional => true},
  WORKFLOWTYPNAME => {:type => ::Thrift::Types::STRING, :name => 'workflowTypName', :optional => true},
  INITIATEDID => {:type => ::Thrift::Types::I64, :name => 'initiatedID', :optional => true},
  PARENTCLOSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'parentClosePolicy', :optional => true, :enum_class => ::CadenceThrift::ParentClosePolicy}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4303
4304
4305
4306
4307
# File 'lib/gen/thrift/shared_types.rb', line 4303

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