Package io.iworkflow.core.persistence
Class SearchAttributeDef
- java.lang.Object
-
- io.iworkflow.core.persistence.SearchAttributeDef
-
- All Implemented Interfaces:
PersistenceFieldDef
@Immutable public abstract class SearchAttributeDef extends java.lang.Object implements PersistenceFieldDef
-
-
Constructor Summary
Constructors Constructor Description SearchAttributeDef()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SearchAttributeDefcreate(SearchAttributeValueType attributeType, java.lang.String key)The search attribute types are all from Cadence/Temporal See doc https://cadenceworkflow.io/docs/concepts/search-workflows/ and https://docs.temporal.io/concepts/what-is-a-search-attribute/ to understand how to register new search attributes and run query NOTE that KEYWORD_ARRAY should be registered as KEYWORD in Cadence/Temporal.abstract SearchAttributeValueTypegetSearchAttributeType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.iworkflow.core.persistence.PersistenceFieldDef
getKey
-
-
-
-
Method Detail
-
getSearchAttributeType
public abstract SearchAttributeValueType getSearchAttributeType()
-
create
public static SearchAttributeDef create(SearchAttributeValueType attributeType, java.lang.String key)
The search attribute types are all from Cadence/Temporal See doc https://cadenceworkflow.io/docs/concepts/search-workflows/ and https://docs.temporal.io/concepts/what-is-a-search-attribute/ to understand how to register new search attributes and run query NOTE that KEYWORD_ARRAY should be registered as KEYWORD in Cadence/Temporal. Cadence/Temporal use it interchangably. But in IWF, we like things to be explicit.- Parameters:
attributeType- the typekey- the key- Returns:
- the definition
-
-