724
workflowTaskCompletedEventID int64,
725
command *commandpb.UpsertWorkflowSearchAttributesCommandAttributes,
727
>
event := b.createHistoryEvent(enumspb.EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES, b.timeSource.Now())
728
>
event.Attributes = &historypb.HistoryEvent_UpsertWorkflowSearchAttributesEventAttributes{
729
>
UpsertWorkflowSearchAttributesEventAttributes: &historypb.UpsertWorkflowSearchAttributesEventAttributes{
730
>
WorkflowTaskCompletedEventId: workflowTaskCompletedEventID,
731
>
SearchAttributes: command.SearchAttributes,
732
>
},
733
>
}
734
>
return event
735
>
}
736
737
func (b *EventFactory) CreateWorkflowPropertiesModifiedEvent(