Peoplecode调用AppEngine

There have been many requests from PeopleSoft Pros wanting to call an appengine program 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 also.

The following code calls the Application Engine program named YOURAPPENGINEPROGRAM, and passes it the necessary initialization values.


&MYRECORD = CreateRecord(RECORD.MY_INIT_VALUES);
&MYRECORD.FIELD1.Value = "123abc"; /* here you are setting the initial values */

CallAppEngine("YOURAPPENGINEPROGRAM", &MYRECORD);

if you needni't  pass Parameters

use this :

Local ProcessRequest &rqst1;
  
   &rqst1 = CreateProcessRequest();
   &rqst1.RunControlID = "psprocessview";
   &rqst1.ProcessType = "Application Engine";
   &rqst1.ProcessName = "ALI_COURSE_C";
   &rqst1.Schedule();

猜你喜欢

转载自blog.csdn.net/rizhinan/article/details/5348404