Script functions reference > Script functions in alphabetical order > U > UpdateSegDocStatus

UpdateSegDocStatus
Syntax
UpdateSegDocStatus(doc_handle, status[, error_code]);
A string specifying the new job 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.
Description
Updates repository status of the document specified in the doc_handle parameter returned by either the GetFirstSegDoc(), GetCurrSegDoc(), or the GetNextSegDoc() function.
Returns
num<>0
Example
$doc_id = GetFirstSegDoc();
while(num($doc_id) > 0)
{
   $ret = UpdateSegDocStatus(num($doc_id), "processed");
   $doc_id = GetNextSegDoc($doc_id);
}
OpenText StreamServe 5.6 Updated: 2013-03-01