bpmn-server / IAPIEngine
▸ start(modelName
, data
, user
, options?
): Promise
<IExecution
>
start a new Instance of specified model
Name | Type | Description |
---|---|---|
modelName |
any |
name of the model to start. |
data |
Object |
- |
user |
ISecureUser |
user object {} |
options? |
IEngineOptions |
- |
Promise
<IExecution
>
▸ invoke(query
, data
, user?
, options?
): Promise
<IExecution
>
continue with the execution of a particular item that is in a wait state, typically a user task
Name | Type |
---|---|
query |
any |
data |
Object |
user? |
ISecureUser |
options? |
IEngineOptions |
Promise
<IExecution
>
▸ assign(query
, data
, assignment
, user?
, options?
): Promise
<IExecution
>
provide assignment data to a user task Also, updates item data
Name | Type |
---|---|
query |
any |
data |
any |
assignment |
any |
user? |
ISecureUser |
options? |
IEngineOptions |
Promise
<IExecution
>
▸ throwMessage(messageId
, data
, messageMatchingKey
, user?
, options?
): Promise
<IExecution
>
throw a message with an id, system will identify receiving item
Name | Type |
---|---|
messageId |
any |
data |
any |
messageMatchingKey |
any |
user? |
ISecureUser |
options? |
IEngineOptions |
Promise
<IExecution
>
▸ throwSignal(signalId
, data
, messageMatchingKey
, user?
, options?
): Promise
<IExecution
>
throw a signal with an id, system will identify receiving item(s)
Name | Type |
---|---|
signalId |
any |
data |
any |
messageMatchingKey |
any |
user? |
ISecureUser |
options? |
IEngineOptions |
Promise
<IExecution
>
▸ startEvent(query
, elementId
, data
, user?
, options?
): Promise
<IExecution
>
start a second event node (in a subprocess) for a running instance
Name | Type |
---|---|
query |
any |
elementId |
any |
data |
Object |
user? |
ISecureUser |
options? |
IEngineOptions |
Promise
<IExecution
>
▸ restart(itemQuery
, data
, userName
, options?
): Promise
<IExecution
>
restarting an already completed instance at a particular node
this function requires dataStore.enableSavePoints
to be true in configuration.ts
this add a savePoint for each item, allowing you to select that item to restore it
Name | Type | Description |
---|---|---|
itemQuery |
any |
Query to find a single item |
data |
any |
- |
userName |
any |
- |
options? |
any |
- |
Promise
<IExecution
>