Skip to content

Commit b7e938c

Browse files
committed
Diagram rendering now features bpmn, camunda
1 parent 578c04e commit b7e938c

File tree

2 files changed

+232
-5
lines changed

2 files changed

+232
-5
lines changed

.github/workflows/RenderAllDiagrams.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths:
66
- '**/Material/images/src/**/*.puml'
77
- '**/Material/images/src/**/*.drawio'
8+
- '**/Material/images/src/**/*.bpmn'
89
branches-ignore:
910
- 'main**'
1011

@@ -38,15 +39,16 @@ jobs:
3839
run: |
3940
wget -O plantuml.jar "https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar"
4041
41-
# Clean Folder
42+
# Ensure Folder exsists, otherwise, create it
4243
- name: Ensure and clean folder
4344
run: |
4445
img_dir=Material/images/diagrams
4546
mkdir -p $img_dir
46-
rm -rf Material/images/diagrams/*.svg
47+
# do not clean
48+
# rm -rf Material/images/diagrams/*.svg
4749

4850
# Generate the SVGs from PUML
49-
- name: Render PUML to SVG and Move files
51+
- name: Render PUML to SVG files
5052
run: |
5153
FileNamePaths=$(find . -path "*/images/src/*/*.puml" -exec dirname {} \; | sort -u)
5254
for dir in $FileNamePaths
@@ -70,7 +72,34 @@ jobs:
7072
format: svg
7173
action-mode: all
7274

75+
# Install note.js and bpmn-to-image
76+
- name: Install Notejs and pbmn-to-image
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: 18
80+
- run: npm install -g bpmn-to-image
81+
82+
# Generate the SVGs from BPMN
83+
- name: Render BPMN to SVG files
84+
run: |
85+
FileNamePaths=$(find . -path "*/images/src/*/*.bpmn" -exec dirname {} \; | sort -u)
86+
for dir in $FileNamePaths
87+
do
88+
# Render SVGs from BPMN
89+
echo $dir
90+
FileBaseNames=$(find $dir -name "*.bpmn" -exec basename "{}" ".bpmn" \; | sort -u)
91+
#FileBaseNames=$(find $dir -name "*.bpmn" | xargs -L1 -I{} basename "{}")
92+
93+
for base in $FileBaseNames
94+
do
95+
echo $base
96+
bpmn-to-image "$dir/$base.bpmn":"$dir/$base.svg";
97+
done
98+
99+
done
100+
73101
# copies the created SVG files to the images/diagrams folder and deletes the drawio files
102+
# mv for copy and delete, here
74103
- name: Move SVGs to target image folder
75104
run: |
76105
img_dir=Material/images/diagrams
@@ -79,7 +108,8 @@ jobs:
79108
for dir in $FileNamePaths
80109
do
81110
# Move SVGs to out directory
82-
find $dir -name "*.svg" -exec mv {} $img_dir \;
111+
# find $dir -name "*.svg" -exec rm -rf {} $img_dir \;
112+
find $dir -name "*.svg" -exec mv -f {} $img_dir \;
83113
done
84114
85115
## add and commit the new generated files
@@ -99,4 +129,8 @@ jobs:
99129
with:
100130
commit_user_name: GitHub Actions Bot
101131
commit_user_email: [email protected]
102-
commit_message: auto-generated diagrams by GitHub Action after source code change
132+
commit_message: auto-generated diagrams by GitHub Action after source code change
133+
134+
- name: "Run if no changes have been detected"
135+
if: steps.auto-commit-action.outputs.changes_detected == 'false'
136+
run: echo "No Changes!"
Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0bryh6e" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0">
3+
<bpmn:collaboration id="Collaboration_0c1jfzz">
4+
<bpmn:participant id="Participant_0sp6c6m" name="Patientenführendes System" processRef="Process_03gpin0" />
5+
<bpmn:participant id="Participant_1hk53bl" name="AMTS System" processRef="Process_1auc2jb" />
6+
<bpmn:participant id="Participant_14ch1u6" name="LIS" processRef="Process_0qkrm6u" />
7+
<bpmn:participant id="Participant_0x9zlvh" name="Med. Mgmt" processRef="Process_10uf7g8" />
8+
<bpmn:messageFlow id="Flow_0zeouqo" name="PID" sourceRef="Event_0is5bbd" targetRef="Event_1vvsvg6" />
9+
<bpmn:messageFlow id="Flow_0zmm5uw" sourceRef="Activity_19p8u3d" targetRef="Participant_14ch1u6" />
10+
<bpmn:messageFlow id="Flow_12h284p" sourceRef="Participant_14ch1u6" targetRef="Activity_19p8u3d" />
11+
<bpmn:messageFlow id="Flow_1k2v1rp" sourceRef="Activity_19p8u3d" targetRef="Participant_0x9zlvh" />
12+
<bpmn:messageFlow id="Flow_0lwrza6" sourceRef="Participant_0x9zlvh" targetRef="Activity_19p8u3d" />
13+
<bpmn:messageFlow id="Flow_15b47tb" sourceRef="Event_03nu3i1" targetRef="Event_10d65p3" />
14+
<bpmn:messageFlow id="Flow_0olasuq" sourceRef="Activity_19p8u3d" targetRef="Participant_0sp6c6m" />
15+
<bpmn:messageFlow id="Flow_0g3lx6l" sourceRef="Participant_0sp6c6m" targetRef="Activity_19p8u3d" />
16+
</bpmn:collaboration>
17+
<bpmn:process id="Process_03gpin0" isExecutable="true" camunda:historyTimeToLive="180">
18+
<bpmn:startEvent id="StartEvent_1">
19+
<bpmn:outgoing>Flow_1etb5j3</bpmn:outgoing>
20+
</bpmn:startEvent>
21+
<bpmn:userTask id="Activity_1oc2cx4" name="Start der AMTS Überprüfung">
22+
<bpmn:incoming>Flow_1etb5j3</bpmn:incoming>
23+
<bpmn:outgoing>Flow_01a0khr</bpmn:outgoing>
24+
</bpmn:userTask>
25+
<bpmn:intermediateThrowEvent id="Event_0is5bbd">
26+
<bpmn:incoming>Flow_01a0khr</bpmn:incoming>
27+
<bpmn:outgoing>Flow_0o3gkzp</bpmn:outgoing>
28+
<bpmn:messageEventDefinition id="MessageEventDefinition_18e4mjf" />
29+
</bpmn:intermediateThrowEvent>
30+
<bpmn:sequenceFlow id="Flow_1etb5j3" sourceRef="StartEvent_1" targetRef="Activity_1oc2cx4" />
31+
<bpmn:sequenceFlow id="Flow_01a0khr" sourceRef="Activity_1oc2cx4" targetRef="Event_0is5bbd" />
32+
<bpmn:sequenceFlow id="Flow_0o3gkzp" sourceRef="Event_0is5bbd" targetRef="Event_10d65p3" />
33+
<bpmn:sequenceFlow id="Flow_10ialbe" sourceRef="Event_10d65p3" targetRef="Activity_13fl80t" />
34+
<bpmn:sequenceFlow id="Flow_0mc1koa" sourceRef="Activity_13fl80t" targetRef="Event_0vmxtz5" />
35+
<bpmn:intermediateCatchEvent id="Event_10d65p3">
36+
<bpmn:incoming>Flow_0o3gkzp</bpmn:incoming>
37+
<bpmn:outgoing>Flow_10ialbe</bpmn:outgoing>
38+
<bpmn:messageEventDefinition id="MessageEventDefinition_0amjbhd" />
39+
</bpmn:intermediateCatchEvent>
40+
<bpmn:task id="Activity_13fl80t" name="Darstellung des Ergebnis">
41+
<bpmn:incoming>Flow_10ialbe</bpmn:incoming>
42+
<bpmn:outgoing>Flow_0mc1koa</bpmn:outgoing>
43+
</bpmn:task>
44+
<bpmn:endEvent id="Event_0vmxtz5">
45+
<bpmn:incoming>Flow_0mc1koa</bpmn:incoming>
46+
</bpmn:endEvent>
47+
</bpmn:process>
48+
<bpmn:process id="Process_1auc2jb" isExecutable="false">
49+
<bpmn:startEvent id="Event_1vvsvg6">
50+
<bpmn:outgoing>Flow_0yv7cnt</bpmn:outgoing>
51+
<bpmn:messageEventDefinition id="MessageEventDefinition_1ir7jpd" />
52+
</bpmn:startEvent>
53+
<bpmn:subProcess id="Activity_19p8u3d" name="Abfrage benötigter Informationen">
54+
<bpmn:incoming>Flow_0yv7cnt</bpmn:incoming>
55+
<bpmn:outgoing>Flow_1mnj0io</bpmn:outgoing>
56+
</bpmn:subProcess>
57+
<bpmn:sequenceFlow id="Flow_0yv7cnt" sourceRef="Event_1vvsvg6" targetRef="Activity_19p8u3d" />
58+
<bpmn:sequenceFlow id="Flow_1mnj0io" sourceRef="Activity_19p8u3d" targetRef="Activity_0kjryzq" />
59+
<bpmn:endEvent id="Event_03nu3i1">
60+
<bpmn:incoming>Flow_1vjmt1e</bpmn:incoming>
61+
<bpmn:messageEventDefinition id="MessageEventDefinition_1g25qb0" />
62+
</bpmn:endEvent>
63+
<bpmn:serviceTask id="Activity_0kjryzq" name="AMTS Überprüfung">
64+
<bpmn:incoming>Flow_1mnj0io</bpmn:incoming>
65+
<bpmn:outgoing>Flow_1vjmt1e</bpmn:outgoing>
66+
</bpmn:serviceTask>
67+
<bpmn:sequenceFlow id="Flow_1vjmt1e" sourceRef="Activity_0kjryzq" targetRef="Event_03nu3i1" />
68+
</bpmn:process>
69+
<bpmn:process id="Process_0qkrm6u" isExecutable="false" />
70+
<bpmn:process id="Process_10uf7g8" isExecutable="false" />
71+
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
72+
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0c1jfzz">
73+
<bpmndi:BPMNShape id="Participant_0sp6c6m_di" bpmnElement="Participant_0sp6c6m" isHorizontal="true">
74+
<dc:Bounds x="129" y="80" width="911" height="140" />
75+
<bpmndi:BPMNLabel />
76+
</bpmndi:BPMNShape>
77+
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
78+
<dc:Bounds x="179" y="132" width="36" height="36" />
79+
</bpmndi:BPMNShape>
80+
<bpmndi:BPMNShape id="Activity_1pys6n2_di" bpmnElement="Activity_1oc2cx4">
81+
<dc:Bounds x="270" y="110" width="100" height="80" />
82+
<bpmndi:BPMNLabel />
83+
</bpmndi:BPMNShape>
84+
<bpmndi:BPMNShape id="Event_0tuws9f_di" bpmnElement="Event_0is5bbd">
85+
<dc:Bounds x="402" y="132" width="36" height="36" />
86+
</bpmndi:BPMNShape>
87+
<bpmndi:BPMNShape id="Event_0f225ri_di" bpmnElement="Event_10d65p3">
88+
<dc:Bounds x="752" y="132" width="36" height="36" />
89+
</bpmndi:BPMNShape>
90+
<bpmndi:BPMNShape id="Activity_13fl80t_di" bpmnElement="Activity_13fl80t">
91+
<dc:Bounds x="830" y="110" width="100" height="80" />
92+
<bpmndi:BPMNLabel />
93+
</bpmndi:BPMNShape>
94+
<bpmndi:BPMNShape id="Event_0vmxtz5_di" bpmnElement="Event_0vmxtz5">
95+
<dc:Bounds x="972" y="132" width="36" height="36" />
96+
</bpmndi:BPMNShape>
97+
<bpmndi:BPMNEdge id="Flow_1etb5j3_di" bpmnElement="Flow_1etb5j3">
98+
<di:waypoint x="215" y="150" />
99+
<di:waypoint x="270" y="150" />
100+
</bpmndi:BPMNEdge>
101+
<bpmndi:BPMNEdge id="Flow_01a0khr_di" bpmnElement="Flow_01a0khr">
102+
<di:waypoint x="370" y="150" />
103+
<di:waypoint x="402" y="150" />
104+
</bpmndi:BPMNEdge>
105+
<bpmndi:BPMNEdge id="Flow_0o3gkzp_di" bpmnElement="Flow_0o3gkzp">
106+
<di:waypoint x="438" y="150" />
107+
<di:waypoint x="752" y="150" />
108+
</bpmndi:BPMNEdge>
109+
<bpmndi:BPMNEdge id="Flow_10ialbe_di" bpmnElement="Flow_10ialbe">
110+
<di:waypoint x="788" y="150" />
111+
<di:waypoint x="830" y="150" />
112+
</bpmndi:BPMNEdge>
113+
<bpmndi:BPMNEdge id="Flow_0mc1koa_di" bpmnElement="Flow_0mc1koa">
114+
<di:waypoint x="930" y="150" />
115+
<di:waypoint x="972" y="150" />
116+
</bpmndi:BPMNEdge>
117+
<bpmndi:BPMNShape id="Participant_1hk53bl_di" bpmnElement="Participant_1hk53bl" isHorizontal="true">
118+
<dc:Bounds x="129" y="240" width="911" height="130" />
119+
<bpmndi:BPMNLabel />
120+
</bpmndi:BPMNShape>
121+
<bpmndi:BPMNShape id="Event_0n9j1ry_di" bpmnElement="Event_1vvsvg6">
122+
<dc:Bounds x="402" y="282" width="36" height="36" />
123+
</bpmndi:BPMNShape>
124+
<bpmndi:BPMNShape id="Event_1qt5zy7_di" bpmnElement="Event_03nu3i1">
125+
<dc:Bounds x="752" y="282" width="36" height="36" />
126+
</bpmndi:BPMNShape>
127+
<bpmndi:BPMNShape id="Activity_01vcbra_di" bpmnElement="Activity_0kjryzq">
128+
<dc:Bounds x="620" y="260" width="100" height="80" />
129+
</bpmndi:BPMNShape>
130+
<bpmndi:BPMNShape id="Activity_0dsa5ke_di" bpmnElement="Activity_19p8u3d">
131+
<dc:Bounds x="490" y="260" width="100" height="80" />
132+
</bpmndi:BPMNShape>
133+
<bpmndi:BPMNEdge id="Flow_0yv7cnt_di" bpmnElement="Flow_0yv7cnt">
134+
<di:waypoint x="438" y="300" />
135+
<di:waypoint x="490" y="300" />
136+
</bpmndi:BPMNEdge>
137+
<bpmndi:BPMNEdge id="Flow_1mnj0io_di" bpmnElement="Flow_1mnj0io">
138+
<di:waypoint x="590" y="300" />
139+
<di:waypoint x="620" y="300" />
140+
</bpmndi:BPMNEdge>
141+
<bpmndi:BPMNEdge id="Flow_1vjmt1e_di" bpmnElement="Flow_1vjmt1e">
142+
<di:waypoint x="720" y="300" />
143+
<di:waypoint x="752" y="300" />
144+
</bpmndi:BPMNEdge>
145+
<bpmndi:BPMNShape id="Participant_14ch1u6_di" bpmnElement="Participant_14ch1u6" isHorizontal="true">
146+
<dc:Bounds x="129" y="390" width="911" height="60" />
147+
<bpmndi:BPMNLabel />
148+
</bpmndi:BPMNShape>
149+
<bpmndi:BPMNShape id="BPMNShape_11uz06l" bpmnElement="Participant_0x9zlvh" isHorizontal="true">
150+
<dc:Bounds x="129" y="470" width="911" height="60" />
151+
<bpmndi:BPMNLabel />
152+
</bpmndi:BPMNShape>
153+
<bpmndi:BPMNEdge id="Flow_0zeouqo_di" bpmnElement="Flow_0zeouqo">
154+
<di:waypoint x="420" y="168" />
155+
<di:waypoint x="420" y="282" />
156+
<bpmndi:BPMNLabel>
157+
<dc:Bounds x="430" y="174" width="19" height="14" />
158+
</bpmndi:BPMNLabel>
159+
</bpmndi:BPMNEdge>
160+
<bpmndi:BPMNEdge id="Flow_0zmm5uw_di" bpmnElement="Flow_0zmm5uw">
161+
<di:waypoint x="530" y="340" />
162+
<di:waypoint x="530" y="390" />
163+
</bpmndi:BPMNEdge>
164+
<bpmndi:BPMNEdge id="Flow_12h284p_di" bpmnElement="Flow_12h284p">
165+
<di:waypoint x="550" y="390" />
166+
<di:waypoint x="550" y="340" />
167+
</bpmndi:BPMNEdge>
168+
<bpmndi:BPMNEdge id="Flow_1k2v1rp_di" bpmnElement="Flow_1k2v1rp">
169+
<di:waypoint x="510" y="340" />
170+
<di:waypoint x="510" y="470" />
171+
</bpmndi:BPMNEdge>
172+
<bpmndi:BPMNEdge id="Flow_0lwrza6_di" bpmnElement="Flow_0lwrza6">
173+
<di:waypoint x="570" y="470" />
174+
<di:waypoint x="570" y="340" />
175+
</bpmndi:BPMNEdge>
176+
<bpmndi:BPMNEdge id="Flow_15b47tb_di" bpmnElement="Flow_15b47tb">
177+
<di:waypoint x="770" y="282" />
178+
<di:waypoint x="770" y="168" />
179+
</bpmndi:BPMNEdge>
180+
<bpmndi:BPMNEdge id="Flow_0olasuq_di" bpmnElement="Flow_0olasuq">
181+
<di:waypoint x="530" y="260" />
182+
<di:waypoint x="530" y="220" />
183+
</bpmndi:BPMNEdge>
184+
<bpmndi:BPMNEdge id="Flow_0g3lx6l_di" bpmnElement="Flow_0g3lx6l">
185+
<di:waypoint x="550" y="220" />
186+
<di:waypoint x="550" y="260" />
187+
</bpmndi:BPMNEdge>
188+
</bpmndi:BPMNPlane>
189+
</bpmndi:BPMNDiagram>
190+
<bpmndi:BPMNDiagram id="BPMNDiagram_1y1jdj4">
191+
<bpmndi:BPMNPlane id="BPMNPlane_0x0swud" bpmnElement="Activity_19p8u3d" />
192+
</bpmndi:BPMNDiagram>
193+
</bpmn:definitions>

0 commit comments

Comments
 (0)