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):
| Name | Type | Description |
|---|---|---|
| actorIds | ID[] | IDs of the users who are currently assigned to this approval step. |
| entityId | ID | The object being processed. |
| errors | Error[] | The set of errors returned if the request failed. |
| instanceId | ID | The ID of the ProcessInstance associated with the object submitted for processing. |
| instanceStatus | string | The status of the current process instance (not an individual object but the entire process instance). The valid values are “Approved,” “Rejected,” “Removed,” or “Pending.” |
| newWorkItemIds | ID[] | Case-insensitive IDs that point to ProcessInstanceWorkitem objects (the set of new workflow items created). |
| success | boolean | true if processing or approval completed successfully. |