project BLF > class TDaemon > method StartDaemonProcessor
Description
This method is used to start the daemon processor instance. If extra checking is required before starting the processor, code can be added before the <ANCESTOR-CODE> tag.
Parameters
icDaemonName | input | character | Name of the daemon for which the DaemonProcessor need to be started. |
ohDaemonProcessor | output | handle | Handle to the DaemonProcessor component |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
program code (program1/tdaemon.p)
&scoped-define INS-PROCEDURE-BBASEDAEMONPROCESSOR "ins/ins__" + lc(vcComponentName) + ".p"
<M-4 run Main (input viSession1ID (iiSessionId)) in TDaemonUtility>
assign vcComponentName = <M-6 MapDaemonNameComponent
(input icDaemonName (icDaemonName),
input {&DAEMONMAPTYPE-PROCESSOR} (icType)) in TDaemonUtility>.
run gipr_DeleteProcedure in vhFcComponent.
delete procedure vhFcComponent.
<I-3 {tFcStartAndOpenInstance
&CLASS = "BBaseDaemonProcessor"
&SESSIONID = "viSession1ID"}>
assign ohDaemonProcessor = vhBBaseDaemonProcessorInst.