}
currentRunID := currentWorkflow.GetMutableState().GetExecutionState().GetRunId()
workflow_resetter.go
baseRunID := baseWorkflow.GetMutableState().GetExecutionState().GetRunId()
if currentRunID == baseRunID {
// There are just 2 runs to update - base & new run.
// Additionally since base is the same as current, we should ensure that we prepare only one of them for transaction and do it only once (to avoid DBRecordVersion conflict)
// So check if current was already prepared for transaction. If not prepare the mutation for transaction.
if currentWorkflowMutation == nil {
currentWorkflowMutation, currentWorkflowEventsSeq, err = currentWorkflow.GetMutableState().CloseTransactionAsMutation(
ctx,