Translate

Thursday, 22 November 2012

schedule application engine using people code

  • first insert push button on page 
  • double click on push  button 


 write people code on field field change event

This is the code
Local ProcessRequest &MYRQST;

&MyAppName = "FL_PAR_CH_AE";
&MYRQST = CreateProcessRequest("Application Engine", &MyAppName);
&MYRQST.RunControlID = "1";
REM &MYRQST.RunLocation = "PSUNX";
&MYRQST.RunRecurrence = "M-F at 5pm";
&MYRQST.TimeZone = "IST";
REM &MYRQST.RUNDATETIME ="6:39:00AM IST";
&MYRQST.Schedule();
If &MYRQST.Status = 0 Then /* if Schedule status is success */
   WinMessage("schedule scceeded", 0);
Else
   WinMessage("error", 0);
End-If;


in above code i scheduled my AE to run after 5PM every day,after saving  page
go to IE peopletools----> process scheduler ---->process -->
process type = AE
process name = u r process name (AE name)
in process definition tab  give u r component name and process group = all pages
then save it
  • go to u r page click on push button then u r AE called and scheduled 
  • to see u r process request status go to people tools --> process monitor tab check u r process status
  • OR in data base type select * from ps_pmn_prcslist
  •  u r AE will run after 5 pm 

No comments:

Post a Comment