This operation claims an available task for the current user. Use it when a candidate user needs to take ownership of a task.
The base request is:
claimTask(taskId)
Use claimTask(...) to claim the task that matches the specified identifier.
The following example claims a task using an identifier stored in a process variable:
new RuntimeTaskService()
.claimTask(variables.taskId);