This operation retrieves a process instance by its identifier using administrative access. Use it when a script needs to inspect a process instance outside the normal user scope. If you don't need the elevated privileges, use Retrieve a Process Instance by its Identifier without them instead.
The base request is:
getProcessInstanceById(processInstanceId)
The following example retrieves a process instance using an identifier stored in a process variable:
variables.process =
new RuntimeProcessInstanceAdminService()
.getProcessInstanceById(variables.processInstanceId);