Script functions reference > Script functions in alphabetical order > U

U
UpdateDocStatus
Syntax
UpdateDocStatus(status[, error_code]);
status
A string specifying the new document status. The following values are available: stored, processing, processed, delivering, delivered, terminated, suspended, deleted, inprogress, partiallyprocessed, custom, custom1, custom2, custom3, custom4, custom5, custom6, custom7, custom8, custom9.
error_code
Description
Updates status of the current document in the repository. The function can be used at the following post-processing scripting levels:
Before and after document, process and page.
Returns
num<>0
Example
$ret = UpdateDocStatus("processed");
OpenText StreamServe 5.6 Updated: 2013-03-01