This operation releases a claimed task. Use it when a script needs to return a task to the candidate pool so that it is no longer claimed.
The base request is:
releaseTask(taskId)
Use releaseTask(...) to release the claimed task that matches the specified identifier.
The following example releases a task using an identifier stored in a process variable:
new RuntimeTaskService()
.releaseTask(variables.taskId);