Skip to content

bpmn-server / Cron

Class: Cron#

super class for various objects that are part of the server

Hierarchy#

Cron

Implements#

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new Cron(server): Cron

Parameters#

Name Type
server IBPMNServer

Returns#

Cron

Inherited from#

ServerComponent.constructor

Defined in#

server/ServerComponent.ts:10

Properties#

timersStarted#

Static Private timersStarted: boolean = false

Defined in#

server/Cron.ts:15


checkingTimers#

Static Private checkingTimers: boolean = false

Defined in#

server/Cron.ts:16


timersFired#

Static Private timersFired: number = 0

Defined in#

server/Cron.ts:17


server#

server: any

Inherited from#

ServerComponent.server

Defined in#

server/ServerComponent.ts:9

Accessors#

configuration#

get configuration(): any

Returns#

any

Inherited from#

ServerComponent.configuration

Defined in#

server/ServerComponent.ts:14


logger#

get logger(): any

Returns#

any

Inherited from#

ServerComponent.logger

Defined in#

server/ServerComponent.ts:15


cron#

get cron(): Cron

Returns#

Cron

Inherited from#

ServerComponent.cron

Defined in#

server/ServerComponent.ts:16


cache#

get cache(): CacheManager

Returns#

CacheManager

Inherited from#

ServerComponent.cache

Defined in#

server/ServerComponent.ts:17


appDelegate#

get appDelegate(): any

Returns#

any

Inherited from#

ServerComponent.appDelegate

Defined in#

server/ServerComponent.ts:18


engine#

get engine(): IEngine

Returns#

IEngine

Inherited from#

ServerComponent.engine

Defined in#

server/ServerComponent.ts:19


dataStore#

get dataStore(): any

Returns#

any

Inherited from#

ServerComponent.dataStore

Defined in#

server/ServerComponent.ts:20


definitions#

get definitions(): any

Returns#

any

Inherited from#

ServerComponent.definitions

Defined in#

server/ServerComponent.ts:21


listener#

get listener(): any

Returns#

any

Inherited from#

ServerComponent.listener

Defined in#

server/ServerComponent.ts:22

Methods#

timerScheduled#

timerScheduled(timeDue): void

Parameters#

Name Type
timeDue any

Returns#

void

Defined in#

server/Cron.ts:19


timerEnded#

timerEnded(item): void

Parameters#

Name Type
item any

Returns#

void

Defined in#

server/Cron.ts:22


checkTimers#

checkTimers(duration?): Promise\<void>

Parameters#

Name Type Default value
duration number 0

Returns#

Promise\<void>

Implementation of#

ICron.checkTimers

Defined in#

server/Cron.ts:26


start#

start(): Promise\<void>

Returns#

Promise\<void>

Implementation of#

ICron.start

Defined in#

server/Cron.ts:29


startTimers#

startTimers(): Promise\<void>

Returns#

Promise\<void>

Implementation of#

ICron.startTimers

Defined in#

server/Cron.ts:32


itemTimerExpired#

itemTimerExpired(): Promise\<void>

Returns#

Promise\<void>

Defined in#

server/Cron.ts:89


processTimerExpired#

processTimerExpired(): Promise\<void>

Returns#

Promise\<void>

Defined in#

server/Cron.ts:93


scheduleProcess#

scheduleProcess(entry): void

Parameters#

Name Type
entry any

Returns#

void

Defined in#

server/Cron.ts:105


scheduleItem#

scheduleItem(entry): void

Parameters#

Name Type
entry any

Returns#

void

Defined in#

server/Cron.ts:118


checkCron#

checkCron(expression, referenceDateTime): number

Parameters#

Name Type
expression any
referenceDateTime any

Returns#

number

Defined in#

server/Cron.ts:128


timeDue#

timeDue(expression, referenceDateTime): any

Parameters#

Name Type
expression any
referenceDateTime any

Returns#

any

Defined in#

server/Cron.ts:147