project BLF > class BBaseDaemonQueue > business logic query GetNextDaemonQueue

Description

Get the next record(s) in the daemon queue for a certain named daemon. Sequence is by the DaemonQueueSequence field


Parameters


iiDaemonIdintegerID of the daemon
icDaemonQueueStatuscharacterDaemonQueueStatus


query condition


  each fcDaemonQueue where
fcDaemonQueue.DaemonQueueLockedProcess = 0 and
fcDaemonQueue.DaemonQueueStatus = icDaemonQueueStatus and
fcDaemonQueue.DaemonId = iiDaemonId


query sort order


fcDaemonQueue.DaemonQueuePriority (ascending)


query resultset tqGetNextDaemonQueue


field namedata typedb fielddescription
tiDaemonIdintegerfcDaemonQueue.DaemonIdDaemon ID
tiDaemonQueueIdintegerfcDaemonQueue.DaemonQueueIdidentifier
tiDaemonQueueLockedProcessintegerfcDaemonQueue.DaemonQueueLockedProcessprocess ID of the daemon process that is handling this request
tiDaemonQueuePriorityintegerfcDaemonQueue.DaemonQueuePrioritydefines the sequence of processing requests in a single loop (also see fcdaemon.DaemonNrOfRequestsInLoop)
ttDaemonQueueReqStartDatedatefcDaemonQueue.DaemonQueueReqStartDatethe request will not be processed before this date and time
tiDaemonQueueReqStartTimeintegerfcDaemonQueue.DaemonQueueReqStartTimethe request will not be processed before this date and time
tcDaemonQueueStatuscharacterfcDaemonQueue.DaemonQueueStatuspossible values:
WAITING
IN-PROCESS
PROCESSED-OK
PROCESSED-ERROR


Internal usage


BLF
method BBaseDaemonProcessor.LoopForWork
method BScanDaemonProcessor.LoadExternalWork
method BTimeOutDaemonProcessor.LoadExternalWork

QadFinancials
method BBudgetDaemonProcessor.LoadExternalWork