signal_with_start_workflow.go ×5

Frontier kind: Code frontier

unlabeled · c_77460c319c0a

3 tests · 8934 LOC · 262 files · introduces 0 tests · 47 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges47 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1869 ranges8934 lines · 262 files · Browse complete extent
All tests (intent)
3 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: 47 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/signalwithstartworkflow/signal_with_start_workflow.go 45 introduced LOC · 5 ranges

Open complete file

164 return nil, nil
165 }
166 > currentMutableState := currentWorkflowLease.GetMutableState() signal_with_start_workflow.go
167 > currentExecutionState := currentMutableState.GetExecutionState()
168 > currentWorkflowStartTime := time.Time{}
169 > if shardContext.GetConfig().EnableWorkflowIdReuseStartTimeValidation(namespaceEntry.Name().String()) {
170 currentWorkflowStartTime = currentExecutionState.StartTime.AsTime()
171 }
173 // It is unclear if currentExecutionState.RunId is the same as
174 // currentWorkflowLease.GetContext().GetWorkflowKey().RunID
175 > workflowKey := definition.WorkflowKey{ signal_with_start_workflow.go
176 > NamespaceID: currentWorkflowLease.GetContext().GetWorkflowKey().NamespaceID,
177 > WorkflowID: currentWorkflowLease.GetContext().GetWorkflowKey().WorkflowID,
178 > RunID: currentExecutionState.RunId,
179 > }
180 >
181 > workflowMutationFunc, err := api.ResolveDuplicateWorkflowID(
182 > shardContext,
183 > workflowKey,
184 > namespaceEntry,
185 > newRunID,
186 > currentExecutionState.State,
187 > currentExecutionState.Status,
188 > currentExecutionState.RequestIds,
189 > currentExecutionState.FirstExecutionRunId,
190 > workflowIDReusePolicy,
191 > workflowIDConflictPolicy,
192 > currentWorkflowStartTime,
193 > nil,
194 > false,
195 > )
196 > return workflowMutationFunc, err
197 }
198
201 return nil, nil
202 }
203 > currentExecutionState := currentWorkflowLease.GetMutableState().GetExecutionState() signal_with_start_workflow.go
204 > currentCloseVersion, err := currentWorkflowLease.GetMutableState().GetCloseVersion()
205 > if err != nil {
206 return nil, err
207 }
208 > id := api.VersionedRunID{ signal_with_start_workflow.go
209 > RunID: currentExecutionState.RunId,
210 > // we stop updating last write version in the current record after workflow is closed
211 > // so workflow close version is the last write version for the current record
212 > LastWriteVersion: currentCloseVersion,
213 > }
214 > return &id, nil
215 }
216
261 prevLastWriteVersion := int64(0)
262 if vrid != nil {
263 > createMode = persistence.CreateWorkflowModeUpdateCurrent signal_with_start_workflow.go
264 > prevRunID = vrid.RunID
265 > prevLastWriteVersion = vrid.LastWriteVersion
266 > err = api.NewWorkflowVersionCheck(
267 > shardContext,
268 > vrid.LastWriteVersion,
269 > newWorkflowLease.GetMutableState(),
270 > )
271 > if err != nil {
272 return startOutcome{}, err
273 }
go.temporal.io/server/service/history/api/create_workflow_util.go 2 introduced LOC · 1 range

Open complete file

196 ) error {
197 if prevLastWriteVersion == common.EmptyVersion {
198 > return nil create_workflow_util.go
199 > }
200
201 if prevLastWriteVersion > newMutableState.GetCurrentVersion() {