PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

PeopleSoft Testing - Catch CreateProcessRequest error

edited Jan 25, 2018 4:00AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 4 commentsAnswered

I'm currently conducting component testing right now and one of the test conditions is to catch the error of CreateProcessRequest. I have this code:

/define run control parameters – see code below/

Local ProcessRequest &RQST;

&RUN_PO_BU = PO_HDR.BUSINESS_UNIT;

&RUN_PO_ID = PO_HDR.PO_ID;

&RUN_OPRID = PO_PNLS_WRK.OPRID;

&RunCntlID = "PS_PO_" | &RUN_PO_BU | &RUN_PO_ID | "_" | UniqueRunCntlID();

&MI_SQRProcess = "Test";

&RQST = CreateProcessRequest("SQR Process", &MI_SQRProcess);

&RQST.RunControlID = &RunCntlID;

&RQST.Schedule();

&instanceList = &RQST.ProcessInstance;

If &RQST.Status = 0 Then

    <do something>; 

Else

 Error MsgGet(99999, 99999, "%1 process with instance %2 returned a non->zero exit code(%3)", &MI_SQRProcess, &instanceList, &RQST.Status); 
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center