Class: CadenceThrift::StartChildWorkflowExecutionDecisionAttributes

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
PARENTCLOSEPOLICY =
81
CONTROL =
90
WORKFLOWIDREUSEPOLICY =
100
RETRYPOLICY =
110
CRONSCHEDULE =
120
HEADER =
130
MEMO =
140
SEARCHATTRIBUTES =
150
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},
  PARENTCLOSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'parentClosePolicy', :optional => true, :enum_class => ::CadenceThrift::ParentClosePolicy},
  CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true},
  WORKFLOWIDREUSEPOLICY => {:type => ::Thrift::Types::I32, :name => 'workflowIdReusePolicy', :optional => true, :enum_class => ::CadenceThrift::WorkflowIdReusePolicy},
  RETRYPOLICY => {:type => ::Thrift::Types::STRUCT, :name => 'retryPolicy', :class => ::CadenceThrift::RetryPolicy, :optional => true},
  CRONSCHEDULE => {:type => ::Thrift::Types::STRING, :name => 'cronSchedule', :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



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

def struct_fields; FIELDS; end

#validateObject



1430
1431
1432
1433
1434
1435
1436
1437
# File 'lib/gen/thrift/shared_types.rb', line 1430

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