477
}
478
480
>
aliasedCustomSAs, err := searchattribute.AliasFields(p.searchAttributesMapperProvider, customSAs, namespaceName.String())
481
>
if err != nil {
482
return nil, err
483
}
485
>
if err != nil {
486
return nil, err
487
}
488
490
>
Execution: &commonpb.WorkflowExecution{
491
>
WorkflowId: internalExecution.WorkflowID,
492
>
RunId: internalExecution.RunID,
493
>
},
494
>
Type: &commonpb.WorkflowType{
495
>
Name: internalExecution.TypeName,
496
>
},
497
>
StartTime: timestamppb.New(internalExecution.StartTime),
498
>
ExecutionTime: timestamppb.New(internalExecution.ExecutionTime),
499
>
Memo: userMemo,
500
>
SearchAttributes: aliasedCustomSAs,
501
>
TaskQueue: internalExecution.TaskQueue,
502
>
Status: internalExecution.Status,
503
>
RootExecution: &commonpb.WorkflowExecution{
504
>
WorkflowId: internalExecution.RootWorkflowID,
505
>
RunId: internalExecution.RootRunID,
506
>
},
507
>
// TODO: poplulate FirstRunId once it has been added as a system search attribute.
508
>
}
509
>
510
>
if internalExecution.ParentWorkflowID != "" {
511
executionInfo.ParentExecution = &commonpb.WorkflowExecution{
512
WorkflowId: internalExecution.ParentWorkflowID,