187
startedEventID int64,
188
timeoutType enumspb.TimeoutType,
190
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT, b.timeSource.Now())
191
>
event.Attributes = &historypb.HistoryEvent_WorkflowTaskTimedOutEventAttributes{
192
>
WorkflowTaskTimedOutEventAttributes: &historypb.WorkflowTaskTimedOutEventAttributes{
193
>
ScheduledEventId: scheduledEventID,
194
>
StartedEventId: startedEventID,
195
>
TimeoutType: timeoutType,
196
>
},
197
>
}
198
>
199
>
return event
200
>
}
201
202
func (b *EventFactory) CreateWorkflowTaskFailedEvent(