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

dev.bpmcrafters.processengineapi.adapter.commons.task.TaskSubscriptionHandle.kt Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package dev.bpmcrafters.processengineapi.adapter.commons.task

import dev.bpmcrafters.processengineapi.task.TaskHandler
import dev.bpmcrafters.processengineapi.task.TaskTerminationHandler
import dev.bpmcrafters.processengineapi.task.TaskSubscription
import dev.bpmcrafters.processengineapi.task.TaskType

/**
 * Task subscription handle.
 */
data class TaskSubscriptionHandle(
  val taskType: TaskType,
  val payloadDescription: Set?,
  val restrictions: Map,
  val taskDescriptionKey: String?,
  val action: TaskHandler,
  val termination: TaskTerminationHandler
) : TaskSubscription {
  override fun toString(): String {
    return "TaskSubscriptionHandle(taskType=$taskType, payloadDescription=$payloadDescription, restrictions=$restrictions, taskDescriptionKey=$taskDescriptionKey"
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy