989
workflowType *commonpb.WorkflowType,
990
details *commonpb.Payloads,
992
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED, b.timeSource.Now())
993
>
event.Attributes = &historypb.HistoryEvent_ChildWorkflowExecutionCanceledEventAttributes{
994
>
ChildWorkflowExecutionCanceledEventAttributes: &historypb.ChildWorkflowExecutionCanceledEventAttributes{
995
>
InitiatedEventId: initiatedID,
996
>
StartedEventId: startedEventID,
997
>
Namespace: targetNamespace.String(),
998
>
NamespaceId: targetNamespaceID.String(),
999
>
WorkflowExecution: execution,
1000
>
WorkflowType: workflowType,
1001
>
Details: details,
1002
>
},
1003
>
}
1004
>
return event
1005
>
}
1006
1007
func (b *EventFactory) CreateChildWorkflowExecutionTerminatedEvent(