Script functions reference > Script functions in alphabetical order > G > GetJobResourceIndex

GetJobResourceIndex
Syntax
GetJobResourceIndex();
Description
Retrieves the index of a job sent to a Job Resource output connector. This function must be called from an After Process script, and cannot be used in Post-processor scripting.
You can only call the GetJobResourceIndex function once for each job resource. Calling the function a second time will cause a new index to be allocated to the job resource, which will result in confusion as to which index belongs to which job resource.
See also the Job Resource output connector settings, and the script functions OutputLXFJobResource and DeleteJobResource.
Returns
num
Example
Enter the following in a PageOUT Process:
$pageoutresourceindex = GetJobResourceIndex();
The variable $pageoutresourceindex will contain the index of the job resource that is currently being created.
OpenText StreamServe 5.6 Updated: 2013-03-01