I have an updateable BAQ that will be used to update the ReqByDate on JobEntry. If you change this date in the Native JobEntry interface you are prompted to reschedule the job. I want to kick off this method that schedules the job from the BPM that runs in my updateable BAQ. I added an Execute ABL Code Action after the Base Processing Execute ABL Code of the BAQ. I need to Call ScheduleEngine.MoveJobItem. Here is what I have so far.(see below) I do not get any errors and the code validates. The BAQ update the ReqBy date but the job does not reschedule itself. Any help would be appreciated.
DEF VAR hProc AS HANDLE NO-UNDO.
DEF VAR l_finished AS LOGICAL.
DEF VAR c_warnlogtxt AS CHAR.
DEF VAR jobNum AS CHAR.
FOR EACH ttResults :
jobNum = ttResults.JobHead_JobNum.
/*Start running the ScheduleEngine persistent object*/
RUN bo\ScheduleEngine\ScheduleEngine.p PERSISTENT SET hProc.
IF VALID-HANDLE (hProc) THEN DO:
RUN MoveJobItem IN hProc (INPUT dataset CallContextDataSet, OUTPUT l_finished, OUTPUT c_warnlogtxt).