Beruflich Dokumente
Kultur Dokumente
RESTART ABILITY
Agenda
What Is Restart Ability ?
4-6
Restart an AE When To ?
7 - 14
Abending AE Gracefully
15
16 - 19
Restarting AE
20 - 23
24 - 26
27 - 28
Conclusion
29
With restart, if a failure occurs at any point in the process, user can
restart the program and expect the program to behave in the following
manner:
Ignore the steps that have already completed up to the last
successful commit
Begin processing at the next step after the last successful commit
This requires the capturing of the point where the failure occurs.
The recording of the current state that PeopleSoft Application
Engine performs is referred to as a checkpoint. Each time that
PeopleSoft Application Engine issues a commit with restart
enabled, it is check pointed.
Note: The restart feature enables perform commits more often in a
program.
5
2] With restart, if a failure occurs at any point in the process, the user
can restart the program and expect the program to resume from the
same point.
E.g. An Example where this situation will help is a batch to Send Email
to Vendors
Restart an AE When To ?
The section level property associated with restart is Section Type, which
has the options Prepare Only and Critical Updates.
10
During runtime, when the system arrives at the first section set to
Critical Updates, it sets the
AERUNCONTROL.AE_CRITICAL_PHASE = Y.
Once set, the value remains Y until the program completes
successfully. When the program completes, the corresponding
row is deleted.
If program terminates, the user can check this value.
The section that failed is critical and that the program should be restarted
12
13
Abending AE Gracefully
Abend is defined as
A controlled abnormal termination, means that Application Engine exits
gracefully because of a calculated error condition.
SQL errors while you have set On Error to Abort.
A PeopleCode return value, when On Return is set to Abort.
A SQL statement that affects no rows, when you have set On No
Rows to Abort.
16
17
18
If restart is enabled and you attempt to start a new process that matches
the run control ID and user ID for another process, you receive a suspend
error. This usually occurs when a user tries to run the program again after
receiving an error on the previous attempt.
To start the program over from the beginning, you can use SQL to delete
the row that corresponds to the failed program from
Application Engine run control table and your state record.
DELETE FROM PS_AERUNCONTROL
WHERE OPRID=OPRID
AND RUN_CNTL_ID=Run_Control_ID
DELETE FROM <State Record>
WHERE PROCESS_INSTANCE=Process_Instance
19
Restarting AE
21
1] Collect the command line values associated with the failed program.
database type
database name
user ID and password
run control ID
program name
process instance
2] Enter the following command line syntax at the command prompt
substituting the values from the previous step.
PSAE.EXE CT DB_TYPE -CD DB_NAME -CO OPRID -CP PASSWORD -R
RUN_CONTROL -AI PROGRAM_NAME -I PROCESS_INSTANCE
22
23
Program Purpose
For the given run control parameters (vendor range, payment date
etc.) we wish to send an email to every vendor that consists of his
payment details
24
25