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();   ...