-
Notifications
You must be signed in to change notification settings - Fork 59
iengine
bpmn-server / IEngine
▸ assign(itemQuery, data, assignment, userName, options?): Promise<IExecution>
| Name | Type |
|---|---|
itemQuery |
any |
data |
Object |
assignment |
Object |
userName |
string |
options? |
Object |
Promise<IExecution>
▸ get(instanceQuery): Promise<IExecution>
restores an instance into memeory or provides you access to a running instance
this will also resume execution
| Name | Type | Description |
|---|---|---|
instanceQuery |
any |
criteria to fetch the instance query example: { id: instanceId} { data: {caseId: 1005}} { items.id : 'abcc111322'} { items.itemKey : 'businesskey here'} |
Promise<IExecution>
▸ invoke(itemQuery, data, userName?, options?): Promise<IExecution>
Continue an existing item that is in a wait state
scenario: itemId {itemId: value } itemKey {itemKey: value} instance,task {instanceId: instanceId, elementId: value }
| Name | Type | Description |
|---|---|---|
itemQuery |
any |
criteria to retrieve the item |
data |
Object |
|
userName? |
string |
- |
options? |
Object |
- |
Promise<IExecution>
▸ start(name, data?, startNodeId?, userName?, options?): Promise<IExecution>
loads a definitions and start execution
| Name | Type | Description |
|---|---|---|
name |
any |
name of the process to start |
data? |
any |
input data |
startNodeId? |
string |
in process has multiple start node; you need to specify which one |
userName? |
string |
- |
options? |
any |
- |
Promise<IExecution>
▸ startEvent(instanceId, elementId, data?): Promise<IExecution>
Invoking an event (usually start event of a secondary process) against an existing instance or Invoking a start event (of a secondary process) against an existing instance
instance,task
{instanceId: instanceId, elementId: value }
| Name | Type |
|---|---|
instanceId |
any |
elementId |
any |
data? |
Object |
Promise<IExecution>
▸ startRepeatTimerEvent(instanceId, prevItem, data, options?): Promise<IExecution>
| Name | Type |
|---|---|
instanceId |
any |
prevItem |
IItem |
data |
Object |
options? |
Object |
Promise<IExecution>
▸ throwMessage(messageId, data, matchingQuery): Promise<IExecution>
signal/message raise a signal or throw a message
will seach for a matching event/task given the signalId/messageId
| Name | Type | Description |
|---|---|---|
messageId |
any |
the id of the message or signal as per bpmn definition |
data |
Object |
message data |
matchingQuery |
Object |
- |
Promise<IExecution>
▸ throwSignal(signalId, data, matchingQuery): any
| Name | Type |
|---|---|
signalId |
any |
data |
Object |
matchingQuery |
Object |
any