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.

How to schedule appengine using peoplecode

7 replies [Last post]
deepikakubba's picture
User offline. Last seen 6 years 41 weeks ago. Offline
Joined: 06/29/2010
Posts: 26

Hi,

Do naybody knows How to schedule appengine from people code.

I am able to run appengine using peoplecode but seems only one parametre is misisng where i cna give reccurencenameor the time frame,
if anybody knows please leme know , till now, what i have done is : below:

Local ProcessRequest &req;

&req = CreateProcessRequest("Application Engine", "APP11_AD");
&req.RunLocation = "SERVER";
&req.ProcessType = "Application Engine";
&req.ProcessName = "APP11_AD";
&req.RunControlID = "Myid";
&req.SetOutputOption("web", "text", "", "");
&req.Schedule();

If &req.Status = 0 Then
WinMessage("schedule scceeded", 0);
Else
WinMessage("error", 0);
End-If;
&req.RunDateTime = %Datetime;

deepikakubba's picture
User offline. Last seen 6 years 41 weeks ago. Offline
Joined: 06/29/2010
Posts: 26
Re: How to schedule appengine using peoplecode

Hi,

Its is solved with the same code. by adding runreccurence property.

thanks,

Ashar's picture
User offline. Last seen 2 years 37 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: How to schedule appengine using peoplecode

Thanks for sharing the info!

anithan's picture
User offline. Last seen 8 years 14 weeks ago. Offline
Joined: 06/29/2010
Posts: 31
Re: How to schedule appengine using peoplecode

HI,
WILL YOU please provide me the error free code
and
any prior things which i have to do
tel me i.e adding our process to process table etc
thanks in advance

deepikakubba's picture
User offline. Last seen 6 years 41 weeks ago. Offline
Joined: 06/29/2010
Posts: 26
Re: How to schedule appengine using peoplecode

hi,

Local ProcessRequest &req;

&req = CreateProcessRequest("Application Engine", "APP11_AD");
&req.RunLocation = "SERVER";
&req.ProcessType = "Application Engine";
&req.ProcessName = "APP11_AD";
&req.RunControlID = "Myid";
&req.RUNRECCURENCE="Daily";
&req.TIMEZONE="IST";
&req.SetOutputOption("web", "text", "", "");
&req.Schedule();

If &req.Status = 0 Then
WinMessage("schedule scceeded", 0);
Else
WinMessage("error", 0);
End-If;
&req.RunDateTime = %Datetime;

anithan's picture
User offline. Last seen 8 years 14 weeks ago. Offline
Joined: 06/29/2010
Posts: 31
Re: How to schedule appengine using peoplecode

thanks a lot

nagarjun.2389's picture
User offline. Last seen 7 years 52 weeks ago. Offline
Joined: 08/05/2010
Posts: 4
Re: How to schedule appengine using peoplecode

this is also working. check it out

Local ProcessRequest &obj;

&obj = CreateProcessRequest();
&obj.RunControlID = "Myid";
&obj.ProcessName = "ProcessName ";
&obj.RunLocation = "PSNT";
&obj.ProcessType = "Application Engine";
&obj.Schedule();

Guest's picture
Guest
Re: How to schedule appengine using peoplecode

How to pass parameters to create a process request.