-
Notifications
You must be signed in to change notification settings - Fork 59
inode
bpmn-server / INode
-
↳
INode
- addBehaviour
- canBeInvoked
- continue
- describe
- doEvent
- end
- enter
- execute
- getBehaviour
- getOutbounds
- hasBehaviour
- init
- requiresWait
- restored
- resume
- run
- start
• behaviours: Map<any, any>
• def: any
• id: any
• inbounds: any[]
• lane: any
• name: any
• outbounds: any[]
• processId: any
• type: any
▸ addBehaviour(nane, behavriour): void
| Name | Type |
|---|---|
nane |
any |
behavriour |
any |
void
▸ canBeInvoked(): boolean
boolean
▸ continue(item): Promise<void>
| Name | Type |
|---|---|
item |
IItem |
Promise<void>
▸ describe(): string[][]
string[][]
▸ doEvent(item, event, newStatus): Promise<void>
| Name | Type |
|---|---|
item |
IItem |
event |
EXECUTION_EVENT |
newStatus |
ITEM_STATUS |
Promise<void>
▸ end(item): Promise<void>
| Name | Type |
|---|---|
item |
IItem |
Promise<void>
▸ enter(item): void
| Name | Type |
|---|---|
item |
IItem |
void
▸ execute(item): Promise<void | wait | error | abort>
this is the primary exectuion method for a node
considerations: the following are handled by Token 1. Loops we are inside a loop already (if any) 2. Gatways 3. Subprocess the parent node is fired as normal run method will fire the subprocess invoking a new token and will go into wait
| Name | Type |
|---|---|
item |
IItem |
Promise<void | wait | error | abort>
▸ getBehaviour(name): any
| Name | Type |
|---|---|
name |
any |
any
▸ getOutbounds(item): IItem[]
| Name | Type |
|---|---|
item |
IItem |
IItem[]
▸ hasBehaviour(name): boolean
respond by providing behaviour attributes beyond item and node information ex: timer due , input/outupt , fields
| Name | Type |
|---|---|
name |
any |
boolean
▸ init(item): void
| Name | Type |
|---|---|
item |
IItem |
void
▸ requiresWait(): boolean
boolean
▸ restored(item): void
| Name | Type |
|---|---|
item |
IItem |
void
▸ resume(item): void
is called by the token after an execution resume for every active (in wait) item different than init, which is called for all items
| Name | Type |
|---|---|
item |
IItem |
void
▸ run(item): Promise<NODE_ACTION>
| Name | Type |
|---|---|
item |
IItem |
Promise<NODE_ACTION>
▸ start(item): Promise<NODE_ACTION>
| Name | Type |
|---|---|
item |
IItem |
Promise<NODE_ACTION>