306
// need to reset target workflow (which is also the current workflow)
307
// to accept events to be reapplied
309
>
namespaceID := namespace.ID(baseMutableState.GetExecutionInfo().NamespaceId)
310
>
workflowID := baseMutableState.GetExecutionInfo().WorkflowId
311
>
baseRunID := baseMutableState.GetExecutionState().GetRunId()
312
>
resetRunID := uuid.NewString()
313
>
baseRebuildLastEventID := baseMutableState.GetLastCompletedWorkflowTaskStartedEventId()
314
>
if baseRebuildLastEventID == common.EmptyEventID {
315
// No completed workflow task. Pick the reset anchor by scenario:
316
// - real pending workflow task: anchor at its ScheduledEventID. The resetter