mutable_state_impl.go ×5

Frontier kind: Code frontier

unlabeled · c_7152638ff4ee

3 tests · 7980 LOC · 247 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1568 ranges7980 lines · 247 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.

1 file ranked by introduced lines: 20 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/mutable_state_impl.go 20 introduced LOC · 5 ranges

Open complete file

5294 runID string,
5295 control string, // TODO this field is probably deprecated
5296 > ) (*historypb.HistoryEvent, error) { mutable_state_impl.go
5297 > opTag := tag.WorkflowActionExternalWorkflowSignalRequested
5298 > if err := ms.checkMutability(opTag); err != nil {
5299 return nil, err
5300 }
5301
5302 > _, ok := ms.GetSignalInfo(initiatedID) mutable_state_impl.go
5303 > if !ok {
5304 ms.logWarn(mutableStateInvalidHistoryActionMsg, opTag,
5305 tag.WorkflowEventID(ms.GetNextEventID()),
5309 }
5310
5311 > event := ms.hBuilder.AddExternalWorkflowExecutionSignaled( mutable_state_impl.go
5312 > initiatedID,
5313 > targetNamespace,
5314 > targetNamespaceID,
5315 > workflowID,
5316 > runID,
5317 > control, // TODO this field is probably deprecated
5318 > )
5319 > if err := ms.ApplyExternalWorkflowExecutionSignaled(event); err != nil {
5320 return nil, err
5321 }
5322 > return event, nil mutable_state_impl.go
5323 }
5324
5325 func (ms *MutableStateImpl) ApplyExternalWorkflowExecutionSignaled(
5326 event *historypb.HistoryEvent,
5327 > ) error { mutable_state_impl.go
5328 > initiatedID := event.GetExternalWorkflowExecutionSignaledEventAttributes().GetInitiatedEventId()
5329 >
5330 > return ms.DeletePendingSignal(initiatedID)
5331 > }
5332
5333 func (ms *MutableStateImpl) AddSignalExternalWorkflowExecutionFailedEvent(