mutable_state_impl.go ×7

Frontier kind: Code frontier

unlabeled · c_5366ca943e99

329 tests · 4187 LOC · 168 files · introduces 0 tests · 35 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges35 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
683 ranges4187 lines · 168 files · Browse complete extent
All tests (intent)
329 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.

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

go.temporal.io/server/service/history/workflow/mutable_state_impl.go 29 introduced LOC · 7 ranges

Open complete file

2903 prevRunID string,
2904 firstRunID string,
2905 > ) (*historypb.HistoryEvent, error) { mutable_state_impl.go
2906 > opTag := tag.WorkflowActionWorkflowStarted
2907 > if err := ms.checkMutability(opTag); err != nil {
2908 return nil, err
2909 }
2910
2911 > eventID := ms.GetNextEventID() mutable_state_impl.go
2912 > if eventID != common.FirstEventID {
2913 ms.logger.Warn(mutableStateInvalidHistoryActionMsg, opTag,
2914 tag.WorkflowEventID(eventID),
2917 }
2918
2919 > event := ms.hBuilder.AddWorkflowExecutionStartedEvent( mutable_state_impl.go
2920 > ms.executionState.StartTime.AsTime(),
2921 > startRequest,
2922 > resetPoints,
2923 > prevRunID,
2924 > firstRunID,
2925 > execution.GetRunId(),
2926 > )
2927 > if err := ms.ApplyWorkflowExecutionStartedEvent(
2928 > startRequest.GetParentExecutionInfo().GetClock(),
2929 > execution,
2930 > startRequest.StartRequest.GetRequestId(),
2931 > event,
2932 > ); err != nil {
2933 return nil, err
2934 }
2935
2936 // TODO merge active & passive task generation
2937 > var err error mutable_state_impl.go
2938 > ms.executionInfo.WorkflowExecutionTimerTaskStatus, err = ms.taskGenerator.GenerateWorkflowStartTasks(
2939 > event,
2940 > )
2941 > if err != nil {
2942 return nil, err
2943 }
2944
2945 > if err := ms.taskGenerator.GenerateRecordWorkflowStartedTasks( mutable_state_impl.go
2946 > event,
2947 > ); err != nil {
2948 return nil, err
2949 }
2950
2951 // Versioning Override set on StartWorkflowExecutionRequest
2952 > if startRequest.GetStartRequest().GetVersioningOverride() != nil { mutable_state_impl.go
2953 metrics.WorkerDeploymentVersioningOverrideCounter.With(
2954 ms.metricsHandler.WithTags(
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 4 introduced LOC · 1 range

Open complete file

251 }
252
253 > func (x *StartWorkflowExecutionRequest) GetParentExecutionInfo() *v11.ParentExecutionInfo { request_response.pb.go
254 > if x != nil {
255 > return x.ParentExecutionInfo
256 > }
257 return nil
258 }
go.temporal.io/server/api/workflow/v1/message.pb.go 2 introduced LOC · 1 range

Open complete file

102 }
103
104 > func (x *ParentExecutionInfo) GetClock() *v11.VectorClock { message.pb.go
105 > if x != nil {
106 return x.Clock
107 }