914
workflowType *commonpb.WorkflowType,
915
control string,
917
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED, b.timeSource.Now())
918
>
event.Attributes = &historypb.HistoryEvent_StartChildWorkflowExecutionFailedEventAttributes{
919
>
StartChildWorkflowExecutionFailedEventAttributes: &historypb.StartChildWorkflowExecutionFailedEventAttributes{
920
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
921
>
InitiatedEventId: initiatedID,
922
>
Namespace: targetNamespace.String(),
923
>
NamespaceId: targetNamespaceID.String(),
924
>
WorkflowId: workflowID,
925
>
WorkflowType: workflowType,
926
>
Control: control,
927
>
Cause: cause,
928
>
},
929
>
}
930
>
return event
931
>
}
932
933
func (b *EventFactory) CreateChildWorkflowExecutionCompletedEvent(