his operation retrieves a task by its identifier. Use it when a script needs to retrieve the details of a specific task.
The base request is:
getTaskById(taskId)
Use getTaskById(...) to retrieve the task that matches the specified identifier.
The following example retrieves a task using an identifier stored in a process variable:
variables.task =
new RuntimeTaskService()
.getTaskById(variables.taskId);