601
workflowTaskCompletedEventID int64,
602
command *commandpb.CancelWorkflowExecutionCommandAttributes,
604
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED, b.timeSource.Now())
605
>
event.Attributes = &historypb.HistoryEvent_WorkflowExecutionCanceledEventAttributes{
606
>
WorkflowExecutionCanceledEventAttributes: &historypb.WorkflowExecutionCanceledEventAttributes{
607
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
608
>
Details: command.Details,
609
>
},
610
>
}
611
>
return event
612
>
}
613
614
func (b *EventFactory) CreateRequestCancelExternalWorkflowExecutionInitiatedEvent(