-
Notifications
You must be signed in to change notification settings - Fork 48
execution
bpmn-server / Execution
is accessed two ways: execute - start process signal - invoke a node (userTask, event, etc.)
-
↳
Execution
- definition
- errors
- instance
- isLocked
- item
- messageMatchingKey
- operation
- options
- process
- promises
- server
- servicesProvider
- tokens
- uids
- userName
- worker
- appDelegate
- cache
- configuration
- cron
- dataStore
- definitions
- engine
- execution
- id
- listener
- logger
- name
- status
- addHistory
- appendData
- assign
- doExecutionEvent
- doItemEvent
- end
- error
- execute
- getAndCreateData
- getData
- getItems
- getItemsData
- getNewId
- getNodeById
- getState
- getToken
- getUUID
- log
- report
- restored
- resume
- save
- signalEvent
- signalItem
- signalRepeatTimerEvent
- stop
- terminate
- tillDone
- tokenEnded
- restore
• new Execution(server
, name
, source
, state?
): Execution
Name | Type | Default value | Description |
---|---|---|---|
server |
any |
undefined |
- |
name |
string |
undefined |
process name |
source |
any |
undefined |
bpmn source |
state |
any |
null |
- |
• definition: IDefinition
• errors: any
• instance: InstanceObject
• isLocked: boolean
= false
• item: any
• messageMatchingKey: any
• operation: any
• options: any
• process: Process
• promises: any
[] = []
• server: any
• servicesProvider: any
• tokens: Map
<any
, any
>
• uids: Object
= {}
• userName: any
• worker: any
• get
appDelegate(): any
any
ServerComponent.appDelegate
• get
cache(): CacheManager
ServerComponent.cache
• get
configuration(): any
any
ServerComponent.configuration
• get
cron(): Cron
ServerComponent.cron
• get
dataStore(): any
any
ServerComponent.dataStore
• get
definitions(): any
any
ServerComponent.definitions
• get
engine(): IEngine
ServerComponent.engine
• get
execution(): this
this
• get
id(): any
any
• get
listener(): any
any
ServerComponent.listener
• get
logger(): any
any
ServerComponent.logger
• get
name(): any
any
• get
status(): EXECUTION_STATUS
▸ addHistory(inputData
, assignment
, item
): void
Name | Type |
---|---|
inputData |
any |
assignment |
any |
item |
any |
void
▸ appendData(inputData
, item
, dataPath?
, assignment?
): void
Name | Type | Default value |
---|---|---|
inputData |
any |
undefined |
item |
any |
undefined |
dataPath |
any |
null |
assignment |
any |
null |
void
▸ assign(executionId
, inputData
, assignment?
, userName
, options?
): Promise
<void
>
Name | Type |
---|---|
executionId |
any |
inputData |
any |
assignment |
Object |
userName |
any |
options |
Object |
Promise
<void
>
▸ doExecutionEvent(process
, event
): Promise
<void
>
Name | Type |
---|---|
process |
any |
event |
any |
Promise
<void
>
▸ doItemEvent(item
, event
): Promise
<void
>
Name | Type |
---|---|
item |
any |
event |
any |
Promise
<void
>
▸ end(): Promise
<void
>
Promise
<void
>
▸ error(msg
): void
Name | Type |
---|---|
msg |
any |
void
▸ execute(startNodeId?
, inputData?
, options?
): Promise
<void
>
Name | Type | Default value |
---|---|---|
startNodeId |
any |
null |
inputData |
Object |
{} |
options |
Object |
{} |
Promise
<void
>
▸ getAndCreateData(dataPath
, asArray?
): any
Name | Type | Default value |
---|---|---|
dataPath |
any |
undefined |
asArray |
boolean |
false |
any
▸ getData(dataPath
): any
Name | Type |
---|---|
dataPath |
any |
any
▸ getItems(): Item
[]
Item
[]
▸ getItemsData(): any
[]
any
[]
▸ getNewId(scope
): number
Name | Type |
---|---|
scope |
string |
number
▸ getNodeById(id
): Node
Name | Type |
---|---|
id |
any |
▸ getState(): IInstanceData
▸ getToken(id
): Token
Name | Type |
---|---|
id |
number |
▸ getUUID(): any
any
▸ log(...msg
): void
Name | Type |
---|---|
...msg |
any [] |
void
▸ report(): void
void
▸ restored(): Promise
<void
>
Promise
<void
>
▸ resume(): Promise
<void
>
Promise
<void
>
▸ save(): Promise
<void
>
Promise
<void
>
▸ signalEvent(executionId
, inputData
, options?
): Promise
<IExecution
>
Name | Type |
---|---|
executionId |
any |
inputData |
any |
options |
Object |
Promise
<IExecution
>
▸ signalItem(itemId
, inputData
, userName
, options?
): Promise
<IExecution
>
invoke scenarios: itemId elementId - but only one is active elementId - for a startEvent in a secondary process
Name | Type |
---|---|
itemId |
any |
inputData |
any |
userName |
any |
options |
Object |
Promise
<IExecution
>
▸ signalRepeatTimerEvent(executionId
, prevItem
, inputData
, options?
): Promise
<IExecution
>
Name | Type |
---|---|
executionId |
any |
prevItem |
any |
inputData |
any |
options |
Object |
Promise
<IExecution
>
IExecution.signalRepeatTimerEvent
▸ stop(): void
causes the execution to stop from running any further
void
▸ terminate(): void
causes the execution to stop from running any further
void
▸ tillDone(): Promise
<Execution
>
Promise
<Execution
>
▸ tokenEnded(token
): void
Name | Type |
---|---|
token |
Token |
void
▸ restore(server
, state
): Promise
<Execution
>
re-enstate the execution from db
Name | Type |
---|---|
server |
any |
state |
IInstanceData |
Promise
<Execution
>