848
timeSkippingConfig *commonpb.TimeSkippingConfig,
849
timeSkippingStatePropagation *commonpb.TimeSkippingStatePropagation,
851
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED, b.timeSource.Now())
852
>
event.Attributes = &historypb.HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes{
853
>
StartChildWorkflowExecutionInitiatedEventAttributes: &historypb.StartChildWorkflowExecutionInitiatedEventAttributes{
854
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
855
>
Namespace: command.Namespace,
856
>
NamespaceId: targetNamespaceID.String(),
857
>
WorkflowId: command.WorkflowId,
858
>
WorkflowType: command.WorkflowType,
859
>
TaskQueue: command.TaskQueue,
860
>
Header: command.Header,
861
>
Input: command.Input,
862
>
WorkflowExecutionTimeout: command.WorkflowExecutionTimeout,
863
>
WorkflowRunTimeout: command.WorkflowRunTimeout,
864
>
WorkflowTaskTimeout: command.WorkflowTaskTimeout,
865
>
Control: command.Control,
866
>
WorkflowIdReusePolicy: command.WorkflowIdReusePolicy,
867
>
RetryPolicy: command.RetryPolicy,
868
>
CronSchedule: command.CronSchedule,
869
>
// Filter nil values here rather than in the API layer because not all
870
>
// creation paths go through the frontend (continue-as-new, child workflows, replication).
871
>
// This CaN event is created on the parent workflow, so we need to filter nil values here.
872
>
Memo: payload.FilterNilMemo(command.Memo),
873
>
SearchAttributes: payload.FilterNilSearchAttributes(command.SearchAttributes),
874
>
ParentClosePolicy: command.GetParentClosePolicy(),
875
>
InheritBuildId: command.InheritBuildId, //nolint:staticcheck // SA1019: worker versioning v0.2
876
>
VersioningOverride: worker_versioning.ConvertOverrideToV32(command.GetVersioningOverride()),
877
>
Priority: command.Priority,
878
>
TimeSkippingConfig: timeSkippingConfig,
879
>
TimeSkippingStatePropagation: timeSkippingStatePropagation,
880
>
},
881
>
}
882
>
return event
883
>
}
884
885
func (b *EventFactory) CreateChildWorkflowExecutionStartedEvent(