Methods
# inner createBaseElement() → {Object}
        Creates a base element of the single source of truth
    
    
    Base element of the single source of truth
    
    
    
        
        
Object
    
    
# inner enrichInstructionElements(elementsArray, bpmnActivities) → {Array}
        Enriches elements in the elementsArray that should be of type instruction
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| elementsArray | Array | All elements of the BPMN diagram | 
| bpmnActivities | Array | All activities of the BPMN diagram | 
Array of elements for single source of truth
    
    
    
        
        
Array
    
    
# inner enrichMarkerElements(elementsArray) → {Array}
        Enriches elements in the elementsArray that should be of type marker
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| elementsArray | Array | All elements of the BPMN diagram | 
Array of elements for single source of truth
    
    
    
        
        
Array
    
    
# inner findElements(flows, bpmnShapes) → {Array}
        Creates the array full of elements by iterating over the
referenced ids in the flow and adding new elements (incl. name) if they have not been added yet
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| flows | Array | All flow elements of the BPMN diagram | 
| bpmnShapes | Array | All shapes of the BPMN diagram | 
Array of elements with their id, successors, predecessors and name
    
    
    
        
        
Array
    
    
# inner isElementTracked() → {Boolean}
        Checks if the given id can be found in the given Array of element objects
    
    
    Boolean if element is tracked in Array
    
    
    
        
        
Boolean
    
    
# async inner parseBpmnToSsot(bpmnXml) → {string}
        Parses an JSON created from the xml of the bpmn model to the single source of truth
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| bpmnXml | Object | The xml object of the bpmn diagram | 
XML that has to be put in single source of truth file
    
    
    
        
        
string
    
    
# inner returnElementsArrayWithNameLabel(bpmnShapes, localElementsArray) → {Array}
        Gets all bpmn elements
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| bpmnShapes | Array | All shapes of the BPMN diagram | 
| localElementsArray | Array | Current version of the localElementsArray with all elements | 
Array of elements with their id, successors, predecessors and name
    
    
    
        
        
Array