You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Schedule Application Engine

2 replies [Last post]
ermayank's picture
User offline. Last seen 6 years 21 weeks ago. Offline
Joined: 01/27/2009
Posts: 5

Hi,
Can we schedule application engine thru peoplecode if yes could you plz share the code.

Regards
Mak

Ashar's picture
User offline. Last seen 2 years 30 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: Schedule Application Engine

Yes we can.. Here is the example from PeopleBooks for Process Request Class.

Local ProcessRequest &RQST;

/* Create the ProcessRequest Object */
&RQST = CreateProcessRequest();

/* Set all the Required Properties */
&RQST.RunControlID = &sRunCntlId;
&RQST.ProcessType = &sProcessType;
&RQST.ProcessName = &sProcessName;

/* Set any Optional Properties for this Process */
&RQST.RunLocation = &sRunLocation;
&RQST.RunDateTime = &dttmRunDateTime;
&RQST.TimeZone = &sTimeZone;
&RQST.PortalFolder = &sPortalFolder;
&RQST.RunRecurrence = &sRecurrence;
&RQST.OutDestType = &sOutDestType;
&RQST.OutDestFormat = &sOutDestFormat;
&RQST.OutDest = &sOutputDirectory;
&RQST.EmailAttachLog = &bEmailAttachLog;
&RQST.EmailWebReport = &bEmailWebReport;
&RQST.EmailSubject = &sEmailSubject;
&RQST.EmailText = &sEmailText;

/* Schedule the Process */
&RQST.Schedule();

Lepa's picture
User offline. Last seen 4 weeks 10 hours ago. Offline
Joined: 06/23/2008
Posts: 591
Re: Schedule Application Engine

Thanks for the helping out Asher, I'm glad you are still on the site. I have been busy for so long I'm running behind on keeping the blog updated with new posts :(

ermayank, you can also look at the below post to use a delivered function. That however will NOT run the AE in process schedulare.

http://www.compshack.com/peoplesoft/application-engine/calling-application-engine-peoplecode

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Post new comment

CAPTCHA
The question below is to prevent automated spam submissions.
7 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.