964
failure *failurepb.Failure,
965
retryState enumspb.RetryState,
967
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED, b.timeSource.Now())
968
>
event.Attributes = &historypb.HistoryEvent_ChildWorkflowExecutionFailedEventAttributes{
969
>
ChildWorkflowExecutionFailedEventAttributes: &historypb.ChildWorkflowExecutionFailedEventAttributes{
970
>
InitiatedEventId: initiatedID,
971
>
StartedEventId: startedEventID,
972
>
Namespace: targetNamespace.String(),
973
>
NamespaceId: targetNamespaceID.String(),
974
>
WorkflowExecution: execution,
975
>
WorkflowType: workflowType,
976
>
Failure: failure,
977
>
RetryState: retryState,
978
>
},
979
>
}
980
>
return event
981
>
}
982
983
func (b *EventFactory) CreateChildWorkflowExecutionCanceledEvent(