-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKG_Population.bpmn
928 lines (849 loc) · 45.5 KB
/
KG_Population.bpmn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_150fv0s" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.12.0">
<bpmn:collaboration id="Collaboration_19x8n9s">
<bpmn:participant id="Participant_0ddtj9k" name="Semi-automatic KG population" processRef="KG_Population" />
</bpmn:collaboration>
<bpmn:process id="KG_Population" name="Semi-automatic KG population" isExecutable="true">
<bpmn:laneSet>
<bpmn:lane id="Lane_0njs4rm" name="OntoWiki">
<bpmn:flowNodeRef>ExclusiveGateway_0xpy1mr</bpmn:flowNodeRef>
<bpmn:flowNodeRef>EndEvent_11ej7d5</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1o9a7yp</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_0uqxz83</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_056h0f7</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_0q1uk26</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_003w9la" name="CrossRef API">
<bpmn:flowNodeRef>Task_1deft6a</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1u5w6w1</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0pyugd0" name="Wikidata API">
<bpmn:flowNodeRef>ExclusiveGateway_16sa65y</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1lo51xs</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1cn5g0r</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_1f2tdhr" name="Process Engine">
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1bpy8p4</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1phovhc</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_078ej13</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_0qnba7m</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1h6fepb</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0bs76qt" name="ORCID API">
<bpmn:flowNodeRef>Task_11cpv0z</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1q8sa8d</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_157rzqp</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_1h7i0wn</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="StartEvent_1">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="doi" label="Specify DOI:" type="string" />
<camunda:formField id="doicws" label="DOI for CWS:" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:outgoing>SequenceFlow_1725ww7</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_1725ww7" sourceRef="StartEvent_1" targetRef="Task_1bpy8p4" />
<bpmn:sequenceFlow id="SequenceFlow_1blaev5" sourceRef="Task_1bpy8p4" targetRef="ExclusiveGateway_0xpy1mr" />
<bpmn:parallelGateway id="ExclusiveGateway_0xpy1mr">
<bpmn:incoming>SequenceFlow_1blaev5</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_06r699f</bpmn:outgoing>
<bpmn:outgoing>SequenceFlow_0s4dvnd</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="SequenceFlow_06r699f" sourceRef="ExclusiveGateway_0xpy1mr" targetRef="Task_1deft6a" />
<bpmn:sequenceFlow id="SequenceFlow_0s4dvnd" sourceRef="ExclusiveGateway_0xpy1mr" targetRef="Task_1u5w6w1" />
<bpmn:sequenceFlow id="SequenceFlow_1lrtc79" sourceRef="Task_1deft6a" targetRef="Task_11cpv0z" />
<bpmn:sequenceFlow id="SequenceFlow_0780qax" sourceRef="Task_1u5w6w1" targetRef="Task_1lo51xs" />
<bpmn:sequenceFlow id="SequenceFlow_0wjgtm2" sourceRef="Task_11cpv0z" targetRef="Task_157rzqp" />
<bpmn:sequenceFlow id="SequenceFlow_0snzytq" sourceRef="Task_1lo51xs" targetRef="ExclusiveGateway_16sa65y" />
<bpmn:parallelGateway id="ExclusiveGateway_16sa65y">
<bpmn:incoming>SequenceFlow_0snzytq</bpmn:incoming>
<bpmn:incoming>SequenceFlow_0pvhyow</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0gff6w8</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="SequenceFlow_0pvhyow" sourceRef="Task_1cn5g0r" targetRef="ExclusiveGateway_16sa65y" />
<bpmn:sequenceFlow id="SequenceFlow_0gff6w8" sourceRef="ExclusiveGateway_16sa65y" targetRef="Task_056h0f7" />
<bpmn:sequenceFlow id="SequenceFlow_028rl4q" sourceRef="Task_1phovhc" targetRef="Task_1h6fepb" />
<bpmn:sequenceFlow id="SequenceFlow_1ayesbr" sourceRef="Task_0qnba7m" targetRef="Task_078ej13" />
<bpmn:sequenceFlow id="SequenceFlow_1v25cef" sourceRef="Task_0q1uk26" targetRef="Task_0uqxz83" />
<bpmn:sequenceFlow id="SequenceFlow_1qfh79p" sourceRef="Task_0uqxz83" targetRef="Task_1o9a7yp" />
<bpmn:endEvent id="EndEvent_11ej7d5" name="Scholarly article recorded">
<bpmn:incoming>SequenceFlow_0ivuwog</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow_0ivuwog" sourceRef="Task_1o9a7yp" targetRef="EndEvent_11ej7d5" />
<bpmn:serviceTask id="Task_1deft6a" name="Get open data on scholarly article">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var doi = execution.getVariable("doi");
if (doi != null) {
var url = "https://api.crossref.org/works?filter=doi:" + doi + "&select=author,title";
} else {
var url = "";
}
url;
]]></camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Accept">application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:outputParameter name="Output_130160t">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
if (statusCode == 200) {
var json = S(response).prop("message").prop("items").elements().get(0);
var authorList = json.prop("author");
var title = json.prop("title").elements().get(0).value();
connector.setVariable("title", title);
connector.setVariable("authorList", authorList);
var str1 = "{\"authorsWithOrcid\":[]}";
var json1 = S(str1);
connector.setVariable("authorsWithOrcid", json1);
var str2 = "{\"authorsWithoutOrcid\":[]}";
var json2 = S(str2);
connector.setVariable("authorsWithoutOrcid", json2);
var str3 = "{\"orcids\":[]}";
var json3 = S(str3);
connector.setVariable("orcids", json3);
} else {
throw new org.camunda.bpm.engine.delegate.BpmnError("CrossRefError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_06r699f</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1lrtc79</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_1u5w6w1" name="Get open data on CWS and publication event">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var doicws = execution.getVariable("doicws");
var doi = execution.getVariable("doi");
if (doicws != null) {
var url = "https://api.crossref.org/works?filter=doi:" + doicws + "&select=publisher,ISBN,ISSN,title";
} else {
var url = "https://api.crossref.org/works?filter=doi:" + doi + "&select=event,publisher,ISBN,ISSN,container-title";
}
url;]]></camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Accept">application/json; charset=utf-8</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:outputParameter name="Output_0n0vope">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
var doicws = connector.getVariable("doicws");
if (statusCode == 200) {
var json = S(response).prop("message").prop("items").elements().get(0);
if (doicws != null){
if(json.hasProp("publisher")){var publisher = json.prop("publisher").value();
connector.setVariable("publisher", publisher);}
if(json.hasProp("ISBN")){var ISBN = json.prop("ISBN").elements().get(0).value();} else if(json.hasProp("ISSN")){var ISBN =
json.prop("ISSN").elements().get(0).value();} else { var ISBN = null;}
connector.setVariable("ISBN", ISBN);
if(json.hasProp("title")){ var containerList = json.prop("title");
var container = containerList.elements().get(containerList.length-1).value(); connector.setVariable("container", container); }
} else {
if(json.hasProp("publisher")){ var publisher = json.prop("publisher").value();
connector.setVariable("publisher", publisher); }
if(json.hasProp("container-title")){ var containerList = json.prop("container-title");
var container = containerList.elements().get(containerList.length-1).value(); connector.setVariable("container", container); }
if(json.hasProp("ISBN")){var ISBN = json.prop("ISBN").elements().get(0).value();} else if(json.hasProp("ISSN")){var ISBN =
json.prop("ISSN").elements().get(0).value();} else { var ISBN = null;}
connector.setVariable("ISBN", ISBN);
}
var eventExist = 0;
if(json.hasProp("event")) {
eventExist = 1;
var event = json.prop("event");
var eventName = event.prop("name").value();
var eventLocation = event.prop("location").value();
var eventLocationArray = eventLocation.split(", ");
var eventCity = eventLocationArray[0];
var eventCountry = eventLocationArray[eventLocationArray.length-1];
connector.setVariable("eventName", eventName);
connector.setVariable("eventCity", eventCity);
connector.setVariable("eventCountry", eventCountry);
}
connector.setVariable("eventExist", eventExist);
}
else {
throw new org.camunda.bpm.engine.delegate.BpmnError("CrossRefError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_0s4dvnd</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0780qax</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_1lo51xs" name="Request identifiers for publisher and place">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Content-Type">application/x-www-form-urlencoded</camunda:entry>
<camunda:entry key="Accept">application/sparql-results+json; charset=utf-8</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var eventExist = execution.getVariable("eventExist");
var publisher = execution.getVariable("publisher");
publisher = publisher.replace(/\s/g, "+");
var eventCity = execution.getVariable("eventCity");
var eventCountry = execution.getVariable("eventCountry");
if (eventExist=0) {
var url = "https://query.wikidata.org/sparql?query=SELECT+?publisher+?publishercountry+WHERE%7B?publisher+wdt:P31+wd:Q2085381;skos:altLabel+?object;wdt:P17+?publishercountry.FILTER+REGEX(?object,%22" + publisher + "%22)+FILTER(LANG(?object)=%22en%22)%7D";
} else {
var url = "https://query.wikidata.org/sparql?query=SELECT+?publisher+?publishercountry+?eventcity+WHERE%7B?publisher+wdt:P31+wd:Q2085381;skos:altLabel+?object;wdt:P17+?publishercountry.FILTER+REGEX(?object,%22" + publisher + "%22)+FILTER(LANG(?object)=%22en%22)OPTIONAL%7B?eventcity+wdt:P373+%22" + eventCity + "%22;wdt:P17+?eventcountry.?eventcountry+wdt:P373+%22" + eventCountry + "%22.%7D%7D";
}
url;
]]></camunda:script>
</camunda:inputParameter>
<camunda:outputParameter name="Output_3at8phq">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
var eventExist = connector.getVariable("eventExist");
if (statusCode == 200) {
var json = S(response).prop("results").prop("bindings").elements().get(0);
var publisherID = json.prop("publisher").prop("value").value();
var publisherCountry = json.prop("publishercountry").prop("value").value();
connector.setVariable("publisherID", publisherID);
if (eventExist !=0) {
var eventCityID = json.prop("eventcity").prop("value").value();
connector.setVariable("eventCityID", eventCityID);
}
} else {
throw new org.camunda.bpm.engine.delegate.BpmnError("WikidataError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_0780qax</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0snzytq</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Task_11cpv0z" name="Request identifiers for authors">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Content-Type">application/vnd.orcid+json</camunda:entry>
<camunda:entry key="Authorization Bearer">79fa33bb-1ff2-4d02-af62-0b7547bd8a05</camunda:entry>
<camunda:entry key="Accept">application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var given = author.prop("given").value();
given = given.replace(/\s/g, "+");
var family = author.prop("family").value();
family = family.replace(/\s/g, "+");
var str = "{\"organizations\":[]}";
var json = S(str);
execution.setVariable("organizations", json);
var url = "https://pub.orcid.org/v2.1/search/?q=family-name:" + family + "+AND+given-names:" + given;
url;
]]></camunda:script>
</camunda:inputParameter>
<camunda:outputParameter name="Output_2c422ss">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
var authorsWithOrcid = connector.getVariable("authorsWithOrcid");
var authorsWithoutOrcid = connector.getVariable("authorsWithoutOrcid");
var orcids = connector.getVariable("orcids");
var given = author.prop("given").value();
var family = author.prop("family").value();
if (statusCode == 200) {
var orcidExist = S(response).prop("num-found").value();
if(orcidExist > 0) {
var orcid = S(response).prop("result").elements().get(0).prop("orcid-identifier").prop("uri").value();
orcid = orcid.substring(18);
orcidExist = 1;
var str = "{\"given\":\"" + given + "\",\"family\":\"" + family + "\",\"orcidExist\":\"" + orcidExist + "\",\"orcid\":\"https://orcid.org/" + orcid + "\"}";
var json = S(str);
authorsWithOrcid.prop("authorsWithOrcid").append(json);
orcids.prop("orcids").append(orcid);
connector.setVariable("authorsWithOrcid", authorsWithOrcid);
connector.setVariable("orcids", orcids);
} else {
orcidExist = 0;
var str = "{\"given\":\"" + given + "\",\"family\":\"" + family + "\",\"orcidExist\":\"" + orcidExist + "\"}";
var json = S(str);
authorsWithoutOrcid.prop("authorsWithoutOrcid").append(json);
connector.setVariable("authorsWithoutOrcid", authorsWithoutOrcid);
}
} else {
throw new org.camunda.bpm.engine.delegate.BpmnError("OrcidError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1lrtc79</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0wjgtm2</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics camunda:collection="${authorList.elements()}" camunda:elementVariable="author" />
</bpmn:serviceTask>
<bpmn:task id="Task_1bpy8p4" name="Specify DOI for scholarly article and CWS">
<bpmn:incoming>SequenceFlow_1725ww7</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1blaev5</bpmn:outgoing>
</bpmn:task>
<bpmn:serviceTask id="Task_1cn5g0r" name="Request identifiers for affiliation and place">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Content-Type">application/x-www-form-urlencoded</camunda:entry>
<camunda:entry key="Accept">application/sparql-results+json; charset=utf-8</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var affiliationExist = organization.prop("affiliationExist").value();
if (affiliationExist == 1) {
var organizationName = organization.prop("organizationName").value();
organizationName = organizationName.replace(/\s/g, "+");
var organizationCity = organization.prop("organizationCity").value();
var organizationCountry = organization.prop("organizationCountry").value();
var url = "https://query.wikidata.org/sparql?query=SELECT+?organization+?city+?country+?website+WHERE%7B?country+wdt:P297+%22"+organizationCountry+"%22.?city+wdt:P17+?country;wdt:P31+wd:Q22865;skos:altLabel+?obj1.FILTER+REGEX(?obj1,%22"+organizationCity+"%22)+OPTIONAL%7B?organization+wdt:P131+?city;skos:altLabel+?obj2.FILTER+REGEX(?obj2,%22"+organizationName+"%22)?organization+wdt:P856+?website.%7D%7D";
} else {
var url = null;
}
url;]]></camunda:script>
</camunda:inputParameter>
<camunda:outputParameter name="Output_2uubv30">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
var orcid = organization.prop("orcid");
var affiliationExist = organization.prop("affiliationExist").value();
var organizationName = organization.prop("organizationName").value();
var IDs = connector.getVariable("IDs");
var OrgaWithoutID = connector.getVariable("OrgaWithoutID");
if (statusCode == 200) {
var json = S(response).prop("results").prop("bindings").elements().get(0);
var organizationCountryID = json.prop("country").prop("value").value();
var organizationCityID = json.prop("city").prop("value").value();
var fieldnames = json.fieldNames();
var organizationExist = 0;
if (fieldnames.length > 2) {
organizationExist = 1;
var organizationID = json.prop("organization").prop("value").value();
if(json.prop("website").prop("value").isNull()){
var organizationWebsite = null;
} else {
var organizationWebsite = json.prop("website").prop("value").value();
}
var str = "{\"orcid\":" + orcid + ",\"affiliationExist\":\"" + affiliationExist + "\",\"organizationExist\":\"" + organizationExist + "\",\"organizationName\":\"" + organizationName + "\",\"organizationID\":\"" + organizationID + "\",\"organizationCityID\":\"" + organizationCityID + "\",\"organizationWebsite\":\"" + organizationWebsite + "\"}";
var IDjson = S(str);
IDs.prop("IDs").append(IDjson);
connector.setVariable("IDs", IDs);
}else{
var str = "{\"orcid\":" + orcid + ",\"affiliationExist\":\"" + affiliationExist + "\",\"organizationExist\":\"" + organizationExist + "\",\"organizationName\":\"" + organizationName + "\",\"organizationCityID\":\"" + organizationCityID + "\"}";
var WithoutIDjson = S(str);
OrgaWithoutID.prop("OrgaWithoutID").append(WithoutIDjson);
connector.setVariable("OrgaWithoutID", OrgaWithoutID);
}
} else {
throw new org.camunda.bpm.engine.delegate.BpmnError("WikidataError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1rmr4e6</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0pvhyow</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics camunda:collection="${organizations.prop("organizations").elements()}" camunda:elementVariable="organization" />
</bpmn:serviceTask>
<bpmn:sequenceFlow id="SequenceFlow_1o31z39" sourceRef="Task_1h7i0wn" targetRef="Task_1q8sa8d" />
<bpmn:scriptTask id="Task_1phovhc" name="Generate missing identifiers in spe namespace" scriptFormat="Javascript" camunda:resultVariable=" ">
<bpmn:incoming>SequenceFlow_0i3qi7z</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_028rl4q</bpmn:outgoing>
<bpmn:script><![CDATA[var doicws = execution.getVariable("doicws");
var authorsWithoutOrcid = execution.getVariable("authorsWithoutOrcid");
var authorsWithOrcid = execution.getVariable("authorsWithOrcid");
var IDs = execution.getVariable("IDs");
var OrgaWithoutID = execution.getVariable("OrgaWithoutID");
if (doicws) {
doicws = "https://doi.org/" + doicws;
execution.setVariable("doicws", doicws);
} else {
var ISBN = execution.getVariable("ISBN");
doicws = "https://bmake.th-brandenburg.de/spe#ISBN" + ISBN;
execution.setVariable("doicws", doicws);
}
authorsWithoutOrcid = authorsWithoutOrcid.prop("authorsWithoutOrcid").elements();
if(authorsWithoutOrcid.length > 0){
authorsWithoutOrcid.forEach(addMissingOrcid);
}
function addMissingOrcid(value){
var given = value.prop("given").value();
var family = value.prop("family").value();
var orcid = "https://bmake.th-brandenburg.de/spe#" + given.replace(/\s/g, "+") + family.replace(/\s/g, "+");
var str = "{\"given\":\"" + given + "\",\"family\":\"" + family + "\",\"orcidExist\":\"1\"" + ",\"orcid\":\"" + orcid + "\"}";
var authorJson = S(str);
authorsWithOrcid.prop("authorsWithOrcid").append(authorJson);
}
if(OrgaWithoutID != null){
OrgaWithoutID = OrgaWithoutID.prop("OrgaWithoutID").elements();
if(OrgaWithoutID.length > 0){
OrgaWithoutID.forEach(addMissingOrgaID);
}
}
function addMissingOrgaID(value){
value.prop("organizationExist", "1");
var organizationName = value.prop("organizationName");
var organizationID = "https://bmake.th-brandenburg.de/spe#" + organizationName.replace(/\s/g, "+");
value.prop("organizationID", organizationID);
value.prop("organizationWebsite", "");
IDs.prop("IDs").append(value);
}
execution.setVariable("authorsWithOrcid", authorsWithOrcid);
execution.setVariable("IDs", IDs);]]></bpmn:script>
</bpmn:scriptTask>
<bpmn:task id="Task_1o9a7yp" name="Add results of qualitative analysis">
<bpmn:incoming>SequenceFlow_1qfh79p</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0ivuwog</bpmn:outgoing>
</bpmn:task>
<bpmn:userTask id="Task_0uqxz83" name="Add missing metadata">
<bpmn:incoming>SequenceFlow_1v25cef</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1qfh79p</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="SequenceFlow_0i3qi7z" sourceRef="Task_056h0f7" targetRef="Task_1phovhc" />
<bpmn:sequenceFlow id="SequenceFlow_1rmr4e6" sourceRef="Task_1q8sa8d" targetRef="Task_1cn5g0r" />
<bpmn:sequenceFlow id="SequenceFlow_1c38l1h" sourceRef="Task_157rzqp" targetRef="Task_1h7i0wn" />
<bpmn:userTask id="Task_056h0f7" name="test3">
<bpmn:incoming>SequenceFlow_0gff6w8</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0i3qi7z</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_1q8sa8d" name="test2">
<bpmn:incoming>SequenceFlow_1o31z39</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1rmr4e6</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_157rzqp" name="test1">
<bpmn:incoming>SequenceFlow_0wjgtm2</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1c38l1h</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_1h7i0wn" name="Request affiliation for authors">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">GET</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Content-Type">application/vnd.orcid+json</camunda:entry>
<camunda:entry key="Authorization Bearer">79fa33bb-1ff2-4d02-af62-0b7547bd8a05</camunda:entry>
<camunda:entry key="Accept">application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="freemarker">https://pub.orcid.org/v2.1/${orcid.value()}/employments</camunda:script>
</camunda:inputParameter>
<camunda:outputParameter name="Output_2o4kru0">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
var organizations = connector.getVariable("organizations");
if (statusCode == 200) {
var affiliationExist = 0;
if (S(response).prop("last-modified-date").isNull()) {
affiliationExist = 0;
var str = "{\"orcid\":" + orcid + ",\"affiliationExist\":\"" + affiliationExist + "\"}";
var json = S(str);
} else {
affiliationExist = 1;
var organization = S(response).prop("employment-summary").elements().get(0).prop("organization");
var organizationName = organization.prop("name").value();
var organizationCity = organization.prop("address").prop("city").value();
organizationCity = organizationCity.replace(/\s/g, "+");
var organizationCountry = organization.prop("address").prop("country").value();
var str = "{\"orcid\":" + orcid + ",\"affiliationExist\":\"" + affiliationExist + "\",\"organizationName\":\"" + organizationName + "\",\"organizationCity\":\"" + organizationCity + "\",\"organizationCountry\":\"" + organizationCountry + "\"}";
var json = S(str);
organizations.prop("organizations").append(json);
connector.setVariable("organizations", organizations);
var str1 = "{\"IDs\":[]}";
var IDlist1 = S(str1);
connector.setVariable("IDs", IDlist1);
var str2 = "{\"OrgaWithoutID\":[]}";
var IDlist2 = S(str2);
connector.setVariable("OrgaWithoutID", IDlist2);
}
} else {
throw new org.camunda.bpm.engine.delegate.BpmnError("OrcidError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1c38l1h</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1o31z39</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics camunda:collection="${orcids.prop("orcids").elements()}" camunda:elementVariable="orcid" />
</bpmn:serviceTask>
<bpmn:sequenceFlow id="SequenceFlow_0zl22bd" sourceRef="Task_078ej13" targetRef="Task_0q1uk26" />
<bpmn:userTask id="Task_078ej13" name="test5">
<bpmn:incoming>SequenceFlow_1ayesbr</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_0zl22bd</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="Task_0qnba7m" name="Generate RDF data frame" scriptFormat="Javascript" camunda:resultVariable="rdf">
<bpmn:incoming>SequenceFlow_1j48u7y</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1ayesbr</bpmn:outgoing>
<bpmn:script><![CDATA[var doicws = execution.getVariable("doicws");
var doi = execution.getVariable("doi");
var title = execution.getVariable("title");
var container = execution.getVariable("container");
var publisherID = execution.getVariable("publisherID");
var authorsWithOrcid = execution.getVariable("authorsWithOrcid").prop("authorsWithOrcid").elements();
var IDs = execution.getVariable("IDs");
var prefix = "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix schema: <https://schema.org/> . @prefix wd: <http://www.wikidata.org/entity/> . @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix dcterms: <http://purl.org/dc/terms/> . @prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> . @prefix spv: <https://bmake.th-brandenburg.de/spv#> . @prefix spe: <https://bmake.th-brandenburg.de/spe#> . @prefix voaf: <http://purl.org/vocommons/voaf#> . @prefix vann: <http://purl.org/vocab/vann/> . @prefix cc: <http://creativecommons.org/ns#> . ";
var article = "<https://doi.org/" + doi + "> a schema:ScholarlyArticle ; schema:headline \"" + title + "\"; schema:isPartOf <" + doicws + "> . ";
var authors = "";
authorsWithOrcid.forEach(addAuthorOrcid);
function addAuthorOrcid(value){
var orcid = value.prop("orcid").value();
var given = value.prop("given").value();
var family = value.prop("family").value();
article = article + "<https://doi.org/" + doi + "> schema:author <" + orcid + "> . ";
authors = authors + "<" + orcid + "> a schema:Person ; schema:familyName \"" + family + "\" ; schema:givenName \"" + given + "\" . ";
}
var organization = "";
var city = "";
if (IDs != null) {
var IDs = IDs.prop("IDs").elements();
IDs.forEach(addOrganization);
}
function addOrganization(value){
var orcid = value.prop("orcid").value();
var organizationName = value.prop("organizationName").value();
var organizationID = value.prop("organizationID").value();
var organizationCityID = value.prop("organizationCityID").value();
var organizationWebsite = value.prop("organizationWebsite").value();
authors = authors + "<https://orcid.org/" + orcid + "> schema:affiliation <" + organizationID + "> . ";
organization = organization + "<" + organizationID + "> a schema:Organization ; schema:legalName \"" + organizationName + "\" ; schema:location <" + organizationCityID + "> ; schema:url \"" + organizationWebsite + "\" . ";
city = city + "<" + organizationCityID + "> a schema:Place . ";
}
var cws = "<" + doicws + "> a schema:CreativeWorkSeries ; schema:name \"" + container + "\" ; schema:publisher <" + publisherID + "> . ";
var publisher = "<" + publisherID + "> a schema:Organization . ";
var rdf = prefix + article + authors + organization + city + cws + publisher;
rdf;]]></bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="SequenceFlow_1j48u7y" sourceRef="Task_1h6fepb" targetRef="Task_0qnba7m" />
<bpmn:userTask id="Task_1h6fepb" name="test4">
<bpmn:incoming>SequenceFlow_028rl4q</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1j48u7y</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_0q1uk26" name="Import RDF data frame into knowledge base">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="method">POST</camunda:inputParameter>
<camunda:inputParameter name="url">
<camunda:script scriptFormat="Javascript"><![CDATA[var rdf = execution.getVariable("rdf");
var urlToEncode = "https://bmakewiki.th-brandenburg.de/OntoWiki/index.php/update?query=INSERT DATA INTO <https://bmakewiki.th-brandenburg.de/OntoWiki/index.php/PaperPopulation/> {" + rdf + " }";
urlToEncode = urlToEncode.replace(/\s/g, '+');
urlToEncode = urlToEncode.replace(/</g, '%3C');
urlToEncode = urlToEncode.replace(/>/g, '%3E');
urlToEncode = urlToEncode.replace(/{/g, '%7B');
urlToEncode = urlToEncode.replace(/}/g, '%7D');
urlToEncode = urlToEncode.replace(/"/g, '%22');
urlToEncode = urlToEncode.replace(/#/g, '%23');
urlToEncode = urlToEncode.replace(/@/g, '%40');
execution.setVariable("urlToEncode", urlToEncode);
var url = urlToEncode;
url;
]]></camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="Accept">application/sparql-results+json; charset=utf-8</camunda:entry>
<camunda:entry key="Content-Type">application/x-www-form-urlencoded</camunda:entry>
<camunda:entry key="Authorization">Basic V2VueGluOnNwdjIwMTc=</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:outputParameter name="Output_38mqfdf">
<camunda:script scriptFormat="Javascript"><![CDATA[var statusCode = connector.getVariable("statusCode");
var response = connector.getVariable("response");
if (statusCode == 200) {
}else{
throw new org.camunda.bpm.engine.delegate.BpmnError("OntoWikiError");
}]]></camunda:script>
</camunda:outputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_0zl22bd</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1v25cef</bpmn:outgoing>
</bpmn:serviceTask>
</bpmn:process>
<bpmn:error id="Error_1eb7zqb" name="OntoWikiError" errorCode="OntoWikiError" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_19x8n9s">
<bpmndi:BPMNShape id="Participant_0ddtj9k_di" bpmnElement="Participant_0ddtj9k">
<dc:Bounds x="122" y="38" width="1124" height="713" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="197" y="82" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="170" y="118" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0njs4rm_di" bpmnElement="Lane_0njs4rm">
<dc:Bounds x="152" y="158" width="1094" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_003w9la_di" bpmnElement="Lane_003w9la">
<dc:Bounds x="152" y="298" width="1094" height="142" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0pyugd0_di" bpmnElement="Lane_0pyugd0">
<dc:Bounds x="152" y="440" width="1094" height="151" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1f2tdhr_di" bpmnElement="Lane_1f2tdhr">
<dc:Bounds x="152" y="38" width="1094" height="120" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0bs76qt_di" bpmnElement="Lane_0bs76qt">
<dc:Bounds x="152" y="591" width="1094" height="160" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1725ww7_di" bpmnElement="SequenceFlow_1725ww7">
<di:waypoint x="233" y="100" />
<di:waypoint x="283" y="100" />
<bpmndi:BPMNLabel>
<dc:Bounds x="213" y="78.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1blaev5_di" bpmnElement="SequenceFlow_1blaev5">
<di:waypoint x="333" y="140" />
<di:waypoint x="333" y="206" />
<bpmndi:BPMNLabel>
<dc:Bounds x="303" y="166.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ParallelGateway_0gem0yo_di" bpmnElement="ExclusiveGateway_0xpy1mr">
<dc:Bounds x="308" y="206" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="333" y="265.5" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_06r699f_di" bpmnElement="SequenceFlow_06r699f">
<di:waypoint x="308" y="231" />
<di:waypoint x="252" y="231" />
<di:waypoint x="252" y="325" />
<bpmndi:BPMNLabel>
<dc:Bounds x="235" y="209.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0s4dvnd_di" bpmnElement="SequenceFlow_0s4dvnd">
<di:waypoint x="358" y="231" />
<di:waypoint x="428" y="231" />
<di:waypoint x="428" y="325" />
<bpmndi:BPMNLabel>
<dc:Bounds x="348" y="209.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1lrtc79_di" bpmnElement="SequenceFlow_1lrtc79">
<di:waypoint x="252" y="405" />
<di:waypoint x="252" y="621" />
<bpmndi:BPMNLabel>
<dc:Bounds x="222" y="506.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0780qax_di" bpmnElement="SequenceFlow_0780qax">
<di:waypoint x="428" y="405" />
<di:waypoint x="428" y="475" />
<bpmndi:BPMNLabel>
<dc:Bounds x="398" y="433.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0wjgtm2_di" bpmnElement="SequenceFlow_0wjgtm2">
<di:waypoint x="302" y="661" />
<di:waypoint x="345" y="660" />
<bpmndi:BPMNLabel>
<dc:Bounds x="278.5" y="639" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0snzytq_di" bpmnElement="SequenceFlow_0snzytq">
<di:waypoint x="478" y="515" />
<di:waypoint x="528" y="515" />
<bpmndi:BPMNLabel>
<dc:Bounds x="458" y="493.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ParallelGateway_1fqdws5_di" bpmnElement="ExclusiveGateway_16sa65y">
<dc:Bounds x="528" y="490" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="553" y="550" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0pvhyow_di" bpmnElement="SequenceFlow_0pvhyow">
<di:waypoint x="633" y="515" />
<di:waypoint x="578" y="515" />
<bpmndi:BPMNLabel>
<dc:Bounds x="560.5" y="493.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_0gff6w8_di" bpmnElement="SequenceFlow_0gff6w8">
<di:waypoint x="553" y="490" />
<di:waypoint x="553" y="271" />
<bpmndi:BPMNLabel>
<dc:Bounds x="523" y="374" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_028rl4q_di" bpmnElement="SequenceFlow_028rl4q">
<di:waypoint x="603" y="100" />
<di:waypoint x="666" y="100" />
<bpmndi:BPMNLabel>
<dc:Bounds x="589.5" y="78.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1ayesbr_di" bpmnElement="SequenceFlow_1ayesbr">
<di:waypoint x="938" y="100" />
<di:waypoint x="1024" y="100" />
<bpmndi:BPMNLabel>
<dc:Bounds x="936" y="78.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1v25cef_di" bpmnElement="SequenceFlow_1v25cef">
<di:waypoint x="753" y="231" />
<di:waypoint x="803" y="231" />
<bpmndi:BPMNLabel>
<dc:Bounds x="733" y="209.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1qfh79p_di" bpmnElement="SequenceFlow_1qfh79p">
<di:waypoint x="903" y="231" />
<di:waypoint x="953" y="231" />
<bpmndi:BPMNLabel>
<dc:Bounds x="883" y="209.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="EndEvent_11ej7d5_di" bpmnElement="EndEvent_11ej7d5">
<dc:Bounds x="1103" y="213" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1082" y="252" width="78" height="25" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0ivuwog_di" bpmnElement="SequenceFlow_0ivuwog">
<di:waypoint x="1053" y="231" />
<di:waypoint x="1103" y="231" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1033" y="209.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_0u3bc44_di" bpmnElement="Task_1deft6a">
<dc:Bounds x="202" y="325" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_03hj2zt_di" bpmnElement="Task_1u5w6w1">
<dc:Bounds x="378" y="325" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0i7lnq7_di" bpmnElement="Task_1lo51xs">
<dc:Bounds x="378" y="475" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_11z2410_di" bpmnElement="Task_11cpv0z">
<dc:Bounds x="202" y="621" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_0gvoucw_di" bpmnElement="Task_1bpy8p4">
<dc:Bounds x="283" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0moij7l_di" bpmnElement="Task_1cn5g0r">
<dc:Bounds x="633" y="475" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1o31z39_di" bpmnElement="SequenceFlow_1o31z39">
<di:waypoint x="588" y="661" />
<di:waypoint x="633" y="661" />
<bpmndi:BPMNLabel>
<dc:Bounds x="565.5" y="639.5" width="90" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ServiceTask_0l42hwt_di" bpmnElement="Task_1h7i0wn">
<dc:Bounds x="488" y="621" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ScriptTask_11c6rb5_di" bpmnElement="Task_1phovhc">
<dc:Bounds x="503" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ScriptTask_0omhq4v_di" bpmnElement="Task_0qnba7m">
<dc:Bounds x="838" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0iutlvc_di" bpmnElement="Task_0q1uk26">
<dc:Bounds x="653" y="191" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_105vhbc_di" bpmnElement="Task_1o9a7yp">
<dc:Bounds x="953" y="191" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="UserTask_1x9e8kr_di" bpmnElement="Task_0uqxz83">
<dc:Bounds x="803" y="191" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0i3qi7z_di" bpmnElement="SequenceFlow_0i3qi7z">
<di:waypoint x="553" y="191" />
<di:waypoint x="553" y="140" />
<bpmndi:BPMNLabel>
<dc:Bounds x="568" y="159" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1rmr4e6_di" bpmnElement="SequenceFlow_1rmr4e6">
<di:waypoint x="682" y="621" />
<di:waypoint x="682" y="588" />
<di:waypoint x="683" y="588" />
<di:waypoint x="683" y="555" />
<bpmndi:BPMNLabel>
<dc:Bounds x="682.5" y="566.5" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserTask_07r7m6z_di" bpmnElement="Task_1q8sa8d">
<dc:Bounds x="633" y="621" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1c38l1h_di" bpmnElement="SequenceFlow_1c38l1h">
<di:waypoint x="445" y="660" />
<di:waypoint x="488" y="661" />
<bpmndi:BPMNLabel>
<dc:Bounds x="466.5" y="639" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserTask_0sict2u_di" bpmnElement="Task_157rzqp">
<dc:Bounds x="345" y="621" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="UserTask_01msu2c_di" bpmnElement="Task_056h0f7">
<dc:Bounds x="503" y="191" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_0zl22bd_di" bpmnElement="SequenceFlow_0zl22bd">
<di:waypoint x="1024" y="115" />
<di:waypoint x="822" y="176" />
<di:waypoint x="753" y="208" />
<bpmndi:BPMNLabel>
<dc:Bounds x="923" y="124" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserTask_1dmd6q9_di" bpmnElement="Task_078ej13">
<dc:Bounds x="1024" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1j48u7y_di" bpmnElement="SequenceFlow_1j48u7y">
<di:waypoint x="766" y="100" />
<di:waypoint x="838" y="100" />
<bpmndi:BPMNLabel>
<dc:Bounds x="802" y="78.5" width="0" height="13" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="UserTask_0qlj4iz_di" bpmnElement="Task_1h6fepb">
<dc:Bounds x="666" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>