bpmn-server / MessageFlow
Class: MessageFlow#
Hierarchy#
↳ MessageFlow
Table of contents#
Constructors#
Properties#
Methods#
- continue
- restored
- resume
- hasBehaviour
- getBehaviour
- addBehaviour
- describe
- run
- evaluateCondition
- execute
Constructors#
constructor#
• new MessageFlow(id
, type
, from
, to
, def
): MessageFlow
Parameters#
Name | Type |
---|---|
id |
any |
type |
any |
from |
any |
to |
any |
def |
any |
Returns#
Inherited from#
Defined in#
Properties#
id#
• id: any
Inherited from#
Defined in#
type#
• type: any
Inherited from#
Defined in#
subType#
• subType: any
Inherited from#
Defined in#
name#
• name: any
Inherited from#
Defined in#
behaviours#
• behaviours: Map
\<any
, any
>
Inherited from#
Defined in#
isFlow#
• isFlow: boolean
= false
Inherited from#
Defined in#
lane#
• lane: any
Inherited from#
Defined in#
from#
• from: Node
Inherited from#
Defined in#
to#
• to: Node
Inherited from#
Defined in#
def#
• def: any
Inherited from#
Defined in#
isMessageFlow#
• isMessageFlow: boolean
= true
Overrides#
Defined in#
Methods#
continue#
▸ continue(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Inherited from#
Defined in#
restored#
▸ restored(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Inherited from#
Defined in#
resume#
▸ resume(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
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
Inherited from#
Defined in#
getBehaviour#
▸ getBehaviour(name
): any
Parameters#
Name | Type |
---|---|
name |
any |
Returns#
any
Inherited from#
Defined in#
addBehaviour#
▸ addBehaviour(nane
, behavriour
): void
Parameters#
Name | Type |
---|---|
nane |
any |
behavriour |
any |
Returns#
void
Inherited from#
Defined in#
describe#
▸ describe(): any
[][]
Returns#
any
[][]
Inherited from#
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#
Inherited from#
Defined in#
evaluateCondition#
▸ evaluateCondition(item
): any
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
any
Inherited from#
Defined in#
execute#
▸ execute(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<void
>