Calling an Application Engine from PeopleCode

Your rating: None Average: 3.3 (7 votes)

The PeopleCode below will show you how to call an Application Engine 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.

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

&MYRECORD = CreateRecord(RECORD.MY_INIT_VALUES);
&MYRECORD.FIELD1.Value = "123abc"; /* here you are setting the initial values needed by your application engine */
CallAppEngine("YouAppEngProg", &MYRECORD);

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!

Comments

Have a question? Please ask it on the forum instead.
Mano's picture
Mano (not verified)
Re: Calling an Application Engine from PeopleCode

How to call an application engine program with people code ... ??

&MYRECORD = CreateRecord(RECORD.MY_INIT_VALUES);
&MYRECORD.FIELD1.Value = "123abc"; /* here you are setting the initial values needed by your application engine */
CallAppEngine("YouAppEngProg", &MYRECORD);

i dont understand what the 1st and 2nd line is for.. what record is needed for that?

Yatish's picture
Yatish (not verified)
Re: Calling an Application Engine from PeopleCode

Hello,

How can we call an application engine program from an Application Engine?? Can we use the PeopleCode action in an App Engine to call another App Engine?

I'm aware that you can call sections from an App Engine.

Thanks for your time.

Rgds,
Yatish.

Guest's picture
Guest (not verified)
Re: Calling cmd.exe from PeopleCode

Hi all,
Can anyone tell how to call cmd from peoplecode?

Thanks,
Mugdha

Mano's picture
Mano (not verified)
Re: Calling cmd.exe from PeopleCode

CallAppEngine("A",B);

A -> Provide application engine name
B -> Provide state record name if used.

Post new comment

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