From e62827b3dad7e7eee52e5928e87fdeb69442ef11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20G=C3=B6rtzen?= <40467337+AlexanderG2207@users.noreply.github.com> Date: Tue, 7 May 2024 14:31:14 +0200 Subject: [PATCH] Add BPMN case as a diagram type --- .../ApollonShared/DataModels/Types/UMLDiagramType.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/ApollonShared/DataModels/Types/UMLDiagramType.swift b/Sources/ApollonShared/DataModels/Types/UMLDiagramType.swift index 752b5fc..7b0e8d3 100644 --- a/Sources/ApollonShared/DataModels/Types/UMLDiagramType.swift +++ b/Sources/ApollonShared/DataModels/Types/UMLDiagramType.swift @@ -13,7 +13,8 @@ public enum UMLDiagramType: String, Codable, CaseIterable { case reachabilityGraph = "ReachabilityGraph" case syntaxTree = "SyntaxTree" case flowchart = "Flowchart" - + case BPMN = "BPMN" + /// The different elements of each diagram, that the user can create public var diagramElementTypes: [UMLElementType] { switch self { @@ -39,6 +40,8 @@ public enum UMLDiagramType: String, Codable, CaseIterable { return [.syntaxTreeNonterminal, .syntaxTreeTerminal] case .flowchart: return [.flowchartFunctionCall, .flowchartInputOutput, .flowchartDecision, .flowchartProcess, .flowchartTerminal] + case .BPMN: + return [] } } @@ -68,6 +71,8 @@ public enum UMLDiagramType: String, Codable, CaseIterable { return [.syntaxTreeLink] case .flowchart: return [.flowchartFlowline] + case .BPMN: + return [] } }