project BLF > class BTimeOutDaemon > method ValidateComponent

Description

Write here all tests on database update (new / modify / delete) that cannot be coded with a validation mask.
The type of update can be found in tc_status (N/C/D).
If you find incorrect data, you must write an entry in tFcMessages (using SetMessage) and set the return status of this method to either +1 or -1.
Return status +1 = data will still be accepted.
Return status -1 = data will not be accepted.
This method is run from SetPublicTables, before transferring the received data into the class temp-tables.


Parameters


oiReturnStatusoutputinteger


Internal usage


unused


program code (program/btimeoutdaemon.p)

<ANCESTOR-CODE>

For Each t_sfcDaemon Where
         t_sfcDaemon.tc_Status = 'N':U Or
         t_sfcDaemon.tc_Status = 'C':U:

    If t_sfcDaemon.DaemonMaxNumberOfInstances > 1
    Then Do:
        Assign vcMessage = Trim(#T-1'The TimeOut Daemon can have only 1 processor instance.':100(8593)T-1#)
               oiReturnStatus = -1.
        <M-2 run SetMessage
           (input  vcMessage (icMessage), 
            input  '' (icArguments), 
            input  't_sfcDaemon.DaemonMaxNumberOfInstances':U (icFieldName), 
            input  t_sfcDaemon.DaemonMaxNumberOfInstances (icFieldValue), 
            input  'E':U (icType), 
            input  3 (iiSeverity), 
            input  t_sfcDaemon.tc_Rowid (icRowid), 
            input  'BLF-223':U (icFcMsgNumber), 
            input  '' (icFcExplanation), 
            input  '' (icFcIdentification), 
            input  '' (icFcContext), 
            output viFcReturnSuper (oiReturnStatus)) in BTimeOutDaemon>        
    End.

End.