}}
if currentWorkflow != nil {
executionCASConditions = append(executionCASConditions, executionCASCondition{
mutable_state_store.go
runID: currentWorkflow.RunID,
// dbVersion is for CAS, so the db record version will be set to `currentWorkflow.DBRecordVersion`
// while CAS on `currentWorkflow.DBRecordVersion - 1`
dbVersion: currentWorkflow.DBRecordVersion - 1,
nextEventID: currentWorkflow.Condition,
})
}
return convertErrors(
conflictRecord,