Class: CadenceThrift::SignalExternalWorkflowExecutionFailedEventAttributes
- Inherits:
-
Object
- Object
- CadenceThrift::SignalExternalWorkflowExecutionFailedEventAttributes
- 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::SignalExternalWorkflowExecutionFailedCause}, 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_fields ⇒ Object
2315 |
# File 'lib/gen/thrift/shared_types.rb', line 2315 def struct_fields; FIELDS; end |
#validate ⇒ Object
2317 2318 2319 2320 2321 |
# File 'lib/gen/thrift/shared_types.rb', line 2317 def validate unless @cause.nil? || ::CadenceThrift::SignalExternalWorkflowExecutionFailedCause::VALID_VALUES.include?(@cause) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field cause!') end end |