2.1.3 Job type considerations
Because there are many different types of jobs, you must order the jobs that you are defining according to the type of process required. JP1/AJS3 provides the following job types:
-
Standard job
-
OR job
-
Judgment job
-
Event job
-
Action job
-
Custom job
-
Passing information setting job
-
HTTP connection job
-
Custom event job
The characteristics of each type of job are described below.
- Organization of this subsection
(1) Standard job
This type of job executes processing by specifying an executable file. The following table lists the types of executable files that can be specified in each type of standard job.
No. |
Job type |
Description |
Specifiable executable files |
---|---|---|---|
1 |
Unix job |
Process executed on a UNIX host. |
|
2 |
PC job |
Process executed on a Windows host. |
|
3 |
QUEUE job |
Process executed by submitting a job to a specified queue. This job type is used for linking with other systems (such as JP1/OJE). |
|
4 |
Flexible job |
|
|
- #
-
To execute an .spt file, JP1/Script must also be installed on the host running the job.
- Supplementary note
-
In an environment in which the agent host can be managed by the manager host because the host name and IP address are fixed, we recommend that you use PC jobs or Unix jobs rather than flexible jobs.
(2) OR job
For an OR job, you define a number of jobs (event jobs and custom event jobs) which will monitor the system for a specific event. You define these event jobs and custom event jobs as the preceding jobs of the OR job. If any one of the monitored events occurs, the OR job executes its succeeding job.
For details, see 3.1.1(1)(b) OR job in the manual JP1/Automatic Job Management System 3 Overview.
(3) Judgment job
A judgment job checks whether a given condition is satisfied.
The judgment can be based on the following conditions:
-
The return code of the preceding job
-
Whether a specific file exists
-
The result of a comparison between variables
For details, see 3.1.1(1)(c) Judgment job in the manual JP1/Automatic Job Management System 3 Overview.
(4) Event job
An event job monitors an event occurring in the system. You can define an event job as the start condition for a job flow or jobnet, so that the particular job or jobnet will be executed only when the monitored event occurs.
The following table describes each event job.
No. |
Event job name |
Description |
---|---|---|
1 |
Receive JP1 event job |
This job terminates when it receives a specific event from JP1/Base. |
2 |
Monitoring files job |
This job terminates when a specific file is created, deleted, or updated. |
3 |
Receive mail job |
This job terminates when it receives a specific email. |
4 |
Monitoring log files job |
This job is linked with the log file trapping of JP1/Base, and terminates when specific information is written to the specified log file. |
5 |
Monitoring event log job |
This job is linked with the log file trapping of JP1/Base, and terminates when specific information is written to the Windows event log file. |
6 |
Interval control job |
This job terminates when the specified time period elapses. |
7 |
Receive MQ message job# |
This job terminates when it receives a specific message from MQSeries. |
8 |
Receive MSMQ message job |
This job terminates when it receives a specific message from MSMQ. |
- Note
-
JP1/AJS3 must be linked with the appropriate program to use a Receive mail job, Receive MQ message job, or Receive MSMQ message job. For details, see the JP1/Automatic Job Management System 3 Linkage Guide.
- #
-
Does not apply to Linux.
Operation of event jobs is independent of JP1 user permissions and the authority level defined for the job (by owner, JP1 resource group, or by the user executing the job). In Windows, because event job operation is governed by the account rights to the JP1/AJS3 service, JP1/AJS3 service rights must be set in advance.
(5) Action job
An action job executes a specific process. You can combine an action job with an event job or a custom event job to execute a process (action) when an event occurs. Typical actions might be to send a JP1 event, an email message, or a status notification.
The following table describes each action job.
No. |
Action job name |
Description |
---|---|---|
1 |
Send JP1 event job |
Sends a JP1 event to the event service of JP1/Base. |
2 |
Send mail job |
Sends an email message. |
3 |
OpenView Status Report job |
Sends a status to HP NNM. |
4 |
Send MQ message job# |
Sends a message to MQSeries. |
5 |
Send MSMQ message job |
Sends a message to MSMQ. |
- Note
-
JP1/AJS3 must be linked with the appropriate program to use a Send mail job, Send MQ message job, Send MSMQ message job, or OpenView Status Report job. For details on program linkage, see the JP1/Automatic Job Management System 3 Linkage Guide.
- #
-
Does not apply to Linux.
(6) Custom job
A custom job is used to link an external program with JP1/AJS3 to execute processing.
For details, see 3. Adding Custom Jobs in the JP1/Automatic Job Management System 3 Linkage Guide.
(7) Passing information setting job
A passing information setting job extracts the necessary information from a standard output file that is output by a preceding job, and then passes that information to a succeeding job. When a job needs to reference information that changes dynamically, you can have a job output the information to a standard output file and use a passing information setting job to extract this information for use in a succeeding job.
For details, see 3.1.1(1)(g) Passing information setting job in the manual JP1/Automatic Job Management System 3 Overview.
(8) HTTP connection job
An HTTP connection job can send a request or receive a response via HTTP. You can use an HTTP connection job to call a web API (such as the REST API) that is provided in a cloud environment or on a web server. HTTP connection jobs can also link a JP1/AJS3-based business system with a business system on the web.
For details, see 3.1.1(1)(h) HTTP connection job in the manual JP1/Automatic Job Management System 3 Overview.
(9) Custom event job
A custom event job has the functionality of both an event job and custom job. A custom event job links with a non-JP1/AJS3 program to monitor occurrence of events. In the same way as an ordinary event job, by defining a custom event job in a job flow or as a jobnet start condition, the job or jobnet can be started when a specific event occurs.