File to modify
To enable approvals, we will be modifying tools setup file.
This can be access under (1) Admin -> Setup -> Configuration files -> (2) YCE tools setup: edit
The 'tool_setup' has a section per job-type and also the default, which is applicable for all job-types.
The 'levels' attribute of the 'approvals' record is a list of user/client-levels that can 'approve' a scheduled job.
When the 'level' value has the numbers '3', '4', '5' and '6' (producing “3456”), the checkbox is available for 'engineer' through 'system' level privileges.
'limit' controls the total number of jobs in the scheduler of the job-type that are in a 'scheduled' or 'pending' state.
'threshold' defines how many of these jobs may be submitted to the scheduler before new jobs are set 'pending' requiring an approval.
State Machine:
Below diagram gives an understanding of job states at various stages of job.
Example: Setting up Job approvals for the operator user by the Engineer user
Consider a user named oper of the group operator(user-level 2)
(1) Admin -> Setup -> Configuration files
(2) For the job_type="default" (which would mean for all type of jobs.. listed in the same configuration file scrolling above)
for approvals name = "1" (browser) and "2" (operator), update the values of levels to "3456" which would mean all the users of engineers and higher levels can approve the job.