Skip to main content
Skip table of contents

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:

PHP
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

  1. Open the queue where you want to use scripting and go to the Job processing tab.

  2. Expand the Scripting (PHP) section.

  3. Type your PHP script into the field Actions after processing.

  4. Click Save.

Actions after processing properties sub-tab

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.