Understanding PeopleSoft Process Scheduler

This chapter discusses:

Click to jump to top of pageClick to jump to parent topicPeopleSoft Process Scheduler

The primary role of Process Scheduler is to support the PeopleSoft application environment. With a PeopleSoft application, you might want to perform certain processes (such as programs, batch programs, reports, and so on) behind the scenes of the online system. Running reports, posting journal entries, loading benefit enrollment forms, and calculating payroll deductions are all examples of processes that you might want to perform independently of the PeopleSoft application.

Using PeopleSoft Process Scheduler can streamline your business practices by enabling you to take advantage of the distributed computing environment at your site, whereby you can schedule performance-sensitive jobs to run on a powerful server while the online system is still available to end users.

PeopleSoft Process Scheduler enables you to:

Click to jump to top of pageClick to jump to parent topicPeopleSoft Process Scheduler Architecture

End users need only be concerned with successfully submitting process requests, monitoring their progress, and viewing their output in Report Manager. However, it’s important to understand how each part of PeopleSoft Process Scheduler functions.

The following sections describe the role of each of the basic components in a three-tier environment:

PeopleSoft Application Server

The application server runs the appropriate SQL against the database to add a row to the Process Request table (PSPRCSRQST) for the submitted process request. Process Monitor also uses SQL to fetch the process status from the Process Request table.

Note. In this context, application server refers to the physical machine on which the PeopleSoft Application Server runs. The PeopleSoft Application Server is the actual set of server processes controlled by BEA Tuxedo. The PeopleSoft Process Scheduler Server is a separate component that does not necessarily need to run on the application server.

PeopleSoft Process Scheduler Server Agent

The PeopleSoft Process Scheduler Server Agent is the component that resides on a server and runs as a process; that is, once it is initiated, it runs continuously in the background and requires no user interaction until it receives a request to shut down. Although the PeopleSoft Process Scheduler Server can run on the application server machine, it can also run on any supported batch server or database server.

Like each of the server processes, such as PSAPPSRV, that run within a PeopleSoft Application Server domain, the PeopleSoft Process Scheduler Server maintains its own SQL connection to the database server.

The PeopleSoft Process Scheduler Server Agent becomes idle for a specified interval of time, so that it does not consume server resources. It continues alternating between being idle and polling process until the database administrator stops it manually.

The PeopleSoft Process Scheduler Server Agent polls the Process Request table at a regular, user-defined interval to see if any process requests have been directed toward the server. If so, it starts the appropriate process, based on the requested run date and time. The agent also updates the run status of that process instance to Initiated and updates the session ID with the process ID (PID) of that process.

Once the PeopleSoft Process Scheduler Server Agent initiates a process, it is the responsibility of the started process—if it is API-Aware—to update the Run Status column in PSPRCSRQST accordingly. However, during the polling cycle, the agent also:

To do this, it uses the PID that is stored in the database when the process is started. If the PID does not exist, the process is then set to Error.

Database Server

The database server houses the Process Request tables that contain a variety of data related to the requests, such as command line parameters, output options, and process status.

Distribution Agent

Report distribution in PeopleSoft is closely tied to PeopleSoft Process Scheduler. Process Scheduler uses the PeopleSoft Process Scheduler Server Agent to run the reports and log files that you submit using a process request. Once they have completed, the Distribution Agent transfers these reports and log files to the Report Repository where they can be viewed from a web browser using PeopleSoft Pure Internet Architecture. Files that can be transferred to the Report Repository include:

Report distribution options enable you to restrict access to these reports based on user ID or role ID, as defined in PeopleSoft Security Administration.

In order for the Distribution Agent to pass authentication, you must ensure that the following rules are enforced:

The Distribution Agent process runs on the same server as the PeopleSoft Process Scheduler Server Agent. When the PeopleSoft Process Scheduler Server Agent is set up with a distribution node using the Server Definition page, the Distribution Agent is started either by the PeopleSoft Process Scheduler Server Agent or by BEA Tuxedo, depending on the operating system in which PeopleSoft Process Scheduler is started. In Windows 2000 and UNIX, the Distribution Agent is started through BEA Tuxedo, while on OS390, the Distribution Agent is started by the PeopleSoft Process Scheduler Server Agent.

The PeopleSoft Process Scheduler Server Agent and the Distribution Agent both check the status of each process in the Report List table (PS_CDM_LIST). When the PeopleSoft Process Scheduler Server Agent initiates a process request that has an output destination type of Web, or if the Server Definition page is set up to transfer system log or trace files to Report Manager, then an entry is inserted into the Report List table. Once the program that is associated with the process finishes, the status in the Report List table is updated to Generated, indicating that the files are ready to transfer to the Report Repository. In Windows 2000 and UNIX, where PeopleSoft Process Scheduler servers are started through BEA Tuxedo, the Process Scheduler (PSPRCSRV) sends a Tuxedo service to the Distribution Agent (PSDSTSRV) to initiate transferring of reports to the Report Repository. In OS390, the Distribution Agent polls the Report List table to determine which process requests have finished running and then transfers them to Report Repository.

See Using the PSADMIN Utility.

Report Repository

The Report Repository is the designated server where the Distribution Agent transfers reports that are generated from the PeopleSoft Process Scheduler Server. The repository can be set up on either a UNIX or Windows 2000 machine by installing PeopleSoft Pure Internet Architecture and certified web server software, (WebLogic or WebSphere), and can be used by multiple PeopleSoft databases. The Distribution Agent determines the Report Repository to which it should transfer the reports based on the setting specified in the server definition. When the Distribution Agent transfers all the files for a specific request, it creates a subdirectory under the designated directory specified in the PeopleSoft Pure Internet Architecture as the PSReports home directory. For example:<Database Name>/<Transfer date in YYYMMDD format>/<Report Instance>

Click to jump to top of pageClick to jump to parent topicPeopleSoft Process Scheduler Components

Process Scheduler has several components that work together to help you run reports and processes offline. After a job has been submitted, use Process Monitor to check the status of the job, then use Report Manager to view the output of the job through a web browser.

Process Scheduler Manager involves the interaction of these components, which you can select from the menu:

Process Type Definitions

Set global definitions for processes.

Process Definitions

Define settings that are specific to a process.

Job Definitions

Group processes.

Schedule JobSet Definitions

Describe the jobsets that run on a recurring basis, such as weekly or monthly.

Recurrence Definitions

Describe the frequency of processes that run on a recurring basis, such as weekly or monthly.

Server Definitions

Define to instances of the PeopleSoft Process Scheduler Server Agent.

Report Node Definitions

Define the report distribution node, including URL, home directory, and FTP address. Use this component to set the parameters that are needed for the PeopleSoft Process Scheduler Server to transfer reports and log and trace files that are generated from a process request to Report Manager.

Process System Settings

View or change the last process instance number, as well as the system’s default operating system.

Process Request

Submit a job or process to run. This component is commonly integrated into applications to support process requests made by selecting Run from PeopleSoft applications. The Process Request page enables you to specify variables, such as where a process runs and in what format the process output is generated.

Note. Depending on your role at your site, you might be concerned with only one or two of these components. Most end-users are concerned with only the basic tasks of submitting a process request, checking its progress, and viewing it in Report Manager.