How to set custom Search Attributes in Java
To set a custom Search Attribute, call the setSearchAttributes()
method.
WorkflowOptions workflowOptions =
WorkflowOptions.newBuilder()
.setSearchAttributes(generateSearchAttributes())
.build();
generateSearchAttributes()
is a Map<String, ?>
from the Search Attribute used as the key to a value of one of the following types.
String
Long
Integer
Boolean
Double
OffsetDateTime