bpmn-server / Gateway
Class: Gateway#
Hierarchy#
↳ Gateway
↳↳ XORGateway
Table of contents#
Constructors#
Properties#
- id
- type
- subType
- behaviours
- isFlow
- lane
- name
- process
- def
- outbounds
- inbounds
- attachments
- attachedTo
- messageId
- signalId
- initiator
- assignee
- candidateGroups
- candidateUsers
- scripts
Accessors#
Methods#
- restored
- hasBehaviour
- getBehaviour
- addBehaviour
- getOutbounds
- getPotentialPath
- canReach
- getRelatedTokens
- analyzeConvergingTokens
- start
- validate
- doEvent
- setInput
- getInput
- getOutput
- enter
- execute
- continue
- run
- cancelEBG
- cancelBoundaryEvents
- end
- resume
- init
- startBoundaryEvents
- describe
Constructors#
constructor#
• new Gateway(id
, process
, type
, def
): Gateway
Parameters#
Name | Type |
---|---|
id |
any |
process |
any |
type |
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#
behaviours#
• behaviours: Map
\<any
, any
>
Inherited from#
Defined in#
isFlow#
• isFlow: boolean
= false
Inherited from#
Defined in#
lane#
• lane: any
Inherited from#
Defined in#
name#
• name: any
Inherited from#
Defined in#
process#
• process: any
Inherited from#
Defined in#
def#
• def: any
Inherited from#
Defined in#
outbounds#
• outbounds: Flow
[]
Inherited from#
Defined in#
inbounds#
• inbounds: Flow
[]
Inherited from#
Defined in#
attachments#
• attachments: Node
[]
Inherited from#
Defined in#
attachedTo#
• attachedTo: Node
Inherited from#
Defined in#
messageId#
• messageId: any
Inherited from#
Defined in#
signalId#
• signalId: any
Inherited from#
Defined in#
initiator#
• initiator: any
Inherited from#
Defined in#
assignee#
• assignee: any
Inherited from#
Defined in#
candidateGroups#
• candidateGroups: any
Inherited from#
Defined in#
candidateUsers#
• candidateUsers: any
Inherited from#
Defined in#
scripts#
• scripts: Map
\<any
, any
>
Inherited from#
Defined in#
Accessors#
processId#
• get
processId(): any
Returns#
any
Inherited from#
Node.processId
Defined in#
requiresWait#
• get
requiresWait(): boolean
Returns#
boolean
Inherited from#
Node.requiresWait
Defined in#
canBeInvoked#
• get
canBeInvoked(): boolean
Returns#
boolean
Inherited from#
Node.canBeInvoked
Defined in#
loopDefinition#
• get
loopDefinition(): any
Returns#
any
Inherited from#
Node.loopDefinition
Defined in#
isCatching#
• get
isCatching(): boolean
Returns#
boolean
Inherited from#
Node.isCatching
Defined in#
Methods#
restored#
▸ restored(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#
getOutbounds#
▸ getOutbounds(item
): Item
[]
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Item
[]
Overrides#
Defined in#
getPotentialPath#
▸ getPotentialPath(node
, path?
): any
Parameters#
Name | Type | Default value |
---|---|---|
node |
any |
undefined |
path |
any |
null |
Returns#
any
Defined in#
canReach#
▸ canReach(node
, target
): any
Parameters#
Name | Type |
---|---|
node |
any |
target |
any |
Returns#
any
Defined in#
getRelatedTokens#
▸ getRelatedTokens(item
): any
[]
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
any
[]
Defined in#
analyzeConvergingTokens#
▸ analyzeConvergingTokens(item
): Object
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Object
Name | Type |
---|---|
pendingTokens |
Token [] |
waitingTokens |
Token [] |
Defined in#
start#
▸ start(item
): Promise
\<NODE_ACTION
>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<NODE_ACTION
>
Overrides#
Defined in#
validate#
▸ validate(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
doEvent#
▸ doEvent(item
, event
, newStatus?
, eventDetails?
): Promise
\<any
[]>
Parameters#
Name | Type | Default value |
---|---|---|
item |
Item |
undefined |
event |
EXECUTION_EVENT |
undefined |
newStatus |
ITEM_STATUS |
null |
eventDetails |
Object |
{} |
Returns#
Promise
\<any
[]>
Inherited from#
Defined in#
setInput#
▸ setInput(item
, input
): Promise
\<void
>
is Called after execution transform data using input rules todo
Parameters#
Name | Type |
---|---|
item |
Item |
input |
any |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
getInput#
▸ getInput(item
, input
): Promise
\<{}>
Parameters#
Name | Type |
---|---|
item |
Item |
input |
any |
Returns#
Promise
\<{}>
Inherited from#
Defined in#
getOutput#
▸ getOutput(item
): Promise
\<{}>
transform data using output rules todo
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<{}>
Inherited from#
Defined in#
enter#
▸ enter(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Inherited from#
Defined in#
execute#
▸ execute(item
): Promise
\<void
| wait
| end
| 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
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<void
| wait
| end
| error
| abort
>
Inherited from#
Defined in#
continue#
▸ continue(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
run#
▸ run(item
): Promise
\<NODE_ACTION
>
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
Promise
\<NODE_ACTION
>
Inherited from#
Defined in#
cancelEBG#
▸ cancelEBG(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
cancelBoundaryEvents#
▸ cancelBoundaryEvents(item
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
any |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
end#
▸ end(item
, cancel?
): Promise
\<void
>
Parameters#
Name | Type | Default value |
---|---|---|
item |
Item |
undefined |
cancel |
Boolean |
false |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
resume#
▸ 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
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Inherited from#
Defined in#
init#
▸ init(item
): void
Parameters#
Name | Type |
---|---|
item |
Item |
Returns#
void
Inherited from#
Defined in#
startBoundaryEvents#
▸ startBoundaryEvents(item
, token
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
item |
any |
token |
any |
Returns#
Promise
\<void
>
Inherited from#
Defined in#
describe#
▸ describe(): any
[]
Returns#
any
[]