231
workflowTaskCompletedEventID int64,
232
command *commandpb.ScheduleActivityTaskCommandAttributes,
234
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED, b.timeSource.Now())
235
>
event.Attributes = &historypb.HistoryEvent_ActivityTaskScheduledEventAttributes{
236
>
ActivityTaskScheduledEventAttributes: &historypb.ActivityTaskScheduledEventAttributes{
237
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
238
>
ActivityId: command.ActivityId,
239
>
ActivityType: command.ActivityType,
240
>
TaskQueue: command.TaskQueue,
241
>
Header: command.Header,
242
>
Input: command.Input,
243
>
ScheduleToCloseTimeout: command.ScheduleToCloseTimeout,
244
>
ScheduleToStartTimeout: command.ScheduleToStartTimeout,
245
>
StartToCloseTimeout: command.StartToCloseTimeout,
246
>
HeartbeatTimeout: command.HeartbeatTimeout,
247
>
RetryPolicy: command.RetryPolicy,
248
>
UseWorkflowBuildId: command.UseWorkflowBuildId,
249
>
Priority: command.Priority,
250
>
},
251
>
}
252
>
return event
253
>
}
254
255
func (b *EventFactory) CreateActivityTaskStartedEvent(