552
details *commonpb.Payloads,
553
identity string,
555
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_ACTIVITY_TASK_CANCELED, b.timeSource.Now())
556
>
event.Attributes = &historypb.HistoryEvent_ActivityTaskCanceledEventAttributes{
557
>
ActivityTaskCanceledEventAttributes: &historypb.ActivityTaskCanceledEventAttributes{
558
>
ScheduledEventId: scheduledEventID,
559
>
StartedEventId: startedEventID,
560
>
LatestCancelRequestedEventId: latestCancelRequestedEventID,
561
>
Details: details,
562
>
Identity: identity,
563
>
},
564
>
}
565
>
return event
566
>
}
567
568
func (b *EventFactory) CreateTimerCanceledEvent(