Skip to content

Commit

Permalink
Added numbering to sequence diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
ClosedSourcerer committed Nov 11, 2024
1 parent c395e07 commit 46c8c71
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ The core of the DCM business process is about exchanging demand and capacity inf

```mermaid
sequenceDiagram
actor c as Customer
actor s as Supplier
autonumber
actor c as Customer
actor s as Supplier
rect rgb(221,130,0)
activate c
note left of c: Exchange demand information
Expand All @@ -95,11 +96,17 @@ c->>c: Consume WeekBasedCapacityGroup
end
rect rgb(04,107,153)
note left of c: Compare demands to capacity
autonumber 8
c->>c: Compare WeekBasedMaterialDemand to WeekBasedCapacityGroup
autonumber 8
s->>s: Compare WeekBasedMaterialDemand to WeekBasedCapacityGroup
autonumber 9
c->>c: Identify bottlenecks
autonumber 9
s->>s: Identify bottlenecks
autonumber 10
c->>s: Resolve bottlenecks
autonumber 10
s->>c: Resolve bottlenecks
deactivate c
deactivate s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Comments use their own aspect model and API. Comments are provided and consumed
```mermaid
sequenceDiagram
autonumber
Participant c as Customer
Participant s as Supplier
rect rgb(4,107,153)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,19 @@ Suppliers can use comments to provide customers with additional information abou

```mermaid
sequenceDiagram
autonumber
Participant c as Customer
Participant s as Supplier
rect rgb(157,93,00)
c->>s: I need 100 blue toys each in weeks 47, 48, 49 and 50
c->>s: I need 100 blue toys each in weeks 47, 48, 49 and 50
end
s->>s: Manage Capacities
s->>s: There is a bottleneck in week 50
s->>s: It is solvable via pre-production in weeks 48 and 49
rect rgb(4,107,153)
s-->>c: I can produce 100 in week 47, 0 in week 50 and 150 in weeks 48 and 49
s->>c: 50 each in weeks 48 und 49 are pre-produced to cover the demand in week 50
s-->>c: I can produce 100 in week 47, 0 in week 50 and 150 in weeks 48 and 49
autonumber off
s->>c: 50 each in weeks 48 und 49 are pre-produced to cover the demand in week 50
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,27 +106,29 @@ For further details please refer to [Aspect Model WeekBasedCapacityGroup](../../

```mermaid
sequenceDiagram
autonumber
Participant c as Customer
Participant s as Supplier
rect rgb(157,93,00)
c->>s: I need 1000 red toys in week 19
c->>s: I need 1000 red toys in week 19
end
c->>c: Wait 4 weeks
rect rgb(157,93,00)
c->>s: I need 100 red toys in week 19
c->>s: I need 100 red toys in week 19
end
s->>s: I should really start measuring the volatility of my customers demands
c->>c: Wait 4 weeks
rect rgb(157,93,00)
c->>s: I need 75 red toys in week 19
c->>s: I need 75 red toys in week 19
end
s->>s: I start transferring the volatility of my customers demands
rect rgb(64,74,00)
s->>c: I started measuring Demand Deviation, using the following parameters:
s-->>c: Measurement Interval is set to 4 weeks
s-->>c: Increase limited to max. 20% in subhorizon 3
s-->>c: Decrease limited to max. -20% in subhorizon 3
s-->>c: Measurement starts in week 0, using 4 subhorizons of length (2,11,39,52)
s->>c: I started measuring Demand Deviation, using the following parameters:
autonumber off
s-->>c: Measurement Interval is set to 4 weeks
s-->>c: Increase limited to max. 20% in subhorizon 3
s-->>c: Decrease limited to max. -20% in subhorizon 3
s-->>c: Measurement starts in week 0, using 4 subhorizons of length (2,11,39,52)
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ Supply chain disruption notifications use their own aspect model and API. Suppl

