535
workflowTaskCompletedEventID int64,
536
scheduledEventID int64,
538
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED, b.timeSource.Now())
539
>
event.Attributes = &historypb.HistoryEvent_ActivityTaskCancelRequestedEventAttributes{
540
>
ActivityTaskCancelRequestedEventAttributes: &historypb.ActivityTaskCancelRequestedEventAttributes{
541
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
542
>
ScheduledEventId: scheduledEventID,
543
>
},
544
>
}
545
>
return event
546
>
}
547
548
func (b *EventFactory) CreateActivityTaskCanceledEvent(