Posts

Showing posts with the label Process

Job to update sync log table

static client void updateNotSynced2(Args _args) {    SysVersionControlSynchronizeLog         syncLog;    SysVersionControlSynchronizeBatchNum    lastNum;    boolean                                 entered = false;    //find last batch num    select firstOnly BatchNum from syncLog    order by syncLog.BatchNum desc;    lastNum = syncLog.BatchNum;    setPrefix('Numbers to process:');    //classes    ttsBegin;    while select forUpdate syncLog        where syncLog.Processed == NoYes::No &&              syncLog.ItemPath  like '*Classes*'    {        syncLog.BatchNum = lastNum + 1;        syncLog.update();        entered = true;    }    ttsCommit;    if (entered)    {        lastNum++;        entered = false;        info(strFmt('Batch number for classes is: %1', lastNum));    }    //forms    ttsBegin;    while select forUpdate syncLog        where syncLog.Processed == NoYes::No &&