Module

frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 27

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 66

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 109

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 17

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 128

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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 97

# 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

View Source frontend/src/utils/parser/ssotToBpmnParsing/ssotToBpmnParsing.js, line 49

Now set id of the shape
String