1012
execution *commonpb.WorkflowExecution,
1013
workflowType *commonpb.WorkflowType,
1015
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED, b.timeSource.Now())
1016
>
event.Attributes = &historypb.HistoryEvent_ChildWorkflowExecutionTerminatedEventAttributes{
1017
>
ChildWorkflowExecutionTerminatedEventAttributes: &historypb.ChildWorkflowExecutionTerminatedEventAttributes{
1018
>
InitiatedEventId: initiatedID,
1019
>
StartedEventId: startedEventID,
1020
>
Namespace: targetNamespace.String(),
1021
>
NamespaceId: targetNamespaceID.String(),
1022
>
WorkflowExecution: execution,
1023
>
WorkflowType: workflowType,
1024
>
},
1025
>
}
1026
>
return event
1027
>
}
1028
1029
func (b *EventFactory) CreateChildWorkflowExecutionTimedOutEvent(