Class: CadenceThrift::Decision

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

DECISIONTYPE =
10
SCHEDULEACTIVITYTASKDECISIONATTRIBUTES =
20
STARTTIMERDECISIONATTRIBUTES =
25
COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES =
30
FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES =
35
REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES =
40
CANCELTIMERDECISIONATTRIBUTES =
50
CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES =
60
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES =
70
RECORDMARKERDECISIONATTRIBUTES =
80
CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES =
90
STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES =
100
SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES =
110
UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES =
120
FIELDS =
{
  DECISIONTYPE => {:type => ::Thrift::Types::I32, :name => 'decisionType', :optional => true, :enum_class => ::CadenceThrift::DecisionType},
  SCHEDULEACTIVITYTASKDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'scheduleActivityTaskDecisionAttributes', :class => ::CadenceThrift::ScheduleActivityTaskDecisionAttributes, :optional => true},
  STARTTIMERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startTimerDecisionAttributes', :class => ::CadenceThrift::StartTimerDecisionAttributes, :optional => true},
  COMPLETEWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'completeWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::CompleteWorkflowExecutionDecisionAttributes, :optional => true},
  FAILWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'failWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::FailWorkflowExecutionDecisionAttributes, :optional => true},
  REQUESTCANCELACTIVITYTASKDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelActivityTaskDecisionAttributes', :class => ::CadenceThrift::RequestCancelActivityTaskDecisionAttributes, :optional => true},
  CANCELTIMERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelTimerDecisionAttributes', :class => ::CadenceThrift::CancelTimerDecisionAttributes, :optional => true},
  CANCELWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::CancelWorkflowExecutionDecisionAttributes, :optional => true},
  REQUESTCANCELEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionDecisionAttributes, :optional => true},
  RECORDMARKERDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'recordMarkerDecisionAttributes', :class => ::CadenceThrift::RecordMarkerDecisionAttributes, :optional => true},
  CONTINUEASNEWWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'continueAsNewWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::ContinueAsNewWorkflowExecutionDecisionAttributes, :optional => true},
  STARTCHILDWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionDecisionAttributes, :optional => true},
  SIGNALEXTERNALWORKFLOWEXECUTIONDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionDecisionAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionDecisionAttributes, :optional => true},
  UPSERTWORKFLOWSEARCHATTRIBUTESDECISIONATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'upsertWorkflowSearchAttributesDecisionAttributes', :class => ::CadenceThrift::UpsertWorkflowSearchAttributesDecisionAttributes, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1478
1479
1480
1481
1482
# File 'lib/gen/thrift/shared_types.rb', line 1478

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