How to insert AE in a running jobset
Hello,
I work on Peopletools 8.50 (FSCM 8.8) and I wanted to manipulate a jobset while running.
I want to add one or several AE but I don't know the list before the execution of the job.
I saw a piece of standard code that does this in PYCYCL_PNL_WRK4.REQUESTTYPE.SavePostChange :
...
&RQST.Schedule();
If &RQST.status = 0 Then
&success = True;
/* Since process starts in AE does not tie to the same PS Job, we need to manually update the jobinstance of each process with the same jobinstance as AE so that all processes will be grouped together in Process Monitor. */
SQLExec("SELECT JOBINSTANCE FROM PS_PMN_PRCSLIST WHERE PRCSINSTANCE = :1", PYCYCL_PNL_WRK4.PROCESS_INSTANCE, &jobInstance);