This article only applies to the Classic JOC interface
The Classic JOC user interface is entering retirement:
FEATURE AVAILABILITY ENDING WITH RELEASE 1.11
The JOC Cockpit user interface is replacing the Classic JOC interface:
FEATURE AVAILABILITY STARTING FROM RELEASE 1.11
See the JOC Cockpit - Navigation and Usability Article for more information about this subject.The filters in the JobScheduler JOC GUI are stored in cookies due to the implementation in Javascript.
- Since release 1.3.7.x you can set the filters by editing the configuration file custom.js.
- This file is stored in the ./config/operations_gui directory.
- For releases < 1.3.9 you will find the custom.js in the ./config/html directory.
- For further information about custom.js see How to configure JOC - an overview.
Filters are added like this:
_job_filter['filter name'] = 'regular expression'; //to set a job filter _job_chain_filter['filter name'] = 'regular expression'; //to set a job chain filter _order_filter['filter name'] = 'regular expression'; //to set an order filter //or use _project_filter['filter name'] = 'regular expression'; // which is effective for jobs, job chains and orders simultaneously
- Example 1:
The filterprojectA
contains all objects that are stored in the Hot Folder subdirectoryprojectA
:
_project_filter['projectA'] = '^/projectA/';
- Example 2:
The filterftpJobs
includes all jobs that have a suffix_ftp
in the job names:
_job_filter['ftpJobs'] = '_ftp$';
- Example 3:
The filtersomeJobChains
contains the job chainsmyFirstProject/myFirstJobChain
andmySecondProject/mySecondJobChain
:
_job_chain_filter['someJobChains'] = '^/(myFirstProject/myFirstJobChain|mySecondProject/mySecondJobChain)$'; //or _job_chain_filter['someJobChains'] = '^/my(First|Second)Project/my(First|Second)JobChain$';
- Example 4:
The filterhideTest1AndTest2
contains all objects that are not stored in the Hot Folder subdirectoriesdev/test1
anddev/test2
:
_project_filter['hideTest1AndTest2'] = '^/(?!dev/test1/|dev/test2/)';