323
}
324
325
>
func convertToExecutionInfo(record *archiverspb.VisibilityRecord, saTypeMap searchattribute.NameTypeMap) (*workflowpb.WorkflowExecutionInfo, error) {
visibility_archiver.go
326
>
searchAttributes, err := searchattribute.Parse(record.SearchAttributes, &saTypeMap)
327
>
if err != nil {
328
return nil, err
329
}
330
332
>
Execution: &commonpb.WorkflowExecution{
333
>
WorkflowId: record.GetWorkflowId(),
334
>
RunId: record.GetRunId(),
335
>
},
336
>
Type: &commonpb.WorkflowType{
337
>
Name: record.WorkflowTypeName,
338
>
},
339
>
StartTime: record.StartTime,
340
>
ExecutionTime: record.ExecutionTime,
341
>
CloseTime: record.CloseTime,
342
>
ExecutionDuration: record.ExecutionDuration,
343
>
Status: record.Status,
344
>
HistoryLength: record.HistoryLength,
345
>
Memo: record.Memo,
346
>
SearchAttributes: searchAttributes,
347
>
}, nil
348
}