632
case p.UpdateWorkflowModeUpdateCurrent:
633
if newWorkflow != nil {
635
>
newNamespaceID := newWorkflow.NamespaceID
636
>
newWorkflowID := newWorkflow.WorkflowID
637
>
newRunID := newWorkflow.RunID
638
>
639
>
if namespaceID != newNamespaceID {
640
return serviceerror.NewInternal("UpdateWorkflowExecution: cannot continue as new to another namespace")
641
}
642
644
>
newRunID,
645
>
newWorkflow.ExecutionStateBlob.Data,
646
>
newWorkflow.ExecutionStateBlob.EncodingType.String(),
647
>
newLastWriteVersion,
648
>
newWorkflow.ExecutionState.State,
649
>
shardID,
650
>
rowTypeExecution,
651
>
newNamespaceID,
652
>
newWorkflowID,
653
>
currentRecordRunID,
654
>
defaultVisibilityTimestamp,
655
>
rowTypeExecutionTaskID,
656
>
runID,
657
>
)
658
659
} else {