project BLF > class BBaseDaemon > method ValOsCommand
validation procedure
Description
Validate whether the value of the field DaemonOsCommand at least contains the string "<DaemonExecutable>".
Parameters
icTargetField | input | character | Value of the business field to validate. |
icTargetFieldName | input | character | Name of the business field to validate. |
icRowid | input | character | Contents of field tc_Rowid, if the target field is a field of a component temp-table. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
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.