```mermaid
sequenceDiagram
autonumber
Participant c as Customer / Supplier
Participant s as Supplier / Customer
rect rgb(4,107,153)
c->>s: One of my production plants is negatively impacted by a strike
c-->>s: This affects the demand of the following materials: {Toy 1, Toy2, Toy3}
c->>s: One of my production plants is negatively impacted by a strike
autonumber off
c-->>s: This affects the demand of the following materials: {Toy 1, Toy2, Toy3}
end
rect rgb(4,107,153)
c->>s: The disruption (strike) has ended
autonumber 2
c->>s: The disruption (strike) has ended
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,21 @@ Red toy needs 1 cycle at this station. Chrome toy needs 2 cycles because it need

```mermaid
sequenceDiagram
autonumber
Participant c as Customer
Participant s as Supplier
rect rgb(157,93,00)
c->>s: I need 100 red and 100 chrome toys
c->>s: I need 100 red and 100 chrome toys
end
s->>s: Chrome toys strain my capacities twice as much as red toys
rect rgb(4,107,153)
s-->>c: Your demand and my capacities need to be expressed as production cycles.
s-->>c: Red toys are loaded with factor 1
s-->>c: Chrome toys are loaded with factor 2
s->>c: My overall capacity is 250 cycles
s-->>c: Your demand and my capacities need to be expressed as production cycles.
autonumber off
s-->>c: Red toys are loaded with factor 1
s-->>c: Chrome toys are loaded with factor 2
s->>c: My overall capacity is 250 cycles
end
autonumber 4
c->>c: My demands are 100 red cycles plus 200 chrome cycles equals 300 cycles
c->>c: Their capacity for both toys is 250 cycles
c->>c: Reduce demand for chrome toys to 75 so total demand equals 250 cycles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,24 @@ For further details please refer to [Aspect Model - WeekBasedCapacityGroup](../.

```mermaid
sequenceDiagram
autonumber
Participant c as Customer
Participant s as Supplier
rect rgb(191,113,00)
c->>s: I need 60 pieces of toy 1, 40 pieces of toy 2 and 50 pieces of toy 3
c->>s: I need 100 pieces of toy 4 and 70 pieces of toy 5
c->>s: I need 60 pieces of toy 1, 40 pieces of toy 2 and 50 pieces of toy 3
c->>s: I need 100 pieces of toy 4 and 70 pieces of toy 5
end
s->>s: Toys 1, 2 and 3 are produced on line 1, toys 4 and 5 on line 2 and all toys have to pass through paint shop
rect rgb(64,74,00)
s-->>c: Your demand and my capacities need to be assigned to 3 different capacity groups.
s->>c: Toys 1, 2 and 3 are part of capacity group "Production Line 1"
s->>c: Toys 4 and 5 are part of capacity group "Production Line 2"
s-->>c: All toys have to be colored in the paint shop
s->>c: Nesting "Production Line 1" and "Production Line 2" in "Paint Shop" instead of linking each Material Demand separately again
autonumber off
s-->>c: Your demand and my capacities need to be assigned to 3 different capacity groups.
autonumber 4
s->>c: Toys 1, 2 and 3 are part of capacity group "Production Line 1"
s->>c: Toys 4 and 5 are part of capacity group "Production Line 2"
autonumber off
s-->>c: All toys have to be colored in the paint shop
autonumber 6
s->>c: Nesting "Production Line 1" and "Production Line 2" in "Paint Shop" instead of linking each Material Demand separately again
end
c->>c: My demands for all 5 toys are interlinked and transparent that they affect same capacity together
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ Request for update uses its own aspect model and API. Request for update is prov

```mermaid
sequenceDiagram
autonumber
Participant c as Customer / Supplier
Participant s as Supplier / Customer
c->>c: One of my users is viewing some data
c->>c: This data from my partner is 6 months old and I received the last update 2 months ago.
rect rgb(4,107,153)
c->>s: I have data known by ID e03ac75f with timestamp 2023.12.12 do you have a more recent version?
c->>s: I have data known by ID e03ac75f with timestamp 2023.12.12 do you have a more recent version?
end
c->>c: Inform user that I am synchronizing the data
alt Data not in sync
s->>c: Here is a more recent version of data e03ac75f
s->>c: Here is a more recent version of data e03ac75f
else Data still in sync
s->>c: You already have the most recent version of data e03ac75f
autonumber 5
s->>c: You already have the most recent version of data e03ac75f
end
c->>c: Show user how old the data is and when it was last synchronized.
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The WeekBasedCapacityGroup API is owned and registered as an EDC asset by the su

```mermaid
sequenceDiagram
autonumber
actor c as Customer
participant ce as Customer EDC
participant se as Supplier EDC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ sequenceDiagram
actor s as Supplier
rect rgb(217,24,24)
autonumber 1
c->>+ce: Register API as Asset
ce->>-c: API registered
end
rect rgb(217,24,24)
autonumber 1
s->>+se: Register API as Asset
se->>-s: API registered
end
autonumber 1
rect rgb(04,107,153)
c->>+ce: Provide IdBasedComment
rect rgb(33,157,212)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ sequenceDiagram
actor s as Supplier
rect rgb(217,24,24)
c->>+ce: Register API as Asset
ce->>-c: API registered
autonumber 1
c->>+ce: Register API as Asset
ce->>-c: API registered
end
rect rgb(221,130,0)
s->>+se: Provide WeekBasedMaterialDemand
rect rgb(255,166,0)
se->>+ce: Initiate Handshake
ce->>se: Complete Handshake
end
autonumber 1
s->>+se: Provide WeekBasedMaterialDemand
rect rgb(255,166,0)
se->>+ce: Initiate Handshake
ce->>se: Complete Handshake
end
se->>ce: Provide WeekBasedMaterialDemand
ce->>+a: Provide WeekBasedMaterialDemand
a->>-ce: WeekBasedMaterialDemand consumed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,44 +27,40 @@ sequenceDiagram
participant se as Supplier EDC
participant sa as Request for Update API
actor s as Supplier
rect rgb(217,24,24)
c->>+ce: Register API as Asset
ce->>-c: API registered
autonumber 1
c->>+ce: Register API as Asset
ce->>-c: API registered
end
rect rgb(217,24,24)
s->>+se: Register API as Asset
se->>-s: API registered
autonumber 1
s->>+se: Register API as Asset
se->>-s: API registered
end
rect rgb(04,107,153)
c->>+ce: Provide IdBasedRequestForUpdate
rect rgb(33,157,212)
ce->>+se: Initiate Handshake
se->>ce: Complete Handshake
rect rgb(04,107,153)
autonumber 1
c->>+ce: Provide IdBasedRequestForUpdate
rect rgb(33,157,212)
ce->>+se: Initiate Handshake
se->>ce: Complete Handshake
end
ce->>se: Provide IdBasedRequestForUpdate
se->>+sa: Provide IdBasedRequestForUpdate
sa->>-se: IdBasedRequestForUpdate consumed
se->>-ce: IdBasedRequestForUpdate consumed
ce->>-c: IdBasedRequestForUpdate consumed
end
ce->>se: Provide IdBasedRequestForUpdate
se->>+sa: Provide IdBasedRequestForUpdate
sa->>-se: IdBasedRequestForUpdate consumed
se->>-ce: IdBasedRequestForUpdate consumed
ce->>-c: IdBasedRequestForUpdate consumed
end
rect rgb(04,107,153)
s->>+se: Provide IdBasedRequestForUpdate
rect rgb(33,157,212)
se->>+ce: Initiate Handshake
ce->>se: Complete Handshake
end
s->>+se: Provide IdBasedRequestForUpdate
rect rgb(33,157,212)
se->>+ce: Initiate Handshake
ce->>se: Complete Handshake
end
se->>ce: Provide IdBasedRequestForUpdate
ce->>+ca: Provide IdBasedRequestForUpdate
ca->>-ce: IdBasedRequestForUpdate consumed
ce->>-se: IdBasedRequestForUpdate consumed
se->>-s: IdBasedRequestForUpdate consumed
end
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ rect rgb(57,57,57)
s->>s: Check Wallet
end
rect rgb(221,130,0)
autonumber 1
note right of c: Transfer WeekBasedMaterialDemand
c->>s: FileTransfer ALPHA containing MaterialDemand ALPHA,BETA and GAMMA
s->>c: HTTP 200 OK
Expand All @@ -206,6 +207,7 @@ end
rect rgb(57,57,57)
note right of c: GUI test
c->>c: Visualize bottleneck calculation
autonumber 9
s->>s: Visualize bottleneck calculation
end
rect rgb(4,107,153)
Expand Down Expand Up @@ -241,6 +243,7 @@ end
rect rgb(57,57,57)
note right of c: GUI test
c->>c: Visualize Comment
autonumber 22
s->>s: Visualize Comment
end
```
Expand Down

0 comments on commit 46c8c71

Please sign in to comment.