This operation pauses a process instance using administrative access. Use it when an administrative script needs to pause a process instance regardless of the current user permissions.
The base request is:
suspend(processInstanceId)
Use suspend(...) to pause the process instance that matches the specified identifier.
The following example pauses a process instance using an identifier stored in a process variable:
new RuntimeProcessInstanceAdminService()
.suspend(variables.processInstanceId);