Class DataAttributeDef

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

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

    • DataAttributeDef

      public DataAttributeDef()
  • Method Details

    • getDataAttributeType

      public abstract Class getDataAttributeType()
    • isPrefix

      public abstract Boolean isPrefix()
    • create

      public static DataAttributeDef create(Class dataType, String key)
      iWF will verify if the key has been registered for the data attribute created using this method, allowing users to create only one data attribute with the same key and data type.
      Parameters:
      dataType - required.
      key - required. The unique key.
      Returns:
      a data attribute definition
    • createByPrefix

      public static DataAttributeDef createByPrefix(Class dataType, String keyPrefix)
      iWF now supports dynamically created data attributes with a shared prefix and the same data type. (E.g., dynamically created data attributes of type String can be named with a common prefix like: data_attribute_prefix_1: "one", data_attribute_prefix_2: "two") iWF will verify if the prefix has been registered for data attributes created using this method, allowing users to create multiple data attributes with the same prefix and data type.
      Parameters:
      dataType - required.
      keyPrefix - required. The common prefix of a set of keys to be created later.
      Returns:
      a data attribute definition