Class: CadenceThrift::StartChildWorkflowExecutionFailedEventAttributes
- Inherits:
-
Object
- Object
- CadenceThrift::StartChildWorkflowExecutionFailedEventAttributes
- 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
- CAUSE =
40
- CONTROL =
50
- INITIATEDEVENTID =
60
- DECISIONTASKCOMPLETEDEVENTID =
70
- 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}, CAUSE => {:type => ::Thrift::Types::I32, :name => 'cause', :optional => true, :enum_class => ::CadenceThrift::ChildWorkflowExecutionFailedCause}, CONTROL => {:type => ::Thrift::Types::STRING, :name => 'control', :binary => true, :optional => true}, INITIATEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'initiatedEventId', :optional => true}, DECISIONTASKCOMPLETEDEVENTID => {:type => ::Thrift::Types::I64, :name => 'decisionTaskCompletedEventId', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
2438 |
# File 'lib/gen/thrift/shared_types.rb', line 2438 def struct_fields; FIELDS; end |
#validate ⇒ Object
2440 2441 2442 2443 2444 |
# File 'lib/gen/thrift/shared_types.rb', line 2440 def validate unless @cause.nil? || ::CadenceThrift::ChildWorkflowExecutionFailedCause::VALID_VALUES.include?(@cause) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!') end end |