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#
- timerScheduled
- timerEnded
- checkTimers
- start
- startTimers
- itemTimerExpired
- processTimerExpired
- scheduleProcess
- scheduleItem
- checkCron
- timeDue
Constructors#
constructor#
• new Cron(server
): Cron
Parameters#
Name | Type |
---|---|
server |
IBPMNServer |
Returns#
Inherited from#
Defined in#
Properties#
timersStarted#
▪ Static
Private
timersStarted: boolean
= false
Defined in#
checkingTimers#
▪ Static
Private
checkingTimers: boolean
= false
Defined in#
timersFired#
▪ Static
Private
timersFired: number
= 0
Defined in#
server#
• server: any
Inherited from#
Defined in#
Accessors#
configuration#
• get
configuration(): any
Returns#
any
Inherited from#
ServerComponent.configuration
Defined in#
logger#
• get
logger(): any
Returns#
any
Inherited from#
ServerComponent.logger
Defined in#
cron#
• get
cron(): Cron
Returns#
Inherited from#
ServerComponent.cron
Defined in#
cache#
• get
cache(): CacheManager
Returns#
Inherited from#
ServerComponent.cache
Defined in#
appDelegate#
• get
appDelegate(): any
Returns#
any
Inherited from#
ServerComponent.appDelegate
Defined in#
engine#
• get
engine(): IEngine
Returns#
Inherited from#
ServerComponent.engine
Defined in#
dataStore#
• get
dataStore(): any
Returns#
any
Inherited from#
ServerComponent.dataStore
Defined in#
definitions#
• get
definitions(): any
Returns#
any
Inherited from#
ServerComponent.definitions
Defined in#
listener#
• get
listener(): any
Returns#
any
Inherited from#
ServerComponent.listener
Defined in#
Methods#
timerScheduled#
▸ timerScheduled(timeDue
): void
Parameters#
Name | Type |
---|---|
timeDue |
any |
Returns#
void
Defined in#
timerEnded#
▸ timerEnded(item
): void
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
void
Defined in#
checkTimers#
▸ checkTimers(duration?
): Promise
\<void
>
Parameters#
Name | Type | Default value |
---|---|---|
duration |
number |
0 |
Returns#
Promise
\<void
>
Implementation of#
Defined in#
start#
▸ start(): Promise
\<void
>
Returns#
Promise
\<void
>
Implementation of#
Defined in#
startTimers#
▸ startTimers(): Promise
\<void
>
Returns#
Promise
\<void
>
Implementation of#
Defined in#
itemTimerExpired#
▸ itemTimerExpired(): Promise
\<void
>
Returns#
Promise
\<void
>
Defined in#
processTimerExpired#
▸ processTimerExpired(): Promise
\<void
>
Returns#
Promise
\<void
>
Defined in#
scheduleProcess#
▸ scheduleProcess(entry
): void
Parameters#
Name | Type |
---|---|
entry |
any |
Returns#
void
Defined in#
scheduleItem#
▸ scheduleItem(entry
): void
Parameters#
Name | Type |
---|---|
entry |
any |
Returns#
void
Defined in#
checkCron#
▸ checkCron(expression
, referenceDateTime
): number
Parameters#
Name | Type |
---|---|
expression |
any |
referenceDateTime |
any |
Returns#
number
Defined in#
timeDue#
▸ timeDue(expression
, referenceDateTime
): any
Parameters#
Name | Type |
---|---|
expression |
any |
referenceDateTime |
any |
Returns#
any