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

6 replies [Last post]
deepikakubba's picture
User offline. Last seen 1 day 14 hours 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 1 day 14 hours 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 3 weeks 5 days ago. Offline
Joined: 03/26/2008
Posts: 208
Re: How to schedule appengine using peoplecode

Thanks for sharing the info!

anithan's picture
User offline. Last seen 1 year 25 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 1 day 14 hours 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 1 year 25 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 1 year 11 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();

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.