in src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java [993:1013]
public static boolean isDecisionEvent(HistoryEvent event) {
EventType eventType = event.getEventType();
boolean result =
((event != null)
&& (eventType == EventType.ActivityTaskScheduled
|| eventType == EventType.StartChildWorkflowExecutionInitiated
|| eventType == EventType.TimerStarted
|| eventType == EventType.WorkflowExecutionCompleted
|| eventType == EventType.WorkflowExecutionFailed
|| eventType == EventType.WorkflowExecutionCanceled
|| eventType == EventType.WorkflowExecutionContinuedAsNew
|| eventType == EventType.ActivityTaskCancelRequested
|| eventType == EventType.RequestCancelActivityTaskFailed
|| eventType == EventType.TimerCanceled
|| eventType == EventType.CancelTimerFailed
|| eventType == EventType.RequestCancelExternalWorkflowExecutionInitiated
|| eventType == EventType.MarkerRecorded
|| eventType == EventType.SignalExternalWorkflowExecutionInitiated
|| eventType == EventType.UpsertWorkflowSearchAttributes));
return result;
}