bpmn-server / Process
Class: Process#
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor#
• new Process(definition
, parent?
): Process
Parameters#
Name | Type | Default value |
---|---|---|
definition |
any |
undefined |
parent |
any |
null |
Returns#
Defined in#
Properties#
id#
• id: any
Defined in#
name#
• name: any
Defined in#
isExecutable#
• isExecutable: any
Defined in#
def#
• def: Definition
Defined in#
parent#
• parent: Process
Defined in#
childrenNodes#
• childrenNodes: Node
[]
Defined in#
eventSubProcesses#
• eventSubProcesses: any
[]
Defined in#
subProcessEvents#
• subProcessEvents: any
[]
Defined in#
scripts#
• scripts: Map
\<any
, any
>
Defined in#
Methods#
init#
▸ init(children
, eventSubProcesses
): void
Parameters#
Name | Type |
---|---|
children |
any |
eventSubProcesses |
any |
Returns#
void
Defined in#
start#
▸ start(execution
, parentToken
): Promise
\<void
>
Notify process that it started
Parameters#
Name | Type |
---|---|
execution |
Execution |
parentToken |
any |
Returns#
Promise
\<void
>
Defined in#
end#
▸ end(execution
): Promise
\<void
>
Notify process that it ended
Parameters#
Name | Type |
---|---|
execution |
IExecution |
Returns#
Promise
\<void
>
Defined in#
getStartNode#
▸ getStartNode(userInvokable?
): any
Parameters#
Name | Type | Default value |
---|---|---|
userInvokable |
boolean |
false |
Returns#
any
Defined in#
getStartNodes#
▸ getStartNodes(userInvokable?
): any
[]
Parameters#
Name | Type | Default value |
---|---|---|
userInvokable |
boolean |
false |
Returns#
any
[]
Defined in#
getEventSubProcessStart#
▸ getEventSubProcessStart(): Node
[]
Returns#
Node
[]
Defined in#
doEvent#
▸ doEvent(execution
, event
, eventDetails?
): Promise
\<void
>
Parameters#
Name | Type |
---|---|
execution |
any |
event |
any |
eventDetails |
Object |
Returns#
Promise
\<void
>
Defined in#
describe#
▸ describe(): any
[]
Returns#
any
[]