This module is supposed to aid in the creation of Proceed processes with MS specific information
e.g. values from the MS store or meta data not stored in the bpmn
Methods
(async, inner) createProcess(processInfo, noDefaultsopt) → {ProcessInfo}
Creates a new proceed process either from a given bpmn or from a default bpmn template creates a bpmn and a meta info object
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
processInfo |
Object | the initial process meta info and optional bpmn |
||
noDefaults |
Boolean |
<optional> |
false | if the meta info is not supposed to be completed with default values (defaults to false) |
Returns:
the process bpmn and meta information
- Type
- ProcessInfo
(inner) getDefaultProcessMetaInfo() → {ProceedProcess}
Creates a default process meta object containing all fields we expect a process meta object to have
Returns:
object containing all the necessary meta info of a process with default values
- Type
- ProceedProcess
(async, inner) getProcessInfo(bpmn)
Parses all necessary information from a process description
Parameters:
Name | Type | Description |
---|---|---|
bpmn |
String | the xml process description |
Type Definitions
ProceedProcess
Type:
- Object
Properties:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
String | // the id as it is in the definitions element of the process |
|||||||||||||
type |
String | // the type of the process (process or project etc.) |
|||||||||||||
originalId |
String | // the id the process had previously (most likely an imported process) |
|||||||||||||
name |
String | // the name as it is in the definitions element of the process |
|||||||||||||
description |
String | // the description (the content of documentation element of the first process element in the process model) |
|||||||||||||
processIds |
Array.<String> | // the ids of all process elements inside the process modell |
|||||||||||||
subprocesses |
Array.<Object> | // the processes that are referenced by callActivity elements inside the process model Properties
|
|||||||||||||
variables |
Array.<Object> | // [{ name: String, type: String }] the variables supposed to be used in the process Properties
|
|||||||||||||
departments |
Array.<String> | // the departments the process belongs to |
|||||||||||||
inEditingBy |
Array.<Object> | // information about the clients that are editing the process, used in the server version for collaborative editing Properties
|
|||||||||||||
createdOn |
String | // the date and time the process was added in the management-system |
|||||||||||||
lastEdited |
String | // the date and time the process was edited the last time |
|||||||||||||
shared |
Boolean |
<optional> |
// only used in the server version for processes stored in the backend |
ProcessInfo
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
bpmn |
String | the process definition |
metaInfo |
ProceedProcess | the meta information about the process |