func (eh *history) GetWorkflowStartedEvent() (*s.HistoryEvent, error) {
	events := eh.workflowTask.task.History.Events
	if len(events) == 0 || events[0].GetEventType() != s.EventTypeWorkflowExecutionStarted {
		return nil, errors.New("unable to find WorkflowExecutionStartedEventAttributes in the history")
	}
	return events[0], nil
}
// Get workflow start event.
Get workflow start event.
// Get workflow start event .
func (eh *history) GetWorkflowStartedEvent() (*s.HistoryEvent, error) {
	events := eh.workflowTask.task.History.Events
	if len(events) == 0 || events[0].GetEventType() != s.EventTypeWorkflowExecutionStarted {
		return nil, errors.New("unable to find WorkflowExecutionStartedEventAttributes in the history")
	}
	return events[0], nil
}
func ( eh * history ) GetWorkflowStartedEvent ( ) ( * s . HistoryEvent , error ) { events := eh . workflowTask . task . History . Events if len ( events ) == 0 || events [ 0 ] . GetEventType ( ) != s . EventTypeWorkflowExecutionStarted { return nil , errors . New ( " " ) } return events [ 0 ] , nil }
Get workflow start event.
Get workflow start event .