bpmn-server / Flow
Class: Flow#
Hierarchy#
↳ Flow
↳↳ MessageFlow
Implements#
Table of contents#
Constructors#
Properties#
Methods#
- continue
- restored
- resume
- hasBehaviour
- getBehaviour
- addBehaviour
- describe
- run
- evaluateCondition
- execute
Constructors#
constructor#
• new Flow(id
, type
, from
, to
, def
): Flow
Parameters#
Name | Type |
---|---|
id |
any |
type |
any |
from |
any |
to |
any |
def |
any |
Returns#
Overrides#
Defined in#
Properties#
id#
• id: any
Implementation of#
Inherited from#
Defined in#
type#
• type: any
Implementation of#
Inherited from#
Defined in#
subType#
• subType: any
Inherited from#
Defined in#
name#
• name: any
Implementation of#
Inherited from#
Defined in#
behaviours#
• behaviours: Map
\<any
, any
>
Implementation of#
Inherited from#
Defined in#
isFlow#
• isFlow: boolean
= false
Inherited from#
Defined in#
lane#
• lane: any
Implementation of#
Inherited from#
Defined in#
from#
• from: Node
Defined in#
to#
• to: Node
Defined in#
def#
• def: any
Defined in#
isMessageFlow#
• isMessageFlow: boolean
= false
Defined in#
Methods#
continue#
▸ continue(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Implementation of#
Inherited from#
Defined in#
restored#
▸ restored(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Implementation of#
Inherited from#
Defined in#
resume#
▸ resume(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Implementation of#
Inherited from#
Defined in#
hasBehaviour#
▸ hasBehaviour(name
): boolean
respond by providing behaviour attributes beyond item and node information ex: timer due , input/outupt , fields
Parameters#
Name | Type |
---|---|
name |
any |
Returns#
boolean
Implementation of#
Inherited from#
Defined in#
getBehaviour#
▸ getBehaviour(name
): any
Parameters#
Name | Type |
---|---|
name |
any |
Returns#
any
Implementation of#
Inherited from#
Defined in#
addBehaviour#
▸ addBehaviour(nane
, behavriour
): void
Parameters#
Name | Type |
---|---|
nane |
any |
behavriour |
any |
Returns#
void
Implementation of#
Inherited from#
Defined in#
describe#
▸ describe(): any
[][]
Returns#
any
[][]
Implementation of#
Overrides#
Defined in#
run#
▸ run(item
): FLOW_ACTION
<Rule> if flow has a condition, it must be evaluated and if result is true flow will continue
otherwise, flow will be discarded.
</Rule>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Defined in#
evaluateCondition#
▸ evaluateCondition(item
): any
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
any
Defined in#
execute#
▸ execute(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
Promise
\<void
>