Job Container (C_JOB)

A job container is used to gain access to jobs in the current site's site database. The job container is analogous to the Jobs window in the SMS Administrator. Thus, a job container contains, at the topmost level, job folders. Each type of job is represented as a type of job folder. For example, a Run Command On Workstation job is represented as an F_INSTALLJOB folder.

Jobs are SMS objects that store instructions for system actions. For example, you can define a Run Command On Workstation job to install a package on computers, or the SMS system can create a job to maintain part of the system.

Job folders do not contain any subfolders. The properties of a job are represented by the scalars within the job's folder.

Using a job filter, your application can specify the job folders that will appear in the container. For example, a job filter can be used to populate a job container with folders for only one type of job, such as a Run Command On Workstation job.

A job container has the following properties:

Property Value Description
Tag "Job container" String. A description of the container type.
Container type C_JOB Integer. Container type.
Applied filters JOB_FILTER Integer. Filters that can be applied to a job container. These filters act upon objects at the job container level.
Active filters JOB_FILTER Integer. Filters that are directly activated on the container. These filter types are used to retrieve the top-level folders in the container.
Immediate subfolders F_SYSTEMJOB

F_INSTALLJOB

F_REMPKGJOB

F_SRVINSTALLJOB

Integer. Types of subfolders that the container type can contain.