400
401
if newWorkflow != nil {
402
>
row.CreateRequestID = newWorkflow.ExecutionState.CreateRequestId
execution.go
403
>
row.State = newWorkflow.ExecutionState.State
404
>
row.Status = newWorkflow.ExecutionState.Status
405
>
row.LastWriteVersion = newWorkflow.LastWriteVersion
406
>
row.NamespaceID = primitives.MustParseUUID(newWorkflow.NamespaceID)
407
>
row.RunID = primitives.MustParseUUID(newWorkflow.ExecutionState.RunId)
408
>
row.StartTime = getStartTimeFromState(newWorkflow.ExecutionState)
409
>
row.Data = newWorkflow.ExecutionStateBlob.Data
410
>
row.DataEncoding = newWorkflow.ExecutionStateBlob.EncodingType.String()
411
>
412
>
if !bytes.Equal(namespaceID, row.NamespaceID) {
413
return serviceerror.NewUnavailable("UpdateWorkflowExecution: cannot continue as new to another namespace")
414
}