event_factory.go ×1

Frontier kind: Code frontier

unlabeled · c_f121e4ac08d6

34 tests · 3034 LOC · 130 files · introduces 0 tests · 44 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges44 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
407 ranges3034 lines · 130 files · Browse complete extent
All tests (intent)
34 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 44 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/historybuilder/event_factory.go 34 introduced LOC · 1 range

Open complete file

848 timeSkippingConfig *commonpb.TimeSkippingConfig,
849 timeSkippingStatePropagation *commonpb.TimeSkippingStatePropagation,
850 > ) *historypb.HistoryEvent { event_factory.go
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(
go.temporal.io/server/service/history/historybuilder/history_builder.go 10 introduced LOC · 1 range

Open complete file

774 timeSkippingConfig *commonpb.TimeSkippingConfig,
775 timeSkippingStatePropagation *commonpb.TimeSkippingStatePropagation,
776 > ) (*historypb.HistoryEvent, int64) { history_builder.go
777 > event := b.CreateStartChildWorkflowExecutionInitiatedEvent(
778 > workflowTaskCompletedEventID,
779 > command,
780 > targetNamespaceID,
781 > timeSkippingConfig,
782 > timeSkippingStatePropagation,
783 > )
784 > return b.add(event)
785 > }
786
787 func (b *HistoryBuilder) AddChildWorkflowExecutionStartedEvent(