473
474
if !applied {
476
>
conflictRecord,
477
>
conflictIter,
478
>
currentRecordRunID,
479
>
shardID,
480
>
request.RangeID,
481
>
requestCurrentRunID,
482
>
[]executionCASCondition{{
483
>
runID: newWorkflow.ExecutionState.RunId,
484
>
// dbVersion is for CAS, so the db record version will be set to `updateWorkflow.DBRecordVersion`
485
>
// while CAS on `updateWorkflow.DBRecordVersion - 1`
486
>
dbVersion: newWorkflow.DBRecordVersion - 1,
487
>
nextEventID: newWorkflow.Condition,
488
>
}},
489
>
)
490
>
}
491
492
return &p.InternalCreateWorkflowExecutionResponse{}, nil