temporalio/sdk-go

Typed search attributes issue with SignalWithStartWorkflow

Closed this issue · 1 comments

Typed search attributes defined in workflow options, for example:

    workflowOptions := client.StartWorkflowOptions{
	ID:                    "typed-search_attributes_test",
	TaskQueue:             "typed-search-attributes",
	TypedSearchAttributes: temporal.NewSearchAttributes(typedsearchattributes.CustomIntKey.ValueSet(1)),
}

are propagated fine via ExecuteWorkflow but are missed to be propagated to new execution via SignalWithStartWorkflow
(when no workflow with workflow id exists, so new execution is created)

Thanks, I think this is a bug.

searchAttr, err := serializeUntypedSearchAttributes(in.Options.SearchAttributes)
is supposed to look like
searchAttr, err := serializeSearchAttributes(in.Options.SearchAttributes, in.Options.TypedSearchAttributes)
We will fix