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

UpdateSegJobStatus
Syntax
UpdateSegJobStatus(doc_handle, status[, error_code]);
doc_handle
status
error_code
Description
Updates repository status of the post-processor job that contains the document specified in the doc_handle parameter returned by either the GetFirstSegDoc(), GetCurrSegDoc(), or GetNextSegDoc() function.
Returns
num<>0
Example
$doc_id = GetFirstSegDoc();
while(num($doc_id) > 0)
{
   $ret = UpdateSegJobStatus(num($doc_id), "processed");
   $doc_id = GetNextSegDoc($doc_id);
}
OpenText StreamServe 5.6 Updated: 2013-03-01