In this guide you will learn how to create all the required PeopleSoft objects to pass values to an application engine program.
A Step by step guide can be viewed at: https://tshenolo.me/blog/How-to-pass-values-to-an-Application-Engine
- Launch Application Designer
- click Tools, Copy Project, From File...
- click Select, choose MXM_CUSTOM_INIT
- click Copy
- Launch Application Designer
- Click Tools, Copy Project, From File...
- Click Select, choose MXM_APPENG
- Click Copy
Note: Perform this step if the project contains SQL Tables otherwise skip it
- Click Build, Project...
- Check the following options:
a. Create Table
b. Create Indexes
c. Create Views
d. Execute and build script. - Click Build
- Open the component
- Click Tools, Register Component...
- Check off the following:
- Add this component to a menu
- Add this component to a portal registry
- Add this component to a permission list
- Click Next
- Select Menu Name: MXM_CUSTOM_MENU and Bar Name: USE
- Click Next
- Select Folder Name: MXM_CUSTOM
- Change Content Reference Label and Long Description fields to "App Engine Variables"
- Check off Always use default local node
- Click Next
- Select Permission List Name: PTPT1200
- Click Next
- Check off Registry entry under Add to project
- Click Finish
Record: MXM_APPENG_AET
Type: Derived/Work
Field | Type | Length | Long Descr | Short Descr |
---|---|---|---|---|
PROCESS_INSTANCE | Nbr | 10 | Process Instance | Instance |
AE_SECTION | Char | 8 | Section | Section |
AE_APPLID | Char | 12 | Program Name | Program |
RUN_CNTL_ID | Char | 30 | Run Control ID | Run Cntl |
OPRID | Char | 30 | User ID | User |
FILENAME | Char | 80 | File Name | File Name |
DEBUG | Char | 1 | Show Program Names | Debug |
Record: MXM_APPENG_RC
Type: SQL Table
Field | Type | Length | Long Descr | Short Descr |
---|---|---|---|---|
RUN_CNTL_ID | Char | 30 | Run Control ID | Run Cntl |
OPRID | Char | 30 | User ID | User |
FILENAME | Char | 80 | File Name | File Name |
DEBUG | Char | 1 | Show Program Names | Debug |
App Engine: MXM_APPENG
State Record: MXM_APPENG_AET
Section: MAIN
Section: GETPARAM
Section: REPORT
_
Section: MAIN
Step: 001
Action: Call Section
Section Name: GETPARAM
Step: 002
Action: Call Section
Section Name: REPORT
_
Section: GETPARAM
Step: 001
Action: SQL
%Select(OPRID, RUN_CNTL_ID, FILENAME, DEBUG)
SELECT OPRID
, RUN_CNTL_ID
, FILENAME
, DEBUG
FROM %Table(MXM_APPENG_RC)
WHERE OPRID = %OperatorId
AND RUN_CNTL_ID = %RUNCONTROL
_
Section: REPORT
Step: 001
Action: PeopleCode
MessageBox(0, "", 0, 0, "FILENAME: %1", MXM_APPENG_AET.FILENAME.Value);
MessageBox(0, "", 0, 0, "DEBUG: %1", MXM_APPENG_AET.DEBUG.Value);
Page:MXM_APPENG
Title: App Engine Variables
MXM_APPENG_RC.FILENAME
MXM_APPENG_RC.DEBUG
Component | MXM_APPENG |
---|---|
Page | MXM_APPENG |
Navigation | Custom Components > App Engine Variables |
Item Label | App Engine Variables |
Search Record | PRCSRUNCNTL |
Add | Selected |
Update Display | Selected |
Disable Saving Page | Selected |
Menu | MXM_CUSTOM_MENU |
Bar item Name | MENUITEM |
Portal | Employee |
Folder Name | MXM_CUSTOM |
Content Reference label | App Engine Variables |
Long Description | App Engine Variables |
Sequence Number | 0 |
Always Use Local Node | Selected |
Permission Lists | PTPT1200 |
Actions | Add, Update/Display |
Navigation: PeopleTools > Process Scheduler > Processes
Process Type: Application Engine
Name: MXM_APPENG
Process Definition Options
Component: MXM_APPENG
Process Groups: TLSALL
If you liked the tutorial, please star this repo by clicking star button on top right of this page.