project BLF > class BBaseDaemon > method ValOsCommand

validation procedure

Description

Validate whether the value of the field DaemonOsCommand at least contains the string "<DaemonExecutable>".


Parameters


icTargetFieldinputcharacterValue of the business field to validate.
icTargetFieldNameinputcharacterName of the business field to validate.
icRowidinputcharacterContents of field tc_Rowid, if the target field is a field of a component temp-table.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
validation on tfcDaemon.DaemonOsCommand


program code (program1/bbasedaemon.p)

if not icTargetField matches "*":U + {&DAEMONOSCOMMAND-CONSTANT} + "*":U
then do :
     assign vcMessage = substitute(#T-1'The specification of the startup line for the daemon should contain at least '&1'.':120(4771)T-1#, {&DAEMONOSCOMMAND-CONSTANT}).
     <M-2 run SetMessage (input  vcMessage (icMessage), 
                     input  '' (icArguments), 
                     input  icTargetFieldName (icFieldName), 
                     input  icTargetField (icFieldValue), 
                     input  'E':U (icType), 
                     input  3 (iiSeverity), 
                     input  '' (icRowid), 
                     input  'BLF-35':U (icFcMsgNumber), 
                     input  'The daemon executable is determined by the system running on the backend.  What the system administrator can specify it the starting and trailing part of the command that will be finally executed at startup of a daemon instance':U (icFcExplanation), 
                     input  '' (icFcIdentification), 
                     input  '' (icFcContext), 
                     output viFcReturnSuper (oiReturnStatus)) in BBaseDaemon>
     assign oiReturnStatus = -1.
end.