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


icDaemonNameinputcharacterName of the daemon for which the DaemonProcessor need to be started.
ohDaemonProcessoroutputhandleHandle to the DaemonProcessor component
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method TDaemon.StartRun


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.