57
targetWorkflow Workflow,
58
newWorkflow Workflow,
60
>
61
>
mutableState := targetWorkflow.GetMutableState()
62
>
63
>
// NOTE: this function does NOT mutate current workflow, target workflow or new workflow,
64
>
// workflow mutation is done in methods within executeTransaction function
65
>
66
>
// this is a performance optimization so most update does not need to
67
>
// check whether target workflow is current workflow by calling DB API
68
>
if !isWorkflowRebuilt && mutableState.IsCurrentWorkflowGuaranteed() {
69
// NOTE: if target workflow is rebuilt, then IsCurrentWorkflowGuaranteed is not trustworthy
70