536
// copied to ensure that the mutable state is not accessed after the workflow
537
// lock is released and that there is no data race.
539
>
NamespaceID: namespaceEntry.ID(),
540
>
Namespace: namespaceEntry.Name(),
541
>
Execution: &commonpb.WorkflowExecution{
542
>
WorkflowId: task.GetWorkflowID(),
543
>
RunId: task.GetRunID(),
544
>
},
545
>
WorkflowTypeName: executionInfo.WorkflowTypeName,
546
>
StartTime: startTime,
547
>
Status: mutableState.GetExecutionState().GetStatus(),
548
>
ExecutionTime: executionTime,
549
>
TaskID: task.GetTaskID(),
550
>
ShardID: t.shardContext.GetShardID(),
551
>
Memo: visibilityMemo,
552
>
TaskQueue: executionInfo.TaskQueue,
553
>
SearchAttributes: searchAttributes,
554
>
ParentExecution: parentExecution,
555
>
RootExecution: &commonpb.WorkflowExecution{
556
>
WorkflowId: executionInfo.RootWorkflowId,
557
>
RunId: executionInfo.RootRunId,
558
>
},
559
>
}
560
}
561