Methods
(static) continueInstance(definitionId)
Continues running an instance of a process on this engine that was running on another machine
Parameters:
Name | Type | Description |
---|---|---|
definitionId |
string | The name of the file the process to continue is stored in |
(static) createInstance(definitionId, variables, activityIDopt)
Creates a new engine instance for execution of the given process.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
definitionId |
string | The name of the file the process to start is stored in |
|
variables |
object | The process variables for the execution |
|
activityID |
string |
<optional> |
The optional id of the activity to start execution at (if not at the beginning) |
(static) getEnginesWithDefinitionId(definitionId) → {Array}
Return the engines running a process that is defined in the file with the given name
Parameters:
Name | Type | Description |
---|---|---|
definitionId |
String | name of the file the process description is stored in |
Returns:
- all engines running instances of the process with the given id
- Type
- Array
(static) getEnginesWithProcessID(processID) → {Array}
Return the engines running a process with the given id
Parameters:
Name | Type | Description |
---|---|---|
processID |
string | the id of the process the engine is executing |
Returns:
- all engines running instances of the process with the given id
- Type
- Array
(static) getEngineWithID(instanceID) → {module:@proceed/core.ProceedEngine}
Return the engine with the given instance id.
Parameters:
Name | Type | Description |
---|---|---|
instanceID |
string | The id of an instance the engine is executing |
Returns:
- Type
- module:@proceed/core.ProceedEngine
(static) getPendingUserTasks() → {Array.<object>}
Return all activities that currently wait for user input.
Returns:
- Type
- Array.<object>
(static) resumeInstance(definitionId, instanceId)
Resuming an instance of a process on this engine that was paused
Parameters:
Name | Type | Description |
---|---|---|
definitionId |
string | The name of the file the process to continue is stored in |
instanceId |
string | The id the process instance to resume |