387
creationParams *creationParams,
388
currentWorkflowConditionFailed *persistence.CurrentWorkflowConditionFailedError,
390
>
// TODO(stephanos): remove this hack
391
>
// This is here for Update-with-Start to reapply the Update after it was aborted previously.
392
>
if _, err := s.createOrUpdateLeaseFn(creationParams.workflowLease, s.shardContext, nil); err != nil {
393
return err
394
}
395
>
return creationParams.workflowLease.GetContext().CreateWorkflowExecution(
api.go
396
>
ctx,
397
>
s.shardContext,
398
>
persistence.CreateWorkflowModeUpdateCurrent,
399
>
currentWorkflowConditionFailed.RunID,
400
>
currentWorkflowConditionFailed.LastWriteVersion,
401
>
creationParams.workflowLease.GetMutableState(),
402
>
creationParams.workflowSnapshot,
403
>
creationParams.workflowEventBatches,
404
>
historyi.TransactionPolicyActive,
405
>
)
406
}
407