ilRunOnline | input | logical | This logical parameter indicates if the HouseKeeping needs to be run on-line or not. If the Housekeeping is run right before the shutdown of the databse before the backup, this is set to false. If the Housekeeping is run on a system where users are still active, so there are active sessions, this is set to true. |
/* code copied from generated instance programs (start) */ vlFcOk = no. publish "ComponentPoolIsRunning" (output vlFcOk). if vlFcOk = no then do: <M-9 run Main () in ComponentPool> session:add-super-procedure(vhFcComponent). end. /* code copied from business.startpersistence */ run StartPersistenceInPool (input {&TARGETPROCEDURE}, output vhPL, output viFcReturnSuper). if viFcReturnSuper < 0 then return. if ilRunOnline then do: assign vhFcComponent = vhPL. <M-13 run CleanupStateOnline (input {&TARGETPROCEDURE} (ihClass), output viFcReturnSuper (oiReturnStatus)) in persistence> end. else do: assign vhFcComponent = vhPL. <M-4 run CleanupState (output viFcReturnSuper (oiReturnStatus)) in persistence> <M-7 run ApplicationHousekeeping (output viFcReturnSuper (oiReturnStatus)) in Housekeeping> end.