mutable_state_impl.go ×5

Frontier kind: Code frontier

unlabeled · c_aa6f9d06b75c

3 tests · 9958 LOC · 266 files · introduces 0 tests · 38 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges38 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2145 ranges9958 lines · 266 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: 38 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

5339 control string, // TODO this field is probably deprecated
5340 cause enumspb.SignalExternalWorkflowExecutionFailedCause,
5341 > ) (*historypb.HistoryEvent, error) { mutable_state_impl.go
5342 > opTag := tag.WorkflowActionExternalWorkflowSignalFailed
5343 > if err := ms.checkMutability(opTag); err != nil {
5344 return nil, err
5345 }
5346
5347 > _, ok := ms.GetSignalInfo(initiatedID) mutable_state_impl.go
5348 > if !ok {
5349 ms.logWarn(mutableStateInvalidHistoryActionMsg, opTag,
5350 tag.WorkflowEventID(ms.GetNextEventID()),
5354 }
5355
5356 > event := ms.hBuilder.AddSignalExternalWorkflowExecutionFailedEvent( mutable_state_impl.go
5357 > common.EmptyEventID, // TODO this field is not used at all
5358 > initiatedID,
5359 > targetNamespace,
5360 > targetNamespaceID,
5361 > workflowID,
5362 > runID,
5363 > control, // TODO this field is probably deprecated
5364 > cause,
5365 > )
5366 > if err := ms.ApplySignalExternalWorkflowExecutionFailedEvent(event); err != nil {
5367 return nil, err
5368 }
5369 > return event, nil mutable_state_impl.go
5370 }
5371
5372 func (ms *MutableStateImpl) ApplySignalExternalWorkflowExecutionFailedEvent(
5373 event *historypb.HistoryEvent,
5374 > ) error { mutable_state_impl.go
5375 > initiatedID := event.GetSignalExternalWorkflowExecutionFailedEventAttributes().GetInitiatedEventId()
5376 >
5377 > return ms.DeletePendingSignal(initiatedID)
5378 > }
5379
5380 func (ms *MutableStateImpl) AddTimerStartedEvent(
go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 16 introduced LOC · 3 ranges

Open complete file

1559 control string,
1560 failedCause enumspb.SignalExternalWorkflowExecutionFailedCause,
1562 > return t.updateWorkflowExecution(ctx, wfContext, true,
1563 > func(mutableState historyi.MutableState) error {
1564 > if !mutableState.IsWorkflowExecutionRunning() {
1565 return serviceerror.NewNotFound("Workflow is not running.")
1566 }
1567
1568 > _, ok := mutableState.GetSignalInfo(task.InitiatedEventID) transfer_queue_active_task_executor.go
1569 > if !ok {
1570 return workflow.ErrMissingSignalInfo
1571 }
1572
1573 > _, err := mutableState.AddSignalExternalWorkflowExecutionFailedEvent( transfer_queue_active_task_executor.go
1574 > task.InitiatedEventID,
1575 > targetNamespace,
1576 > targetNamespaceID,
1577 > targetWorkflowID,
1578 > targetRunID,
1579 > control,
1580 > failedCause,
1581 > )
1582 > return err
1583 })
1584 }