All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.holunda.camunda.taskpool.api.business.DataIdentity.kt Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package io.holunda.camunda.taskpool.api.business

/**
 * Represents an identity of a data entry.
 */
interface DataIdentity {
  /**
   * String representation of an entry.
   */
  val entryType: EntryType
  /**
   * String representation of an entry.
   */
  val entryId: EntryId

  fun asString() = dataIdentityString(entryType = entryType, entryId = entryId)
}
/**
 * Id of business entry.
 */
typealias EntryId = String

/**
 * Type of business entry.
 */
typealias EntryType = String

/**
 * Separator.
 */
const val DATA_IDENTITY_SEPARATOR = "#"

/**
 * Constructs the data identity.
 */
fun dataIdentityString(entryType: EntryType, entryId: EntryId) = "$entryType$DATA_IDENTITY_SEPARATOR$entryId"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy