dev.bpmcrafters.processengineapi.task.UserTaskCompletionApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of process-engine-api Show documentation
Show all versions of process-engine-api Show documentation
Java API for engine-independent process functionality.
package dev.bpmcrafters.processengineapi.task
import dev.bpmcrafters.processengineapi.Empty
import java.util.concurrent.Future
/**
* API for completion of service tasks.
* @since 0.0.1
*/
interface UserTaskCompletionApi {
/**
* Complete the task.
* @param cmd command to complete the task.
* @return future indicating the completion.
*/
fun completeTask(cmd: CompleteTaskCmd): Future
/**
* Completes the task by throwing an BPMN error.
* @param cmd command to complete the task.
* @return future indicating the completion.
*/
fun completeTaskByError(cmd: CompleteTaskByErrorCmd): Future
}