4592
searchAttributes *commonpb.SearchAttributes,
4593
nsName string,
4595
>
unaliasedSearchAttrs, err := searchattribute.UnaliasFields(
4596
>
wh.saMapperProvider,
4597
>
searchAttributes,
4598
>
nsName,
4599
>
)
4600
>
if err != nil {
4601
return nil, fmt.Errorf("create annotations: %w", err)
4602
}
4603
>
saTypeMap, err := wh.saProvider.GetSearchAttributes(wh.visibilityMgr.GetIndexName(), false)
workflow_handler.go
4604
>
if err != nil {
4605
return nil, fmt.Errorf("create annotations: %w", err)
4606
}
4608
>
annotatedAttributes, err := searchattribute.AliasFields(
4609
>
wh.saMapperProvider,
4610
>
unaliasedSearchAttrs,
4611
>
nsName,
4612
>
)
4613
>
if err != nil {
4614
return nil, fmt.Errorf("create annotations: %w", err)
4615
}
4617
}
4618