Class: CadenceThrift::HistoryEvent

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

EVENTID =
10
TIMESTAMP =
20
EVENTTYPE =
30
VERSION =
35
TASKID =
36
WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES =
40
WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES =
50
WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES =
60
WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES =
70
DECISIONTASKSCHEDULEDEVENTATTRIBUTES =
80
DECISIONTASKSTARTEDEVENTATTRIBUTES =
90
DECISIONTASKCOMPLETEDEVENTATTRIBUTES =
100
DECISIONTASKTIMEDOUTEVENTATTRIBUTES =
110
DECISIONTASKFAILEDEVENTATTRIBUTES =
120
ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES =
130
ACTIVITYTASKSTARTEDEVENTATTRIBUTES =
140
ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES =
150
ACTIVITYTASKFAILEDEVENTATTRIBUTES =
160
ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES =
170
TIMERSTARTEDEVENTATTRIBUTES =
180
TIMERFIREDEVENTATTRIBUTES =
190
ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES =
200
REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES =
210
ACTIVITYTASKCANCELEDEVENTATTRIBUTES =
220
TIMERCANCELEDEVENTATTRIBUTES =
230
CANCELTIMERFAILEDEVENTATTRIBUTES =
240
MARKERRECORDEDEVENTATTRIBUTES =
250
WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES =
260
WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES =
270
WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES =
280
WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES =
290
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES =
300
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES =
310
EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES =
320
WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES =
330
STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES =
340
STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES =
350
CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES =
360
CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES =
370
CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES =
380
CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES =
390
CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES =
400
CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES =
410
SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES =
420
SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES =
430
EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES =
440
UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES =
450
FIELDS =
{
  EVENTID => {:type => ::Thrift::Types::I64, :name => 'eventId', :optional => true},
  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp', :optional => true},
  EVENTTYPE => {:type => ::Thrift::Types::I32, :name => 'eventType', :optional => true, :enum_class => ::CadenceThrift::EventType},
  VERSION => {:type => ::Thrift::Types::I64, :name => 'version', :optional => true},
  TASKID => {:type => ::Thrift::Types::I64, :name => 'taskId', :optional => true},
  WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionStartedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionStartedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCompletedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCompletedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionFailedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionFailedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionTimedOutEventAttributes', :class => ::CadenceThrift::WorkflowExecutionTimedOutEventAttributes, :optional => true},
  DECISIONTASKSCHEDULEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskScheduledEventAttributes', :class => ::CadenceThrift::DecisionTaskScheduledEventAttributes, :optional => true},
  DECISIONTASKSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskStartedEventAttributes', :class => ::CadenceThrift::DecisionTaskStartedEventAttributes, :optional => true},
  DECISIONTASKCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskCompletedEventAttributes', :class => ::CadenceThrift::DecisionTaskCompletedEventAttributes, :optional => true},
  DECISIONTASKTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskTimedOutEventAttributes', :class => ::CadenceThrift::DecisionTaskTimedOutEventAttributes, :optional => true},
  DECISIONTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'decisionTaskFailedEventAttributes', :class => ::CadenceThrift::DecisionTaskFailedEventAttributes, :optional => true},
  ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskScheduledEventAttributes', :class => ::CadenceThrift::ActivityTaskScheduledEventAttributes, :optional => true},
  ACTIVITYTASKSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskStartedEventAttributes', :class => ::CadenceThrift::ActivityTaskStartedEventAttributes, :optional => true},
  ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCompletedEventAttributes', :class => ::CadenceThrift::ActivityTaskCompletedEventAttributes, :optional => true},
  ACTIVITYTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskFailedEventAttributes', :class => ::CadenceThrift::ActivityTaskFailedEventAttributes, :optional => true},
  ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskTimedOutEventAttributes', :class => ::CadenceThrift::ActivityTaskTimedOutEventAttributes, :optional => true},
  TIMERSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerStartedEventAttributes', :class => ::CadenceThrift::TimerStartedEventAttributes, :optional => true},
  TIMERFIREDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerFiredEventAttributes', :class => ::CadenceThrift::TimerFiredEventAttributes, :optional => true},
  ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCancelRequestedEventAttributes', :class => ::CadenceThrift::ActivityTaskCancelRequestedEventAttributes, :optional => true},
  REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelActivityTaskFailedEventAttributes', :class => ::CadenceThrift::RequestCancelActivityTaskFailedEventAttributes, :optional => true},
  ACTIVITYTASKCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'activityTaskCanceledEventAttributes', :class => ::CadenceThrift::ActivityTaskCanceledEventAttributes, :optional => true},
  TIMERCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'timerCanceledEventAttributes', :class => ::CadenceThrift::TimerCanceledEventAttributes, :optional => true},
  CANCELTIMERFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'cancelTimerFailedEventAttributes', :class => ::CadenceThrift::CancelTimerFailedEventAttributes, :optional => true},
  MARKERRECORDEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'markerRecordedEventAttributes', :class => ::CadenceThrift::MarkerRecordedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionSignaledEventAttributes', :class => ::CadenceThrift::WorkflowExecutionSignaledEventAttributes, :optional => true},
  WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionTerminatedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionTerminatedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCancelRequestedEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCancelRequestedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionCanceledEventAttributes', :class => ::CadenceThrift::WorkflowExecutionCanceledEventAttributes, :optional => true},
  REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionInitiatedEventAttributes, :optional => true},
  REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'requestCancelExternalWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::RequestCancelExternalWorkflowExecutionFailedEventAttributes, :optional => true},
  EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'externalWorkflowExecutionCancelRequestedEventAttributes', :class => ::CadenceThrift::ExternalWorkflowExecutionCancelRequestedEventAttributes, :optional => true},
  WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'workflowExecutionContinuedAsNewEventAttributes', :class => ::CadenceThrift::WorkflowExecutionContinuedAsNewEventAttributes, :optional => true},
  STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionInitiatedEventAttributes, :optional => true},
  STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'startChildWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::StartChildWorkflowExecutionFailedEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionStartedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionStartedEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionCompletedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionCompletedEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionFailedEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionCanceledEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionCanceledEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionTimedOutEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionTimedOutEventAttributes, :optional => true},
  CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'childWorkflowExecutionTerminatedEventAttributes', :class => ::CadenceThrift::ChildWorkflowExecutionTerminatedEventAttributes, :optional => true},
  SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionInitiatedEventAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionInitiatedEventAttributes, :optional => true},
  SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'signalExternalWorkflowExecutionFailedEventAttributes', :class => ::CadenceThrift::SignalExternalWorkflowExecutionFailedEventAttributes, :optional => true},
  EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'externalWorkflowExecutionSignaledEventAttributes', :class => ::CadenceThrift::ExternalWorkflowExecutionSignaledEventAttributes, :optional => true},
  UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'upsertWorkflowSearchAttributesEventAttributes', :class => ::CadenceThrift::UpsertWorkflowSearchAttributesEventAttributes, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2708
2709
2710
2711
2712
# File 'lib/gen/thrift/shared_types.rb', line 2708

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