Methods
# inner buildCorrectOrder(ssot) → {Array}
Creates an order within the elements based on their positioning in the flow
Parameters:
Name | Type | Description |
---|---|---|
ssot |
Object | Ssot that will be processed |
Elements of the ssot in the correct order in which they appear in the flow
Array
# inner drawElement(cli, modeling, element, previousElement) → {String}
Creates the first element in the BPMN diagram as a start event
Parameters:
Name | Type | Description |
---|---|---|
cli |
* | Modeling cli extension |
modeling |
* | Modeling extension |
element |
Object | First element (start element) to process |
previousElement |
String | Id of the previous element |
Id of the element created in the diagram
String
# inner drawStartElement(cli, modeling, element) → {String}
Creates the first element in the BPMN diagram as a start event
Parameters:
Name | Type | Description |
---|---|---|
cli |
* | Modeling cli extension |
modeling |
* | Modeling extension |
element |
Object | First element (start element) to process |
Id of the element created in the diagram
String
# inner findStartElement(ssot) → {Object}
Searches through the ssot and return the only element without a predecessor
Parameters:
Name | Type | Description |
---|---|---|
ssot |
Object | Ssot that will be processed |
startElement from the ssot
Object
# inner parseSsotToBpmn(modeler, ssot) → {String}
Creates the BPMN XML from the provided ssot, as well as displaying the diagram on the modeling component
Parameters:
Name | Type | Description |
---|---|---|
modeler |
* | Bpmn modeler |
ssot |
Object | Ssot to parse |
Parsed XML BPMN diagram as a String
String
# inner removeDefaultStarter(cli)
Checks if the default start event is still present and will remove if so
Parameters:
Name | Type | Description |
---|---|---|
cli |
* | Modeling cli extension |
# inner updateIdForElement(modeling, cli, element, cliResult) → {String}
Workaround which takes in the created element and updates its id to the one saved in the ssot.
The bpmn js cli extension will just create elements, but not ensure their Id to match the one in the ssot therefore this workaround is needed.
Parameters:
Name | Type | Description |
---|---|---|
modeling |
* | Modeling extension |
cli |
* | Modeling cli extension |
element |
Object | First element (start element) to process |
cliResult |
* | Bpmn object |
Now set id of the shape
String