Class SearchAttributeDef

java.lang.Object
io.iworkflow.core.persistence.SearchAttributeDef
All Implemented Interfaces:
PersistenceFieldDef

@Immutable public abstract class SearchAttributeDef extends Object implements PersistenceFieldDef
  • Constructor Details

    • SearchAttributeDef

      public SearchAttributeDef()
  • Method Details

    • getSearchAttributeType

      public abstract SearchAttributeValueType getSearchAttributeType()
    • create

      public static SearchAttributeDef create(SearchAttributeValueType attributeType, 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 type
      key - the key
      Returns:
      the definition