cpee 1.3.201 → 1.3.202
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/wfadaptor.css +6 -0
- data/cockpit/index.html +0 -21
- data/cockpit/testsets/Lego Crane.xml +113 -0
- data/cockpit/testsets/Lego Ejector.xml +2 -2
- data/cockpit/testsets/Lego Plate.xml +36 -0
- data/cockpit/testsets/testsets.xml +2 -1
- data/cockpit/themes/default/theme.js +1 -1
- data/cpee.gemspec +1 -1
- data/server/handlerwrappers/default.rb +9 -9
- data/server/instances/1/properties.xml +33 -33
- data/server/instances/10/properties.xml +10 -128
- data/server/instances/11/properties.xml +34 -122
- data/server/instances/12/properties.xml +24 -22
- data/server/instances/13/properties.xml +32 -120
- data/server/instances/14/properties.xml +107 -69
- data/server/instances/15/properties.xml +40 -85
- data/server/instances/16/properties.xml +36 -87
- data/server/instances/17/properties.xml +9 -128
- data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/consumer-secret +1 -0
- data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/producer-secret +1 -0
- data/server/instances/{69/notifications/4fa830eafc09f4c0d0070a3453cac985 → 18/notifications/b4e45a42c61d03b052d768c1693af99f}/subscription.xml +7 -3
- data/server/instances/18/properties.xml +24 -24
- data/server/instances/2/properties.xml +9 -808
- data/server/instances/3/properties.xml +39 -7
- data/server/instances/4/properties.xml +30 -117
- data/server/instances/5/properties.xml +28 -115
- data/server/instances/6/properties.xml +11 -129
- data/server/instances/7/properties.xml +30 -117
- data/server/instances/8/properties.xml +10 -128
- data/server/instances/9/properties.xml +39 -7
- data/server/resources/transformation_dslx.xsl +35 -28
- data/server/weel.rb +1 -0
- metadata +8 -69
- data/server/instances/19/properties.xml +0 -115
- data/server/instances/20/properties.xml +0 -114
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +0 -1
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +0 -1
- data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +0 -6
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +0 -1
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +0 -1
- data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +0 -23
- data/server/instances/21/properties.xml +0 -150
- data/server/instances/22/properties.xml +0 -114
- data/server/instances/23/properties.xml +0 -89
- data/server/instances/24/properties.xml +0 -169
- data/server/instances/25/properties.xml +0 -150
- data/server/instances/26/properties.xml +0 -114
- data/server/instances/27/properties.xml +0 -142
- data/server/instances/28/properties.xml +0 -150
- data/server/instances/29/properties.xml +0 -150
- data/server/instances/30/properties.xml +0 -114
- data/server/instances/31/properties.xml +0 -150
- data/server/instances/32/properties.xml +0 -31
- data/server/instances/33/properties.xml +0 -150
- data/server/instances/34/properties.xml +0 -150
- data/server/instances/35/properties.xml +0 -150
- data/server/instances/36/properties.xml +0 -165
- data/server/instances/37/properties.xml +0 -114
- data/server/instances/38/properties.xml +0 -163
- data/server/instances/39/log.xes +0 -137
- data/server/instances/39/properties.xml +0 -177
- data/server/instances/40/properties.xml +0 -45
- data/server/instances/41/log.xes +0 -138
- data/server/instances/41/properties.xml +0 -177
- data/server/instances/42/log.xes +0 -138
- data/server/instances/42/properties.xml +0 -177
- data/server/instances/43/log.xes +0 -138
- data/server/instances/43/properties.xml +0 -177
- data/server/instances/44/log.xes +0 -138
- data/server/instances/44/properties.xml +0 -177
- data/server/instances/45/log.xes +0 -10
- data/server/instances/45/properties.xml +0 -177
- data/server/instances/46/properties.xml +0 -31
- data/server/instances/47/properties.xml +0 -150
- data/server/instances/48/log.xes +0 -122
- data/server/instances/48/properties.xml +0 -187
- data/server/instances/49/properties.xml +0 -187
- data/server/instances/50/properties.xml +0 -114
- data/server/instances/51/properties.xml +0 -130
- data/server/instances/52/properties.xml +0 -130
- data/server/instances/53/properties.xml +0 -31
- data/server/instances/54/properties.xml +0 -130
- data/server/instances/55/properties.xml +0 -31
- data/server/instances/56/properties.xml +0 -31
- data/server/instances/57/properties.xml +0 -561
- data/server/instances/58/properties.xml +0 -550
- data/server/instances/59/properties.xml +0 -418
- data/server/instances/60/properties.xml +0 -150
- data/server/instances/61/properties.xml +0 -150
- data/server/instances/62/properties.xml +0 -114
- data/server/instances/63/properties.xml +0 -150
- data/server/instances/64/properties.xml +0 -114
- data/server/instances/65/properties.xml +0 -114
- data/server/instances/66/properties.xml +0 -114
- data/server/instances/67/properties.xml +0 -114
- data/server/instances/68/properties.xml +0 -112
- data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/consumer-secret +0 -1
- data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/producer-secret +0 -1
- data/server/instances/69/properties.xml +0 -114
@@ -1,150 +1,31 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
2
|
<attributes>
|
3
|
-
<
|
3
|
+
<uuid>8a6e324f-6b5d-4956-9a1a-66fb29e93ced</uuid>
|
4
|
+
<info/>
|
4
5
|
<modeltype>CPEE</modeltype>
|
5
6
|
<theme>default</theme>
|
6
|
-
<uuid>f6678f00-d452-427d-9b56-e40e7c456385</uuid>
|
7
7
|
</attributes>
|
8
8
|
<state>ready</state>
|
9
9
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
10
|
<positions/>
|
11
|
-
<dataelements
|
12
|
-
<persons>3</persons>
|
13
|
-
<card>Visa_12345</card>
|
14
|
-
<airline>null</airline>
|
15
|
-
<hotels>[]</hotels>
|
16
|
-
<from>Vienna</from>
|
17
|
-
<to>Prague</to>
|
18
|
-
<costs>0</costs>
|
19
|
-
</dataelements>
|
11
|
+
<dataelements/>
|
20
12
|
<endpoints>
|
21
|
-
<
|
22
|
-
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
23
|
-
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
13
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
24
14
|
</endpoints>
|
25
|
-
<dsl
|
26
|
-
data.airline = result.value('id')
|
27
|
-
data.costs += result.value('costs').to_f
|
28
|
-
status.update 1, 'Hotel'
|
29
|
-
END
|
30
|
-
parallel do
|
31
|
-
loop pre_test{data.persons > 0} do
|
32
|
-
parallel_branch data.persons do |p|
|
33
|
-
call :a2, :bookHotel, parameters: { :method => :post, :arguments => {:to => data.to} }, finalize: <<-END
|
34
|
-
data.hotels << result.value('id')
|
35
|
-
data.costs += result.value('costs').to_f
|
36
|
-
END
|
37
|
-
end
|
38
|
-
manipulate :a3, <<-END
|
39
|
-
data.persons -= 1
|
40
|
-
END
|
41
|
-
end
|
42
|
-
end
|
43
|
-
choose :inclusive do
|
44
|
-
alternative "data.costs > 700" do
|
45
|
-
call :a4, :approve, parameters: { :method => :post, :arguments => {:costs => data.costs} }
|
46
|
-
end
|
47
|
-
end
|
48
|
-
</dsl>
|
15
|
+
<dsl/>
|
49
16
|
<dslx>
|
50
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
51
|
-
<call id="a1" endpoint="bookAir">
|
52
|
-
<parameters>
|
53
|
-
<method>:post</method>
|
54
|
-
<arguments>
|
55
|
-
<from>data.from</from>
|
56
|
-
<to>data.to</to>
|
57
|
-
<persons>data.persons</persons>
|
58
|
-
</arguments>
|
59
|
-
</parameters>
|
60
|
-
<finalize output="result"> data.airline = result.value('id')
|
61
|
-
data.costs += result.value('costs').to_f
|
62
|
-
status.update 1, 'Hotel'</finalize>
|
63
|
-
</call>
|
64
|
-
<parallel>
|
65
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
66
|
-
<parallel_branch pass="data.persons" local="p">
|
67
|
-
<call id="a2" endpoint="bookHotel">
|
68
|
-
<parameters>
|
69
|
-
<method>:post</method>
|
70
|
-
<arguments>
|
71
|
-
<to>data.to</to>
|
72
|
-
</arguments>
|
73
|
-
</parameters>
|
74
|
-
<finalize output="result"> data.hotels << result.value('id')
|
75
|
-
data.costs += result.value('costs').to_f</finalize>
|
76
|
-
</call>
|
77
|
-
</parallel_branch>
|
78
|
-
<manipulate id="a3"> data.persons -= 1</manipulate>
|
79
|
-
</loop>
|
80
|
-
</parallel>
|
81
|
-
<choose>
|
82
|
-
<alternative condition="data.costs > 700">
|
83
|
-
<call id="a4" endpoint="approve">
|
84
|
-
<parameters>
|
85
|
-
<method>:post</method>
|
86
|
-
<arguments>
|
87
|
-
<costs>data.costs</costs>
|
88
|
-
</arguments>
|
89
|
-
</parameters>
|
90
|
-
</call>
|
91
|
-
</alternative>
|
92
|
-
</choose>
|
93
|
-
</description>
|
17
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
94
18
|
</dslx>
|
95
19
|
<status>
|
96
20
|
<id>0</id>
|
97
21
|
<message>undefined</message>
|
98
22
|
</status>
|
99
23
|
<description>
|
100
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
101
|
-
<call id="a1" endpoint="bookAir">
|
102
|
-
<parameters>
|
103
|
-
<method>:post</method>
|
104
|
-
<arguments>
|
105
|
-
<from>data.from</from>
|
106
|
-
<to>data.to</to>
|
107
|
-
<persons>data.persons</persons>
|
108
|
-
</arguments>
|
109
|
-
</parameters>
|
110
|
-
<finalize output="result"> data.airline = result.value('id')
|
111
|
-
data.costs += result.value('costs').to_f
|
112
|
-
status.update 1, 'Hotel'</finalize>
|
113
|
-
</call>
|
114
|
-
<parallel>
|
115
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
116
|
-
<parallel_branch pass="data.persons" local="p">
|
117
|
-
<call id="a2" endpoint="bookHotel">
|
118
|
-
<parameters>
|
119
|
-
<method>:post</method>
|
120
|
-
<arguments>
|
121
|
-
<to>data.to</to>
|
122
|
-
</arguments>
|
123
|
-
</parameters>
|
124
|
-
<finalize output="result"> data.hotels << result.value('id')
|
125
|
-
data.costs += result.value('costs').to_f</finalize>
|
126
|
-
</call>
|
127
|
-
</parallel_branch>
|
128
|
-
<manipulate id="a3"> data.persons -= 1</manipulate>
|
129
|
-
</loop>
|
130
|
-
</parallel>
|
131
|
-
<choose>
|
132
|
-
<alternative condition="data.costs > 700">
|
133
|
-
<call id="a4" endpoint="approve">
|
134
|
-
<parameters>
|
135
|
-
<method>:post</method>
|
136
|
-
<arguments>
|
137
|
-
<costs>data.costs</costs>
|
138
|
-
</arguments>
|
139
|
-
</parameters>
|
140
|
-
</call>
|
141
|
-
</alternative>
|
142
|
-
</choose>
|
143
|
-
</description>
|
24
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
144
25
|
</description>
|
145
26
|
<transformation>
|
146
27
|
<description type="copy"/>
|
147
|
-
<dataelements type="
|
148
|
-
<endpoints type="
|
28
|
+
<dataelements type="none"/>
|
29
|
+
<endpoints type="none"/>
|
149
30
|
</transformation>
|
150
31
|
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
36a4f4e12688352983f5b578bf7b15cf
|
@@ -0,0 +1 @@
|
|
1
|
+
b20ec4b80151c258e4139f99882bdcb4
|
@@ -5,14 +5,15 @@
|
|
5
5
|
<event>manipulating</event>
|
6
6
|
<event>failed</event>
|
7
7
|
<event>done</event>
|
8
|
-
|
9
|
-
<topic id="position">
|
10
|
-
<event>change</event>
|
8
|
+
<vote>syncing_after</vote>
|
11
9
|
</topic>
|
12
10
|
<topic id="description">
|
13
11
|
<event>change</event>
|
14
12
|
<event>error</event>
|
15
13
|
</topic>
|
14
|
+
<topic id="position">
|
15
|
+
<event>change</event>
|
16
|
+
</topic>
|
16
17
|
<topic id="state">
|
17
18
|
<event>change</event>
|
18
19
|
</topic>
|
@@ -35,4 +36,7 @@
|
|
35
36
|
<topic id="handlers">
|
36
37
|
<event>change</event>
|
37
38
|
</topic>
|
39
|
+
<topic id="xxx">
|
40
|
+
<fingerprint-with-producer-secre>xxx</fingerprint-with-producer-secre>
|
41
|
+
</topic>
|
38
42
|
</subscription>
|
@@ -1,38 +1,38 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
2
|
<attributes>
|
3
|
+
<uuid>793c0f2d-f7d7-4305-8ad7-93bc4dca4e9a</uuid>
|
3
4
|
<info>Enter info here</info>
|
4
5
|
<modeltype>CPEE</modeltype>
|
5
6
|
<theme>default</theme>
|
6
|
-
<uuid>d7a58a75-edc5-4bf3-9ea1-b5a47f4edcd9</uuid>
|
7
7
|
</attributes>
|
8
|
-
<state>
|
8
|
+
<state>finished</state>
|
9
9
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
10
|
<positions/>
|
11
11
|
<dataelements>
|
12
|
-
<persons>
|
12
|
+
<persons>0</persons>
|
13
13
|
<card>Visa_12345</card>
|
14
|
-
<airline>
|
15
|
-
<hotels>[]</hotels>
|
14
|
+
<airline>American Airlines</airline>
|
15
|
+
<hotels>["Mariott","Mariott","Mariott"]</hotels>
|
16
16
|
<from>Vienna</from>
|
17
17
|
<to>Prague</to>
|
18
|
-
<costs>0</costs>
|
18
|
+
<costs>652.0</costs>
|
19
19
|
</dataelements>
|
20
20
|
<endpoints>
|
21
21
|
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
22
22
|
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
23
23
|
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
24
24
|
</endpoints>
|
25
|
-
<dsl>call :a1, :bookAir, parameters: { :method => :post, :arguments =>
|
25
|
+
<dsl>call :a1, :bookAir, parameters: { :method => :post, :arguments => [Struct.new(:name, :value).new(:from, data.from), Struct.new(:name, :value).new(:to, data.to), Struct.new(:name, :value).new(:persons, data.persons)] }, finalize: <<-END
|
26
26
|
data.airline = result.value('id')
|
27
|
-
|
28
|
-
|
27
|
+
data.costs += result.value('costs').to_f
|
28
|
+
status.update 1, 'Hotel'
|
29
29
|
END
|
30
30
|
parallel do
|
31
31
|
loop pre_test{data.persons > 0} do
|
32
32
|
parallel_branch data.persons do |p|
|
33
|
-
call :a2, :bookHotel, parameters: { :method => :post, :arguments =>
|
33
|
+
call :a2, :bookHotel, parameters: { :method => :post, :arguments => [Struct.new(:name, :value).new(:to, data.to)] }, finalize: <<-END
|
34
34
|
data.hotels << result.value('id')
|
35
|
-
|
35
|
+
data.costs += result.value('costs').to_f
|
36
36
|
END
|
37
37
|
end
|
38
38
|
manipulate :a3, <<-END
|
@@ -42,7 +42,7 @@ parallel do
|
|
42
42
|
end
|
43
43
|
choose :inclusive do
|
44
44
|
alternative "data.costs > 700" do
|
45
|
-
call :a4, :approve, parameters: { :method => :post, :arguments =>
|
45
|
+
call :a4, :approve, parameters: { :method => :post, :arguments => [Struct.new(:name, :value).new(:costs, data.costs)] }
|
46
46
|
end
|
47
47
|
end
|
48
48
|
</dsl>
|
@@ -57,9 +57,9 @@ end
|
|
57
57
|
<persons>data.persons</persons>
|
58
58
|
</arguments>
|
59
59
|
</parameters>
|
60
|
-
<finalize output="result">
|
61
|
-
|
62
|
-
|
60
|
+
<finalize output="result">data.airline = result.value('id')
|
61
|
+
data.costs += result.value('costs').to_f
|
62
|
+
status.update 1, 'Hotel'</finalize>
|
63
63
|
</call>
|
64
64
|
<parallel>
|
65
65
|
<loop mode="pre_test" condition="data.persons > 0">
|
@@ -71,11 +71,11 @@ end
|
|
71
71
|
<to>data.to</to>
|
72
72
|
</arguments>
|
73
73
|
</parameters>
|
74
|
-
<finalize output="result">
|
75
|
-
|
74
|
+
<finalize output="result">data.hotels << result.value('id')
|
75
|
+
data.costs += result.value('costs').to_f</finalize>
|
76
76
|
</call>
|
77
77
|
</parallel_branch>
|
78
|
-
<manipulate id="a3">
|
78
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
79
79
|
</loop>
|
80
80
|
</parallel>
|
81
81
|
<choose>
|
@@ -107,9 +107,9 @@ end
|
|
107
107
|
<persons>data.persons</persons>
|
108
108
|
</arguments>
|
109
109
|
</parameters>
|
110
|
-
<finalize output="result">
|
111
|
-
|
112
|
-
|
110
|
+
<finalize output="result">data.airline = result.value('id')
|
111
|
+
data.costs += result.value('costs').to_f
|
112
|
+
status.update 1, 'Hotel'</finalize>
|
113
113
|
</call>
|
114
114
|
<parallel>
|
115
115
|
<loop mode="pre_test" condition="data.persons > 0">
|
@@ -121,11 +121,11 @@ end
|
|
121
121
|
<to>data.to</to>
|
122
122
|
</arguments>
|
123
123
|
</parameters>
|
124
|
-
<finalize output="result">
|
125
|
-
|
124
|
+
<finalize output="result">data.hotels << result.value('id')
|
125
|
+
data.costs += result.value('costs').to_f</finalize>
|
126
126
|
</call>
|
127
127
|
</parallel_branch>
|
128
|
-
<manipulate id="a3">
|
128
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
129
129
|
</loop>
|
130
130
|
</parallel>
|
131
131
|
<choose>
|
@@ -1,826 +1,27 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
2
|
<attributes>
|
3
|
-
<
|
3
|
+
<uuid>dec6ca32-a6b1-4955-bd97-79a1bc130f2d</uuid>
|
4
|
+
<info/>
|
4
5
|
<modeltype>CPEE</modeltype>
|
5
|
-
<
|
6
|
+
<theme>default</theme>
|
6
7
|
</attributes>
|
7
|
-
<state>
|
8
|
+
<state>ready</state>
|
8
9
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
9
|
-
<positions
|
10
|
-
|
11
|
-
</positions>
|
12
|
-
<dataelements>
|
13
|
-
<status>notOK</status>
|
14
|
-
<products>[{"id":"1","name":"P1","price":"1.54"},{"id":"2","name":"P2","price":"2.54"},{"id":"3","name":"P3","price":"3.54"},{"id":"4","name":"P4","price":"4.54"},{"id":"5","name":"P5","price":"5.54"},{"id":"6","name":"P6","price":"6.54"},{"id":"7","name":"P7","price":"7.54"},{"id":"8","name":"P8","price":"8.54"},{"id":"9","name":"P9","price":"9.54"},{"id":"10","name":"P10","price":"10.54"},{"id":"11","name":"P11","price":"11.54"},{"id":"12","name":"P12","price":"12.54"},{"id":"13","name":"P13","price":"13.54"},{"id":"14","name":"P14","price":"14.54"},{"id":"15","name":"P15","price":"15.54"},{"id":"16","name":"P16","price":"16.54"},{"id":"17","name":"P17","price":"17.54"},{"id":"18","name":"P18","price":"18.54"}]</products>
|
15
|
-
<erfolg>0</erfolg>
|
16
|
-
<created>ordered</created>
|
17
|
-
<orders>[{"customerID":"1349252","orderID":"100","deliveryDate":"2023-02-20","orderDate":"2024-02-20","status":"0"},{"customerID":"1349252","orderID":"101","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"749454","orderID":"102","deliveryDate":"2010-03-20","orderDate":"2015-03-20","status":"0"},{"customerID":"248291","orderID":"103","deliveryDate":"2009-03-20","orderDate":"2031-03-20","status":"0"},{"customerID":"248291","orderID":"104","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"248291","orderID":"105","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1334543","orderID":"106","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1334543","orderID":"107","deliveryDate":"2023-02-20","orderDate":"2027-02-20","status":"0"},{"customerID":"1423525","orderID":"108","deliveryDate":"2023-03-20","orderDate":"2027-04-20","status":"0"},{"customerID":"1423525","orderID":"109","deliveryDate":"2023-04-20","orderDate":"2027-05-20","status":"0"},{"customerID":"1423525","orderID":"110","deliveryDate":"2023-04-20","orderDate":"2027-05-20","status":"0"},{"customerID":"123213213","orderID":"1111","deliveryDate":".2015-12-15.","orderDate":".2015-12-12.","status":"0"}]</orders>
|
18
|
-
<order>[{"orderID":"100","productName":"P1","orderDate":"2024-02-20","status":"0","price":"1.54"},{"orderID":"100","productName":"P4","orderDate":"2024-02-20","status":"0","price":"4.54"},{"orderID":"100","productName":"P5","orderDate":"2024-02-20","status":"0","price":"5.54"},{"orderID":"100","productName":"P18","orderDate":"2024-02-20","status":"0","price":"18.54"},{"orderID":"100","productName":"P17","orderDate":"2024-02-20","status":"0","price":"17.54"}]</order>
|
19
|
-
<product>[{"orderID":"100","productName":"P1","orderDate":"2024-02-20","status":"0","price":"1.54"},{"orderID":"100","productName":"P4","orderDate":"2024-02-20","status":"0","price":"4.54"},{"orderID":"100","productName":"P5","orderDate":"2024-02-20","status":"0","price":"5.54"},{"orderID":"100","productName":"P18","orderDate":"2024-02-20","status":"0","price":"18.54"},{"orderID":"100","productName":"P17","orderDate":"2024-02-20","status":"0","price":"17.54"}]</product>
|
20
|
-
<logindata/>
|
21
|
-
<available/>
|
22
|
-
<loginData/>
|
23
|
-
</dataelements>
|
10
|
+
<positions/>
|
11
|
+
<dataelements/>
|
24
12
|
<endpoints>
|
25
13
|
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
26
|
-
<loginService>http://wwwlab.cs.univie.ac.at/~a0248291/services/personLoginService.php</loginService>
|
27
|
-
<createLoginService>http://wwwlab.cs.univie.ac.at/~a0248291/services/createLoginService.php</createLoginService>
|
28
|
-
<getallProducts>http://wwwlab.cs.univie.ac.at/~a0248291/services/productlistService.php</getallProducts>
|
29
|
-
<getUserDataForLogin>http://wwwlab.cs.univie.ac.at/~a0248291/services/getUserDataForLogin.php</getUserDataForLogin>
|
30
|
-
<createOrderService>http://wwwlab.cs.univie.ac.at/~a0248291/services/createOrderService.php</createOrderService>
|
31
|
-
<createProductToOrderService>http://wwwlab.cs.univie.ac.at/~a0248291/services/createProductToOrderService.php</createProductToOrderService>
|
32
|
-
<orderlistService>http://wwwlab.cs.univie.ac.at/~a0248291/services/orderlistService.php</orderlistService>
|
33
|
-
<getOrderService>http://wwwlab.cs.univie.ac.at/~a0248291/services/getOrderService.php</getOrderService>
|
34
|
-
<activity>http://wwwlab.cs.univie.ac.at/~a0248291/worklist/activity.php</activity>
|
35
14
|
</endpoints>
|
36
|
-
<dsl
|
37
|
-
|
38
|
-
data.status = result['status']
|
39
|
-
|
40
|
-
END
|
41
|
-
loop post_test{data.status == 'ok'} do
|
42
|
-
call :a25, :createLoginService, parameters: { :label => "NOT Registired", :method => :post, :parameters => {:email => "meintest@email.com", :password => "meintest", :status => 1, :personID => 123213213, :name => "Name", :personType => "Customer"} }, finalize: <<-END
|
43
|
-
|
44
|
-
data.erfolg = result['erfolg']
|
45
|
-
|
46
|
-
END
|
47
|
-
call :a27, :getUserDataForLogin, parameters: { :label => "get data for login", :method => nil, :parameters => {:personID => 1232132} }, finalize: <<-END
|
48
|
-
|
49
|
-
data.loginData = result['logindata']
|
50
|
-
|
51
|
-
END
|
52
|
-
end
|
53
|
-
call :a26, :getallProducts, parameters: { :label => "Select Products", :method => :post, :parameters => nil }, finalize: <<-END
|
54
|
-
|
55
|
-
data.products = result['product']
|
56
|
-
|
57
|
-
END
|
58
|
-
call :a32, :createOrderService, parameters: { :label => "Create Order", :method => :post, :parameters => {:orderDate => "2015-12-12", :orderID => 1111, :status => 0, :customerID => 123213213, :deliveryDate => "2015-12-15"} }, finalize: <<-END
|
59
|
-
|
60
|
-
data.created = result['created']
|
61
|
-
|
62
|
-
END
|
63
|
-
call :a41, :createProductToOrderService, parameters: { :label => "Add Product to Order", :method => :post, :parameters => {:orderID => 1111, :productID => 10, :amount => 4} }, finalize: <<-END
|
64
|
-
|
65
|
-
data.created = result['created']
|
66
|
-
|
67
|
-
END
|
68
|
-
call :a16, :orderlistService, parameters: { :label => "automatic order management system", :method => :post, :parameters => {:orderID => 1111} }, finalize: <<-END
|
69
|
-
|
70
|
-
data.orders = result['orders']
|
71
|
-
|
72
|
-
END
|
73
|
-
call :a12, :getOrderService, parameters: { :label => "analyse Order", :method => :post, :parameters => {:orderID => 100} }, finalize: <<-END
|
74
|
-
|
75
|
-
data.order = result['order']
|
76
|
-
|
77
|
-
END
|
78
|
-
call :a51, :getOrderService, parameters: { :label => "select product", :method => :post, :parameters => {:orderID => 100} }, finalize: <<-END
|
79
|
-
|
80
|
-
data.product = result['order']
|
81
|
-
|
82
|
-
END
|
83
|
-
choose :exclusive do
|
84
|
-
alternative "data.product != nil" do
|
85
|
-
call :a10, :activity, parameters: { :label => "check stock", :method => :post, :parameters => {:productID => 1, :amount => 5, :form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_checkstock.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
86
|
-
|
87
|
-
data.available = result['available']
|
88
|
-
|
89
|
-
END
|
90
|
-
loop pre_test{available=='available'} do
|
91
|
-
call :a14, nil, parameters: { :label => "Add the Product to Order for wholesaler", :method => nil, :type => :serviceTask, :mid => 'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createOrderToWholesaler.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
92
|
-
|
93
|
-
data.status = result['status']
|
94
|
-
|
95
|
-
END
|
96
|
-
call :a13, :activity, parameters: { :label => "Order to Wholesaler", :method => nil, :type => :serviceTask, :mid => 'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_OrderToWholesaler.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
97
|
-
|
98
|
-
data.status = result['status']
|
99
|
-
|
100
|
-
END
|
101
|
-
call :a22, :activity, parameters: { :label => "automatic order management system", :method => nil, :type => :task, :mid => 'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productExist.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
102
|
-
|
103
|
-
data.status = result['status']
|
104
|
-
|
105
|
-
END
|
106
|
-
call :a23, :activity, parameters: { :label => "analyse Order", :method => nil, :type => :serviceTask, :mid => 'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productAnalyse.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
107
|
-
|
108
|
-
data.status = result['status']
|
109
|
-
|
110
|
-
END
|
111
|
-
choose :exclusive do
|
112
|
-
otherwise do
|
113
|
-
call :a18, :activity, parameters: { :label => "more than 10 days to arrive", :method => nil, :type => :intermediateCatchEvent, :mid => 'sid-A0777023-6600-411A-9219-1EC8C73AA060', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productMoreTenDays.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
114
|
-
|
115
|
-
data.status = result['status']
|
116
|
-
|
117
|
-
END
|
118
|
-
end
|
119
|
-
otherwise do
|
120
|
-
call :a19, nil, parameters: { :label => "pack order", :method => nil, :type => :serviceTask, :mid => 'sid-775863BE-8D29-4E31-B680-0AAF13FF034C', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
121
|
-
|
122
|
-
data.status = result['status']
|
123
|
-
|
124
|
-
END
|
125
|
-
end
|
126
|
-
end
|
127
|
-
call :a20, :activity, parameters: { :label => "ship order", :method => nil, :type => :serviceTask, :mid => 'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_sendorderToHandel.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
128
|
-
|
129
|
-
data.status = result['status']
|
130
|
-
|
131
|
-
END
|
132
|
-
call :a15, :activity, parameters: { :label => "Product has arrived", :method => nil, :type => :intermediateCatchEvent, :mid => 'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_orderInHandel.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
133
|
-
|
134
|
-
data.status = result['status']
|
135
|
-
|
136
|
-
END
|
137
|
-
end
|
138
|
-
parallel :wait => -1 do
|
139
|
-
parallel_branch do
|
140
|
-
call :a6, :activity, parameters: { :label => "create bill", :method => nil, :type => :sendTask, :mid => 'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA', :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createBill.html", :role => "Sachbearbeiter"} }, finalize: <<-END
|
141
|
-
|
142
|
-
data.status = result['status']
|
143
|
-
|
144
|
-
END
|
145
|
-
end
|
146
|
-
parallel_branch do
|
147
|
-
call :a7, :activity, parameters: { :label => "pack order", :method => nil, :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html", :role => "Assistent"} }, finalize: <<-END
|
148
|
-
|
149
|
-
data.status = result['status']
|
150
|
-
|
151
|
-
END
|
152
|
-
end
|
153
|
-
end
|
154
|
-
call :a9, :activity, parameters: { :label => "ship order", :method => nil, :parameters => {:form => "http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_shipOrder.html", :role => "Chef"} }, finalize: <<-END
|
155
|
-
|
156
|
-
data.status = result['status']
|
157
|
-
|
158
|
-
END
|
159
|
-
call :a30, :timeout, parameters: { :label => "Customer getted order", :method => nil, :parameters => {:timeout => 1} }
|
160
|
-
end
|
161
|
-
otherwise do
|
162
|
-
end
|
163
|
-
end
|
164
|
-
</dsl>
|
15
|
+
<dsl/>
|
165
16
|
<dslx>
|
166
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
167
|
-
<call id="a1" endpoint="loginService" svg-label="Login">
|
168
|
-
<parameters>
|
169
|
-
<label>"Login"</label>
|
170
|
-
<method>:post</method>
|
171
|
-
<parameters>
|
172
|
-
<email>"a0248291@unet.univie.ac.at"</email>
|
173
|
-
<password>"a024829"</password>
|
174
|
-
</parameters>
|
175
|
-
</parameters>
|
176
|
-
<finalize output="result">
|
177
|
-
data.status = result['status']
|
178
|
-
</finalize>
|
179
|
-
</call>
|
180
|
-
<loop post_test="data.status == 'ok'" svg-label="">
|
181
|
-
<call id="a25" endpoint="createLoginService" svg-label="NOT Registired">
|
182
|
-
<parameters>
|
183
|
-
<label>"NOT Registired"</label>
|
184
|
-
<method>:post</method>
|
185
|
-
<parameters>
|
186
|
-
<email>"meintest@email.com"</email>
|
187
|
-
<password>"meintest"</password>
|
188
|
-
<status>1</status>
|
189
|
-
<personID>123213213</personID>
|
190
|
-
<name>"Name"</name>
|
191
|
-
<personType>"Customer"</personType>
|
192
|
-
</parameters>
|
193
|
-
</parameters>
|
194
|
-
<finalize output="result">
|
195
|
-
data.erfolg = result['erfolg']
|
196
|
-
</finalize>
|
197
|
-
</call>
|
198
|
-
<call id="a27" endpoint="getUserDataForLogin" svg-label="get data for login">
|
199
|
-
<parameters>
|
200
|
-
<label>"get data for login"</label>
|
201
|
-
<method/>
|
202
|
-
<parameters>
|
203
|
-
<personID>1232132</personID>
|
204
|
-
</parameters>
|
205
|
-
</parameters>
|
206
|
-
<finalize output="result">
|
207
|
-
data.loginData = result['logindata']
|
208
|
-
</finalize>
|
209
|
-
</call>
|
210
|
-
</loop>
|
211
|
-
<call id="a26" endpoint="getallProducts" svg-label="Select Products">
|
212
|
-
<parameters>
|
213
|
-
<label>"Select Products"</label>
|
214
|
-
<method>:post</method>
|
215
|
-
<parameters/>
|
216
|
-
</parameters>
|
217
|
-
<finalize output="result">
|
218
|
-
data.products = result['product']
|
219
|
-
</finalize>
|
220
|
-
</call>
|
221
|
-
<call id="a32" endpoint="createOrderService" svg-label="Create Order">
|
222
|
-
<parameters>
|
223
|
-
<label>"Create Order"</label>
|
224
|
-
<method>:post</method>
|
225
|
-
<parameters>
|
226
|
-
<orderDate>"2015-12-12"</orderDate>
|
227
|
-
<orderID>1111</orderID>
|
228
|
-
<status>0</status>
|
229
|
-
<customerID>123213213</customerID>
|
230
|
-
<deliveryDate>"2015-12-15"</deliveryDate>
|
231
|
-
</parameters>
|
232
|
-
</parameters>
|
233
|
-
<finalize output="result">
|
234
|
-
data.created = result['created']
|
235
|
-
</finalize>
|
236
|
-
</call>
|
237
|
-
<call id="a41" endpoint="createProductToOrderService" svg-label="Add Product to Order">
|
238
|
-
<parameters>
|
239
|
-
<label>"Add Product to Order"</label>
|
240
|
-
<method>:post</method>
|
241
|
-
<parameters>
|
242
|
-
<orderID>1111</orderID>
|
243
|
-
<productID>10</productID>
|
244
|
-
<amount>4</amount>
|
245
|
-
</parameters>
|
246
|
-
</parameters>
|
247
|
-
<finalize output="result">
|
248
|
-
data.created = result['created']
|
249
|
-
</finalize>
|
250
|
-
</call>
|
251
|
-
<call id="a16" endpoint="orderlistService" svg-label="automatic order management system">
|
252
|
-
<parameters>
|
253
|
-
<label>"automatic order management system"</label>
|
254
|
-
<method>:post</method>
|
255
|
-
<parameters>
|
256
|
-
<orderID>1111</orderID>
|
257
|
-
</parameters>
|
258
|
-
</parameters>
|
259
|
-
<finalize output="result">
|
260
|
-
data.orders = result['orders']
|
261
|
-
</finalize>
|
262
|
-
</call>
|
263
|
-
<call id="a12" endpoint="getOrderService" svg-label="analyse Order">
|
264
|
-
<parameters>
|
265
|
-
<label>"analyse Order"</label>
|
266
|
-
<method>:post</method>
|
267
|
-
<parameters>
|
268
|
-
<orderID>100</orderID>
|
269
|
-
</parameters>
|
270
|
-
</parameters>
|
271
|
-
<finalize output="result">
|
272
|
-
data.order = result['order']
|
273
|
-
</finalize>
|
274
|
-
</call>
|
275
|
-
<call id="a51" endpoint="getOrderService" svg-label="select product">
|
276
|
-
<parameters>
|
277
|
-
<label>"select product"</label>
|
278
|
-
<method>:post</method>
|
279
|
-
<parameters>
|
280
|
-
<orderID>100</orderID>
|
281
|
-
</parameters>
|
282
|
-
</parameters>
|
283
|
-
<finalize output="result">
|
284
|
-
data.product = result['order']
|
285
|
-
</finalize>
|
286
|
-
</call>
|
287
|
-
<choose mode="exclusive" svg-label="">
|
288
|
-
<alternative condition="data.product != nil" svg-label="">
|
289
|
-
<call id="a10" endpoint="activity">
|
290
|
-
<parameters>
|
291
|
-
<label>"check stock"</label>
|
292
|
-
<method>:post</method>
|
293
|
-
<parameters>
|
294
|
-
<productID>1</productID>
|
295
|
-
<amount>5</amount>
|
296
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_checkstock.html"</form>
|
297
|
-
<role>"Sachbearbeiter"</role>
|
298
|
-
</parameters>
|
299
|
-
</parameters>
|
300
|
-
<finalize output="result">
|
301
|
-
data.available = result['available']
|
302
|
-
</finalize>
|
303
|
-
</call>
|
304
|
-
<loop pre_test="available=='available'" svg-label="">
|
305
|
-
<call id="a14" endpoint="" svg-label="Add the Product to Order for wholesaler">
|
306
|
-
<parameters>
|
307
|
-
<label>"Add the Product to Order for wholesaler"</label>
|
308
|
-
<method/>
|
309
|
-
<type>:serviceTask</type>
|
310
|
-
<mid>'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B'</mid>
|
311
|
-
<parameters>
|
312
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createOrderToWholesaler.html"</form>
|
313
|
-
<role>"Sachbearbeiter"</role>
|
314
|
-
</parameters>
|
315
|
-
</parameters>
|
316
|
-
<finalize output="result">
|
317
|
-
data.status = result['status']
|
318
|
-
</finalize>
|
319
|
-
</call>
|
320
|
-
<call id="a13" endpoint="activity" svg-label="Order to Wholesaler">
|
321
|
-
<parameters>
|
322
|
-
<label>"Order to Wholesaler"</label>
|
323
|
-
<method/>
|
324
|
-
<type>:serviceTask</type>
|
325
|
-
<mid>'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC'</mid>
|
326
|
-
<parameters>
|
327
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_OrderToWholesaler.html"</form>
|
328
|
-
<role>"Sachbearbeiter"</role>
|
329
|
-
</parameters>
|
330
|
-
</parameters>
|
331
|
-
<finalize output="result">
|
332
|
-
data.status = result['status']
|
333
|
-
</finalize>
|
334
|
-
</call>
|
335
|
-
<call id="a22" endpoint="activity" svg-label="automatic order management system">
|
336
|
-
<parameters>
|
337
|
-
<label>"automatic order management system"</label>
|
338
|
-
<method/>
|
339
|
-
<type>:task</type>
|
340
|
-
<mid>'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D'</mid>
|
341
|
-
<parameters>
|
342
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productExist.html"</form>
|
343
|
-
<role>"Sachbearbeiter"</role>
|
344
|
-
</parameters>
|
345
|
-
</parameters>
|
346
|
-
<finalize output="result">
|
347
|
-
data.status = result['status']
|
348
|
-
</finalize>
|
349
|
-
</call>
|
350
|
-
<call id="a23" endpoint="activity" svg-label="analyse Order">
|
351
|
-
<parameters>
|
352
|
-
<label>"analyse Order"</label>
|
353
|
-
<method/>
|
354
|
-
<type>:serviceTask</type>
|
355
|
-
<mid>'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396'</mid>
|
356
|
-
<parameters>
|
357
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productAnalyse.html"</form>
|
358
|
-
<role>"Sachbearbeiter"</role>
|
359
|
-
</parameters>
|
360
|
-
</parameters>
|
361
|
-
<finalize output="result">
|
362
|
-
data.status = result['status']
|
363
|
-
</finalize>
|
364
|
-
</call>
|
365
|
-
<choose mode="exclusive" svg-label="">
|
366
|
-
<otherwise svg-label="">
|
367
|
-
<call id="a18" endpoint="activity" svg-label="more than 10 days to arrive">
|
368
|
-
<parameters>
|
369
|
-
<label>"more than 10 days to arrive"</label>
|
370
|
-
<method/>
|
371
|
-
<type>:intermediateCatchEvent</type>
|
372
|
-
<mid>'sid-A0777023-6600-411A-9219-1EC8C73AA060'</mid>
|
373
|
-
<parameters>
|
374
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productMoreTenDays.html"</form>
|
375
|
-
<role>"Sachbearbeiter"</role>
|
376
|
-
</parameters>
|
377
|
-
</parameters>
|
378
|
-
<finalize output="result">
|
379
|
-
data.status = result['status']
|
380
|
-
</finalize>
|
381
|
-
</call>
|
382
|
-
</otherwise>
|
383
|
-
<otherwise svg-label="">
|
384
|
-
<call id="a19" endpoint="" svg-label="pack order">
|
385
|
-
<parameters>
|
386
|
-
<label>"pack order"</label>
|
387
|
-
<method/>
|
388
|
-
<type>:serviceTask</type>
|
389
|
-
<mid>'sid-775863BE-8D29-4E31-B680-0AAF13FF034C'</mid>
|
390
|
-
<parameters>
|
391
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html"</form>
|
392
|
-
<role>"Sachbearbeiter"</role>
|
393
|
-
</parameters>
|
394
|
-
</parameters>
|
395
|
-
<finalize output="result">
|
396
|
-
data.status = result['status']
|
397
|
-
</finalize>
|
398
|
-
</call>
|
399
|
-
</otherwise>
|
400
|
-
</choose>
|
401
|
-
<call id="a20" endpoint="activity" svg-label="ship order">
|
402
|
-
<parameters>
|
403
|
-
<label>"ship order"</label>
|
404
|
-
<method/>
|
405
|
-
<type>:serviceTask</type>
|
406
|
-
<mid>'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB'</mid>
|
407
|
-
<parameters>
|
408
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_sendorderToHandel.html"</form>
|
409
|
-
<role>"Sachbearbeiter"</role>
|
410
|
-
</parameters>
|
411
|
-
</parameters>
|
412
|
-
<finalize output="result">
|
413
|
-
data.status = result['status']
|
414
|
-
</finalize>
|
415
|
-
</call>
|
416
|
-
<call id="a15" endpoint="activity" svg-label="Product has arrived">
|
417
|
-
<parameters>
|
418
|
-
<label>"Product has arrived"</label>
|
419
|
-
<method/>
|
420
|
-
<type>:intermediateCatchEvent</type>
|
421
|
-
<mid>'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927'</mid>
|
422
|
-
<parameters>
|
423
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_orderInHandel.html"</form>
|
424
|
-
<role>"Sachbearbeiter"</role>
|
425
|
-
</parameters>
|
426
|
-
</parameters>
|
427
|
-
<finalize output="result">
|
428
|
-
data.status = result['status']
|
429
|
-
</finalize>
|
430
|
-
</call>
|
431
|
-
</loop>
|
432
|
-
<parallel wait="-1" svg-label="">
|
433
|
-
<parallel_branch svg-label="">
|
434
|
-
<call id="a6" endpoint="activity" svg-label="create bill">
|
435
|
-
<parameters>
|
436
|
-
<label>"create bill"</label>
|
437
|
-
<method/>
|
438
|
-
<type>:sendTask</type>
|
439
|
-
<mid>'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA'</mid>
|
440
|
-
<parameters>
|
441
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createBill.html"</form>
|
442
|
-
<role>"Sachbearbeiter"</role>
|
443
|
-
</parameters>
|
444
|
-
</parameters>
|
445
|
-
<finalize output="result">
|
446
|
-
data.status = result['status']
|
447
|
-
</finalize>
|
448
|
-
</call>
|
449
|
-
</parallel_branch>
|
450
|
-
<parallel_branch svg-label="">
|
451
|
-
<call id="a7" endpoint="activity" svg-label="pack order">
|
452
|
-
<parameters>
|
453
|
-
<label>"pack order"</label>
|
454
|
-
<method/>
|
455
|
-
<parameters>
|
456
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html"</form>
|
457
|
-
<role>"Assistent"</role>
|
458
|
-
</parameters>
|
459
|
-
</parameters>
|
460
|
-
<finalize output="result">
|
461
|
-
data.status = result['status']
|
462
|
-
</finalize>
|
463
|
-
</call>
|
464
|
-
</parallel_branch>
|
465
|
-
</parallel>
|
466
|
-
<call id="a9" endpoint="activity" svg-label="ship order">
|
467
|
-
<parameters>
|
468
|
-
<label>"ship order"</label>
|
469
|
-
<method/>
|
470
|
-
<parameters>
|
471
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_shipOrder.html"</form>
|
472
|
-
<role>"Chef"</role>
|
473
|
-
</parameters>
|
474
|
-
</parameters>
|
475
|
-
<finalize output="result">
|
476
|
-
data.status = result['status']
|
477
|
-
</finalize>
|
478
|
-
</call>
|
479
|
-
<call id="a30" endpoint="timeout" svg-label="Customer getted order">
|
480
|
-
<parameters>
|
481
|
-
<label>"Customer getted order"</label>
|
482
|
-
<method/>
|
483
|
-
<parameters>
|
484
|
-
<timeout>1</timeout>
|
485
|
-
</parameters>
|
486
|
-
</parameters>
|
487
|
-
</call>
|
488
|
-
</alternative>
|
489
|
-
<otherwise svg-label=""/>
|
490
|
-
</choose>
|
491
|
-
</description>
|
17
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
492
18
|
</dslx>
|
493
19
|
<status>
|
494
20
|
<id>0</id>
|
495
21
|
<message>undefined</message>
|
496
22
|
</status>
|
497
23
|
<description>
|
498
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
499
|
-
<call id="a1" endpoint="loginService" svg-label="Login">
|
500
|
-
<parameters>
|
501
|
-
<label>"Login"</label>
|
502
|
-
<method>:post</method>
|
503
|
-
<parameters>
|
504
|
-
<email>"a0248291@unet.univie.ac.at"</email>
|
505
|
-
<password>"a024829"</password>
|
506
|
-
</parameters>
|
507
|
-
</parameters>
|
508
|
-
<finalize output="result">
|
509
|
-
data.status = result['status']
|
510
|
-
</finalize>
|
511
|
-
</call>
|
512
|
-
<loop post_test="data.status == 'ok'" svg-label="">
|
513
|
-
<call id="a25" endpoint="createLoginService" svg-label="NOT Registired">
|
514
|
-
<parameters>
|
515
|
-
<label>"NOT Registired"</label>
|
516
|
-
<method>:post</method>
|
517
|
-
<parameters>
|
518
|
-
<email>"meintest@email.com"</email>
|
519
|
-
<password>"meintest"</password>
|
520
|
-
<status>1</status>
|
521
|
-
<personID>123213213</personID>
|
522
|
-
<name>"Name"</name>
|
523
|
-
<personType>"Customer"</personType>
|
524
|
-
</parameters>
|
525
|
-
</parameters>
|
526
|
-
<finalize output="result">
|
527
|
-
data.erfolg = result['erfolg']
|
528
|
-
</finalize>
|
529
|
-
</call>
|
530
|
-
<call id="a27" endpoint="getUserDataForLogin" svg-label="get data for login">
|
531
|
-
<parameters>
|
532
|
-
<label>"get data for login"</label>
|
533
|
-
<method/>
|
534
|
-
<parameters>
|
535
|
-
<personID>1232132</personID>
|
536
|
-
</parameters>
|
537
|
-
</parameters>
|
538
|
-
<finalize output="result">
|
539
|
-
data.loginData = result['logindata']
|
540
|
-
</finalize>
|
541
|
-
</call>
|
542
|
-
</loop>
|
543
|
-
<call id="a26" endpoint="getallProducts" svg-label="Select Products">
|
544
|
-
<parameters>
|
545
|
-
<label>"Select Products"</label>
|
546
|
-
<method>:post</method>
|
547
|
-
<parameters/>
|
548
|
-
</parameters>
|
549
|
-
<finalize output="result">
|
550
|
-
data.products = result['product']
|
551
|
-
</finalize>
|
552
|
-
</call>
|
553
|
-
<call id="a32" endpoint="createOrderService" svg-label="Create Order">
|
554
|
-
<parameters>
|
555
|
-
<label>"Create Order"</label>
|
556
|
-
<method>:post</method>
|
557
|
-
<parameters>
|
558
|
-
<orderDate>"2015-12-12"</orderDate>
|
559
|
-
<orderID>1111</orderID>
|
560
|
-
<status>0</status>
|
561
|
-
<customerID>123213213</customerID>
|
562
|
-
<deliveryDate>"2015-12-15"</deliveryDate>
|
563
|
-
</parameters>
|
564
|
-
</parameters>
|
565
|
-
<finalize output="result">
|
566
|
-
data.created = result['created']
|
567
|
-
</finalize>
|
568
|
-
</call>
|
569
|
-
<call id="a41" endpoint="createProductToOrderService" svg-label="Add Product to Order">
|
570
|
-
<parameters>
|
571
|
-
<label>"Add Product to Order"</label>
|
572
|
-
<method>:post</method>
|
573
|
-
<parameters>
|
574
|
-
<orderID>1111</orderID>
|
575
|
-
<productID>10</productID>
|
576
|
-
<amount>4</amount>
|
577
|
-
</parameters>
|
578
|
-
</parameters>
|
579
|
-
<finalize output="result">
|
580
|
-
data.created = result['created']
|
581
|
-
</finalize>
|
582
|
-
</call>
|
583
|
-
<call id="a16" endpoint="orderlistService" svg-label="automatic order management system">
|
584
|
-
<parameters>
|
585
|
-
<label>"automatic order management system"</label>
|
586
|
-
<method>:post</method>
|
587
|
-
<parameters>
|
588
|
-
<orderID>1111</orderID>
|
589
|
-
</parameters>
|
590
|
-
</parameters>
|
591
|
-
<finalize output="result">
|
592
|
-
data.orders = result['orders']
|
593
|
-
</finalize>
|
594
|
-
</call>
|
595
|
-
<call id="a12" endpoint="getOrderService" svg-label="analyse Order">
|
596
|
-
<parameters>
|
597
|
-
<label>"analyse Order"</label>
|
598
|
-
<method>:post</method>
|
599
|
-
<parameters>
|
600
|
-
<orderID>100</orderID>
|
601
|
-
</parameters>
|
602
|
-
</parameters>
|
603
|
-
<finalize output="result">
|
604
|
-
data.order = result['order']
|
605
|
-
</finalize>
|
606
|
-
</call>
|
607
|
-
<call id="a51" endpoint="getOrderService" svg-label="select product">
|
608
|
-
<parameters>
|
609
|
-
<label>"select product"</label>
|
610
|
-
<method>:post</method>
|
611
|
-
<parameters>
|
612
|
-
<orderID>100</orderID>
|
613
|
-
</parameters>
|
614
|
-
</parameters>
|
615
|
-
<finalize output="result">
|
616
|
-
data.product = result['order']
|
617
|
-
</finalize>
|
618
|
-
</call>
|
619
|
-
<choose mode="exclusive" svg-label="">
|
620
|
-
<alternative condition="data.product != nil" svg-label="">
|
621
|
-
<call id="a10" endpoint="activity">
|
622
|
-
<parameters>
|
623
|
-
<label>"check stock"</label>
|
624
|
-
<method>:post</method>
|
625
|
-
<parameters>
|
626
|
-
<productID>1</productID>
|
627
|
-
<amount>5</amount>
|
628
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_checkstock.html"</form>
|
629
|
-
<role>"Sachbearbeiter"</role>
|
630
|
-
</parameters>
|
631
|
-
</parameters>
|
632
|
-
<finalize output="result">
|
633
|
-
data.available = result['available']
|
634
|
-
</finalize>
|
635
|
-
</call>
|
636
|
-
<loop pre_test="available=='available'" svg-label="">
|
637
|
-
<call id="a14" endpoint="" svg-label="Add the Product to Order for wholesaler">
|
638
|
-
<parameters>
|
639
|
-
<label>"Add the Product to Order for wholesaler"</label>
|
640
|
-
<method/>
|
641
|
-
<type>:serviceTask</type>
|
642
|
-
<mid>'sid-6AC4CA98-D1F6-47F0-979F-61CF0662E45B'</mid>
|
643
|
-
<parameters>
|
644
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createOrderToWholesaler.html"</form>
|
645
|
-
<role>"Sachbearbeiter"</role>
|
646
|
-
</parameters>
|
647
|
-
</parameters>
|
648
|
-
<finalize output="result">
|
649
|
-
data.status = result['status']
|
650
|
-
</finalize>
|
651
|
-
</call>
|
652
|
-
<call id="a13" endpoint="activity" svg-label="Order to Wholesaler">
|
653
|
-
<parameters>
|
654
|
-
<label>"Order to Wholesaler"</label>
|
655
|
-
<method/>
|
656
|
-
<type>:serviceTask</type>
|
657
|
-
<mid>'sid-EC19A8E6-8F40-4F7A-AE44-471A775AE5BC'</mid>
|
658
|
-
<parameters>
|
659
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_OrderToWholesaler.html"</form>
|
660
|
-
<role>"Sachbearbeiter"</role>
|
661
|
-
</parameters>
|
662
|
-
</parameters>
|
663
|
-
<finalize output="result">
|
664
|
-
data.status = result['status']
|
665
|
-
</finalize>
|
666
|
-
</call>
|
667
|
-
<call id="a22" endpoint="activity" svg-label="automatic order management system">
|
668
|
-
<parameters>
|
669
|
-
<label>"automatic order management system"</label>
|
670
|
-
<method/>
|
671
|
-
<type>:task</type>
|
672
|
-
<mid>'sid-F7E23A29-6BE3-4E19-BD30-CF9E1D67FA9D'</mid>
|
673
|
-
<parameters>
|
674
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productExist.html"</form>
|
675
|
-
<role>"Sachbearbeiter"</role>
|
676
|
-
</parameters>
|
677
|
-
</parameters>
|
678
|
-
<finalize output="result">
|
679
|
-
data.status = result['status']
|
680
|
-
</finalize>
|
681
|
-
</call>
|
682
|
-
<call id="a23" endpoint="activity" svg-label="analyse Order">
|
683
|
-
<parameters>
|
684
|
-
<label>"analyse Order"</label>
|
685
|
-
<method/>
|
686
|
-
<type>:serviceTask</type>
|
687
|
-
<mid>'sid-BD3670C9-1BF4-4757-9E01-18CB1A266396'</mid>
|
688
|
-
<parameters>
|
689
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productAnalyse.html"</form>
|
690
|
-
<role>"Sachbearbeiter"</role>
|
691
|
-
</parameters>
|
692
|
-
</parameters>
|
693
|
-
<finalize output="result">
|
694
|
-
data.status = result['status']
|
695
|
-
</finalize>
|
696
|
-
</call>
|
697
|
-
<choose mode="exclusive" svg-label="">
|
698
|
-
<otherwise svg-label="">
|
699
|
-
<call id="a18" endpoint="activity" svg-label="more than 10 days to arrive">
|
700
|
-
<parameters>
|
701
|
-
<label>"more than 10 days to arrive"</label>
|
702
|
-
<method/>
|
703
|
-
<type>:intermediateCatchEvent</type>
|
704
|
-
<mid>'sid-A0777023-6600-411A-9219-1EC8C73AA060'</mid>
|
705
|
-
<parameters>
|
706
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_productMoreTenDays.html"</form>
|
707
|
-
<role>"Sachbearbeiter"</role>
|
708
|
-
</parameters>
|
709
|
-
</parameters>
|
710
|
-
<finalize output="result">
|
711
|
-
data.status = result['status']
|
712
|
-
</finalize>
|
713
|
-
</call>
|
714
|
-
</otherwise>
|
715
|
-
<otherwise svg-label="">
|
716
|
-
<call id="a19" endpoint="" svg-label="pack order">
|
717
|
-
<parameters>
|
718
|
-
<label>"pack order"</label>
|
719
|
-
<method/>
|
720
|
-
<type>:serviceTask</type>
|
721
|
-
<mid>'sid-775863BE-8D29-4E31-B680-0AAF13FF034C'</mid>
|
722
|
-
<parameters>
|
723
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html"</form>
|
724
|
-
<role>"Sachbearbeiter"</role>
|
725
|
-
</parameters>
|
726
|
-
</parameters>
|
727
|
-
<finalize output="result">
|
728
|
-
data.status = result['status']
|
729
|
-
</finalize>
|
730
|
-
</call>
|
731
|
-
</otherwise>
|
732
|
-
</choose>
|
733
|
-
<call id="a20" endpoint="activity" svg-label="ship order">
|
734
|
-
<parameters>
|
735
|
-
<label>"ship order"</label>
|
736
|
-
<method/>
|
737
|
-
<type>:serviceTask</type>
|
738
|
-
<mid>'sid-D06C4D11-F2BF-4A4B-BEE5-7713B74C14BB'</mid>
|
739
|
-
<parameters>
|
740
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_sendorderToHandel.html"</form>
|
741
|
-
<role>"Sachbearbeiter"</role>
|
742
|
-
</parameters>
|
743
|
-
</parameters>
|
744
|
-
<finalize output="result">
|
745
|
-
data.status = result['status']
|
746
|
-
</finalize>
|
747
|
-
</call>
|
748
|
-
<call id="a15" endpoint="activity" svg-label="Product has arrived">
|
749
|
-
<parameters>
|
750
|
-
<label>"Product has arrived"</label>
|
751
|
-
<method/>
|
752
|
-
<type>:intermediateCatchEvent</type>
|
753
|
-
<mid>'sid-AF30D5E7-E6C3-46BB-B5CB-02271161F927'</mid>
|
754
|
-
<parameters>
|
755
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_orderInHandel.html"</form>
|
756
|
-
<role>"Sachbearbeiter"</role>
|
757
|
-
</parameters>
|
758
|
-
</parameters>
|
759
|
-
<finalize output="result">
|
760
|
-
data.status = result['status']
|
761
|
-
</finalize>
|
762
|
-
</call>
|
763
|
-
</loop>
|
764
|
-
<parallel wait="-1" svg-label="">
|
765
|
-
<parallel_branch svg-label="">
|
766
|
-
<call id="a6" endpoint="activity" svg-label="create bill">
|
767
|
-
<parameters>
|
768
|
-
<label>"create bill"</label>
|
769
|
-
<method/>
|
770
|
-
<type>:sendTask</type>
|
771
|
-
<mid>'sid-2D16EA3E-6B40-4A50-9B84-F8F94C412BDA'</mid>
|
772
|
-
<parameters>
|
773
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_createBill.html"</form>
|
774
|
-
<role>"Sachbearbeiter"</role>
|
775
|
-
</parameters>
|
776
|
-
</parameters>
|
777
|
-
<finalize output="result">
|
778
|
-
data.status = result['status']
|
779
|
-
</finalize>
|
780
|
-
</call>
|
781
|
-
</parallel_branch>
|
782
|
-
<parallel_branch svg-label="">
|
783
|
-
<call id="a7" endpoint="activity" svg-label="pack order">
|
784
|
-
<parameters>
|
785
|
-
<label>"pack order"</label>
|
786
|
-
<method/>
|
787
|
-
<parameters>
|
788
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_packorder.html"</form>
|
789
|
-
<role>"Assistent"</role>
|
790
|
-
</parameters>
|
791
|
-
</parameters>
|
792
|
-
<finalize output="result">
|
793
|
-
data.status = result['status']
|
794
|
-
</finalize>
|
795
|
-
</call>
|
796
|
-
</parallel_branch>
|
797
|
-
</parallel>
|
798
|
-
<call id="a9" endpoint="activity" svg-label="ship order">
|
799
|
-
<parameters>
|
800
|
-
<label>"ship order"</label>
|
801
|
-
<method/>
|
802
|
-
<parameters>
|
803
|
-
<form>"http://wwwlab.cs.univie.ac.at/~a0248291/worklist/f_shipOrder.html"</form>
|
804
|
-
<role>"Chef"</role>
|
805
|
-
</parameters>
|
806
|
-
</parameters>
|
807
|
-
<finalize output="result">
|
808
|
-
data.status = result['status']
|
809
|
-
</finalize>
|
810
|
-
</call>
|
811
|
-
<call id="a30" endpoint="timeout" svg-label="Customer getted order">
|
812
|
-
<parameters>
|
813
|
-
<label>"Customer getted order"</label>
|
814
|
-
<method/>
|
815
|
-
<parameters>
|
816
|
-
<timeout>1</timeout>
|
817
|
-
</parameters>
|
818
|
-
</parameters>
|
819
|
-
</call>
|
820
|
-
</alternative>
|
821
|
-
<otherwise svg-label=""/>
|
822
|
-
</choose>
|
823
|
-
</description>
|
24
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
824
25
|
</description>
|
825
26
|
<transformation>
|
826
27
|
<description type="copy"/>
|