Skip to content

Commit

Permalink
Merge pull request #7 from ls1intum/feature/add-bpmn-to-shared-models
Browse files Browse the repository at this point in the history
Add BPMN case as a Diagram Type to Shared Models
  • Loading branch information
AlexanderG2207 authored May 7, 2024
2 parents 4246311 + e62827b commit 5e4b122
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/ApollonShared/DataModels/Types/UMLDiagramType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -39,6 +40,8 @@ public enum UMLDiagramType: String, Codable, CaseIterable {
return [.syntaxTreeNonterminal, .syntaxTreeTerminal]
case .flowchart:
return [.flowchartFunctionCall, .flowchartInputOutput, .flowchartDecision, .flowchartProcess, .flowchartTerminal]
case .BPMN:
return []
}
}

Expand Down Expand Up @@ -68,6 +71,8 @@ public enum UMLDiagramType: String, Codable, CaseIterable {
return [.syntaxTreeLink]
case .flowchart:
return [.flowchartFlowline]
case .BPMN:
return []
}
}

Expand Down

0 comments on commit 5e4b122

Please sign in to comment.