646
runID string,
647
cause enumspb.CancelExternalWorkflowExecutionFailedCause,
649
>
event := b.createHistoryEvent(
650
>
enumspb.EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED,
651
>
b.timeSource.Now(),
652
>
)
653
>
event.Attributes = &historypb.HistoryEvent_RequestCancelExternalWorkflowExecutionFailedEventAttributes{
654
>
RequestCancelExternalWorkflowExecutionFailedEventAttributes: &historypb.RequestCancelExternalWorkflowExecutionFailedEventAttributes{
655
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
656
>
InitiatedEventId: initiatedEventID,
657
>
Namespace: targetNamespace.String(),
658
>
NamespaceId: targetNamespaceID.String(),
659
>
WorkflowExecution: &commonpb.WorkflowExecution{
660
>
WorkflowId: workflowID,
661
>
RunId: runID,
662
>
},
663
>
Cause: cause,
664
>
Control: "",
665
>
},
666
>
}
667
>
return event
668
>
}
669
670
func (b *EventFactory) CreateExternalWorkflowExecutionCancelRequested(