890
workflowType *commonpb.WorkflowType,
891
header *commonpb.Header,
893
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED, b.timeSource.Now())
894
>
event.Attributes = &historypb.HistoryEvent_ChildWorkflowExecutionStartedEventAttributes{
895
>
ChildWorkflowExecutionStartedEventAttributes: &historypb.ChildWorkflowExecutionStartedEventAttributes{
896
>
InitiatedEventId: initiatedID,
897
>
Namespace: targetNamespace.String(),
898
>
NamespaceId: targetNamespaceID.String(),
899
>
WorkflowExecution: execution,
900
>
WorkflowType: workflowType,
901
>
Header: header,
902
>
},
903
>
}
904
>
return event
905
>
}
906
907
func (b *EventFactory) CreateStartChildWorkflowExecutionFailedEvent(