939
workflowType *commonpb.WorkflowType,
940
result *commonpb.Payloads,
942
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED, b.timeSource.Now())
943
>
event.Attributes = &historypb.HistoryEvent_ChildWorkflowExecutionCompletedEventAttributes{
944
>
ChildWorkflowExecutionCompletedEventAttributes: &historypb.ChildWorkflowExecutionCompletedEventAttributes{
945
>
InitiatedEventId: initiatedID,
946
>
StartedEventId: startedEventID,
947
>
Namespace: targetNamespace.String(),
948
>
NamespaceId: targetNamespaceID.String(),
949
>
WorkflowExecution: execution,
950
>
WorkflowType: workflowType,
951
>
Result: result,
952
>
},
953
>
}
954
>
return event
955
>
}
956
957
func (b *EventFactory) CreateChildWorkflowExecutionFailedEvent(