-
Notifications
You must be signed in to change notification settings - Fork 59
timerbehaviour
bpmn-server / TimerBehaviour
Behaviour ioSpecification timer message signal
each behaviour is a class it scans def and insert itself to perform actions as required
-
↳
TimerBehaviour
- describe
- end
- enter
- exit
- expires
- getItemAttributes
- getNodeAttributes
- getRepeat
- init
- restored
- resume
- run
- start
- startTimer
- timeDue
• new TimerBehaviour(node, definition): TimerBehaviour
| Name | Type |
|---|---|
node |
Node |
definition |
any |
elements/behaviours/Behaviour.ts:40
• definition: any
elements/behaviours/Behaviour.ts:39
• duration: any
elements/behaviours/Timer.ts:55
• node: Node
elements/behaviours/Behaviour.ts:38
• repeat: number = 1
elements/behaviours/Timer.ts:56
• timeCycle: any
elements/behaviours/Timer.ts:57
• timeDate: any
elements/behaviours/Timer.ts:58
▸ describe(): string[]
string[]
elements/behaviours/Timer.ts:82
▸ end(item): void
| Name | Type |
|---|---|
item |
Item |
void
elements/behaviours/Timer.ts:193
▸ enter(item): void
| Name | Type |
|---|---|
item |
Item |
void
elements/behaviours/Behaviour.ts:48
▸ exit(item): void
| Name | Type |
|---|---|
item |
Item |
void
elements/behaviours/Behaviour.ts:52
▸ expires(): Promise<void>
Promise<void>
elements/behaviours/Timer.ts:157
▸ getItemAttributes(item, attributes): void
| Name | Type |
|---|---|
item |
Item |
attributes |
any[] |
void
elements/behaviours/Behaviour.ts:55
▸ getNodeAttributes(attributes): void
| Name | Type |
|---|---|
attributes |
any[] |
void
elements/behaviours/Behaviour.ts:54
▸ getRepeat(input): any
| Name | Type |
|---|---|
input |
any |
any
elements/behaviours/Timer.ts:120
▸ init(): void
void
elements/behaviours/Timer.ts:59
▸ restored(item): void
| Name | Type |
|---|---|
item |
any |
void
elements/behaviours/Behaviour.ts:45
▸ resume(): void
void
elements/behaviours/Timer.ts:197
▸ run(item): void
| Name | Type |
|---|---|
item |
Item |
void
elements/behaviours/Behaviour.ts:50
▸ start(item): NODE_ACTION
| Name | Type |
|---|---|
item |
Item |
elements/behaviours/Timer.ts:128
▸ startTimer(item): void
| Name | Type |
|---|---|
item |
any |
void
elements/behaviours/Timer.ts:139
▸ timeDue(item, timerModifier?): any
return the next time the timer is due format is time format
| Name | Type | Default value | Description |
|---|---|---|---|
item |
any |
undefined |
- |
timerModifier |
any |
null |
for testing purposes configuration can alter the timer |
any