mutable_state_impl.go ×6

Frontier kind: Code frontier

unlabeled · c_fb4ec0dc858b

20 tests · 6852 LOC · 209 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1325 ranges6852 lines · 209 files · Browse complete extent
All tests (intent)
20 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 6 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 · 6 ranges

Open complete file

4469 startedEventID int64,
4470 request *workflowservice.RespondActivityTaskCompletedRequest,
4471 > ) (*historypb.HistoryEvent, error) { mutable_state_impl.go
4472 > opTag := tag.WorkflowActionActivityTaskCompleted
4473 > if err := ms.checkMutability(opTag); err != nil {
4474 return nil, err
4475 }
4476
4477 > if ai, ok := ms.GetActivityInfo(scheduledEventID); !ok || ai.StartedEventId != startedEventID { mutable_state_impl.go
4478 ms.logger.Warn(mutableStateInvalidHistoryActionMsg, opTag,
4479 tag.WorkflowEventID(ms.GetNextEventID()),
4485 }
4486
4487 > if err := ms.addStartedEventForTransientActivity(scheduledEventID, request.WorkerVersion); err != nil { mutable_state_impl.go
4488 return nil, err
4489 }
4490 > event := ms.hBuilder.AddActivityTaskCompletedEvent( mutable_state_impl.go
4491 > scheduledEventID,
4492 > startedEventID,
4493 > request.Identity,
4494 > request.Result,
4495 > ms.namespaceEntry.Name(),
4496 > )
4497 > if err := ms.ApplyActivityTaskCompletedEvent(event); err != nil {
4498 return nil, err
4499 }
4500
4501 > return event, nil mutable_state_impl.go
4502 }
4503
4504 func (ms *MutableStateImpl) ApplyActivityTaskCompletedEvent(
4505 event *historypb.HistoryEvent,
4506 > ) error { mutable_state_impl.go
4507 > attributes := event.GetActivityTaskCompletedEventAttributes()
4508 > scheduledEventID := attributes.GetScheduledEventId()
4509 >
4510 > return ms.DeleteActivity(scheduledEventID)
4511 > }
4512
4513 func (ms *MutableStateImpl) AddActivityTaskFailedEvent(