173
// It is unclear if currentExecutionState.RunId is the same as
174
// currentWorkflowLease.GetContext().GetWorkflowKey().RunID
176
>
NamespaceID: currentWorkflowLease.GetContext().GetWorkflowKey().NamespaceID,
177
>
WorkflowID: currentWorkflowLease.GetContext().GetWorkflowKey().WorkflowID,
178
>
RunID: currentExecutionState.RunId,
179
>
}
180
>
181
>
workflowMutationFunc, err := api.ResolveDuplicateWorkflowID(
182
>
shardContext,
183
>
workflowKey,
184
>
namespaceEntry,
185
>
newRunID,
186
>
currentExecutionState.State,
187
>
currentExecutionState.Status,
188
>
currentExecutionState.RequestIds,
189
>
currentExecutionState.FirstExecutionRunId,
190
>
workflowIDReusePolicy,
191
>
workflowIDConflictPolicy,
192
>
currentWorkflowStartTime,
193
>
nil,
194
>
false,
195
>
)
196
>
return workflowMutationFunc, err
197
}
198