In this post I will show you how to trace an application engine process using the Process Definitions without setting the trace in the Process Scheduler’s psprcs.cfg configuration file.
Navigate to the process definition of the application engine that you would like to trace (PeopleTools > Process Scheduler > Processes). Go to the Overrride Options tab, and from the Parameter List drop down select Append, and in the edit box next to it add the following line:
You can use the SendMail PeopleCode function to send emails from within PeopleCode. You can also call this function from an Application Engine.
Note: Make sure your SMTP server is configured properly or the SendMail function will fail.
A sample code to read a file using file layouts and insert data read into a record.
Here is a quick Application Engine section that looks up user's email addresses under a certain ROLE and sends an email notification regarding, well, what ever you'd like.
First, you would need a "Do Select" step to loop through the email addresses (if more than one) and call the PeopleCode step below it to send the email. Your Do Select should have the following SQL:
Here is a good sample of how to launch an SQR from within PeopleCode. You can use the peoplecode function called “ScheduleProcess”. Here is the example:
The PeopleCode below will show you how to call an Application Engine from PeopleCode. Some refer to this as “Real-Time Application Engine Processing.” For example, when a user save’s a page, you may want a specific App engine program to run. You can also execute this code in a field change event.
The following code calls the Application Engine program named YouAppEngProg, and passes it the necessary initialization values.
The select statement below is preformed by AP Voucher Build (AP_VCHRBLD) Application Engine to validate an AP Business Unit:
The select statement below is preformed by AP Voucher Build (AP_VCHRBLD) Application Engine to validate a Vendor ID:
The ReUse in Application Engine was brought to my attention by a great blog that I follow regularly. The original post can be found at PeopleSoftTipster.
The ReUse statement setting on an Application Engine is a great way to increase performance. It’s useful when you have a SQL object that is called multiple times, for instance when you have a DoSelect that runs a SQL Step repeatedly, substituting different Bind variables in each time.
Title | Under | Posted on |
---|---|---|
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
Search Results | PeopleSoft Technical | 11/15/2017 - 10:24am |
PS Query - Need Dependency and Prunable examples | PeopleSoft Technical | 10/19/2017 - 11:28am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Recent comments
6 hours 52 min ago
1 day 6 hours ago
1 day 6 hours ago
4 weeks 5 days ago
4 weeks 5 days ago
4 weeks 5 days ago
9 weeks 2 days ago
11 weeks 1 day ago
11 weeks 5 days ago
13 weeks 5 days ago