758
control string,
759
cause enumspb.SignalExternalWorkflowExecutionFailedCause,
761
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED, b.timeSource.Now())
762
>
event.Attributes = &historypb.HistoryEvent_SignalExternalWorkflowExecutionFailedEventAttributes{
763
>
SignalExternalWorkflowExecutionFailedEventAttributes: &historypb.SignalExternalWorkflowExecutionFailedEventAttributes{
764
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
765
>
InitiatedEventId: initiatedEventID,
766
>
Namespace: targetNamespace.String(),
767
>
NamespaceId: targetNamespaceID.String(),
768
>
WorkflowExecution: &commonpb.WorkflowExecution{
769
>
WorkflowId: workflowID,
770
>
RunId: runID,
771
>
},
772
>
Cause: cause,
773
>
Control: control,
774
>
},
775
>
}
776
>
return event
777
>
}
778
779
func (b *EventFactory) CreateExternalWorkflowExecutionSignaled(