ProcessResult

The process() call returns a ProcessResult object, which has the following properties, depending on the type of call (submit for approval or process object already submitted to for approval):

NameTypeDescription
actorIdsIDIDs of the users who are currently assigned to this approval step.
entityIdIDThe object being processed.
errorsError[]The set of errors returned if the request failed.
instanceIdIDThe ID of the ProcessInstance associated with the object submitted for processing.
instanceStatusstringThe status of the current process instance (not an individual object but the entire process instance). The valid values are “Approved,” “Rejected,” “Removed,” or “Pending.”
newWorkItemIdsID[]Case-insensitive IDs that point to ProcessInstanceWorkitem items (the set of pending approval requests).
successbooleantrue if processing or approval completed successfully.