674
workflowID string,
675
runID string,
677
>
event := b.createHistoryEvent(
678
>
enumspb.EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED,
679
>
b.timeSource.Now(),
680
>
)
681
>
event.Attributes = &historypb.HistoryEvent_ExternalWorkflowExecutionCancelRequestedEventAttributes{
682
>
ExternalWorkflowExecutionCancelRequestedEventAttributes: &historypb.ExternalWorkflowExecutionCancelRequestedEventAttributes{
683
>
InitiatedEventId: initiatedEventID,
684
>
Namespace: targetNamespace.String(),
685
>
NamespaceId: targetNamespaceID.String(),
686
>
WorkflowExecution: &commonpb.WorkflowExecution{
687
>
WorkflowId: workflowID,
688
>
RunId: runID,
689
>
},
690
>
},
691
>
}
692
>
return event
693
>
}
694
695
func (b *EventFactory) CreateSignalExternalWorkflowExecutionInitiatedEvent(