Job Processor Scripting
A Job Processor script is PHP code that runs in the context of a job being processed. The script runs after a job has been parsed and all user/queue policies have been applied. It runs before the job is made ready
or paused
.
To use job scripting, make sure that Unlock Job Scripting is enabled in your Easy Config security settings.
The typical usage of the script is the modification of the job based on its properties. For example:
if ($this->pageCount > 10) {
$this->duplex = "longEdge";
}
In this example, if the job has more than 10 pages then it is released as duplex. $this
is the job being processed and is an instance of the Job
class.
You can use basic PHP functions. For details about available classes and functions, see Job Scripting Reference.
Set up job processing with scripting
Open the queue where you want to use scripting and go to the Job processing tab.
Expand the Scripting (PHP) section.
Type your PHP script into the field Actions after processing.
Click Save.
