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,177 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<info>Test</info>
|
4
|
-
<modeltype>CPEE</modeltype>
|
5
|
-
<theme>default</theme>
|
6
|
-
<uuid>0b131163-ff0e-4e5d-9500-9b77bfd00237</uuid>
|
7
|
-
</attributes>
|
8
|
-
<state>finished</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements>
|
12
|
-
<i>0</i>
|
13
|
-
</dataelements>
|
14
|
-
<endpoints>
|
15
|
-
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
-
</endpoints>
|
17
|
-
<dsl>call :a2, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 2} }
|
18
|
-
parallel :wait => -1 do
|
19
|
-
parallel_branch do ||
|
20
|
-
call :a3, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 2} }
|
21
|
-
end
|
22
|
-
parallel_branch do ||
|
23
|
-
call :a4, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 3} }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
loop pre_test{data.i > 0} do
|
27
|
-
call :a6, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 1} }
|
28
|
-
manipulate :a7, <<-END
|
29
|
-
data.i -= 1
|
30
|
-
END
|
31
|
-
end
|
32
|
-
choose :exclusive do
|
33
|
-
alternative "true" do
|
34
|
-
call :a5, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 1} }
|
35
|
-
end
|
36
|
-
end
|
37
|
-
</dsl>
|
38
|
-
<dslx>
|
39
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
40
|
-
<call id="a2" endpoint="timeout">
|
41
|
-
<parameters>
|
42
|
-
<label/>
|
43
|
-
<method>:post</method>
|
44
|
-
<arguments>
|
45
|
-
<timeout>2</timeout>
|
46
|
-
</arguments>
|
47
|
-
</parameters>
|
48
|
-
<finalize output="result"/>
|
49
|
-
<update output="result"/>
|
50
|
-
</call>
|
51
|
-
<parallel wait="-1">
|
52
|
-
<parallel_branch pass="" local="">
|
53
|
-
<call id="a3" endpoint="timeout">
|
54
|
-
<parameters>
|
55
|
-
<label/>
|
56
|
-
<method>:post</method>
|
57
|
-
<arguments>
|
58
|
-
<timeout>2</timeout>
|
59
|
-
</arguments>
|
60
|
-
</parameters>
|
61
|
-
</call>
|
62
|
-
</parallel_branch>
|
63
|
-
<parallel_branch pass="" local="">
|
64
|
-
<call id="a4" endpoint="timeout">
|
65
|
-
<parameters>
|
66
|
-
<label/>
|
67
|
-
<method>:post</method>
|
68
|
-
<arguments>
|
69
|
-
<timeout>3</timeout>
|
70
|
-
</arguments>
|
71
|
-
</parameters>
|
72
|
-
</call>
|
73
|
-
</parallel_branch>
|
74
|
-
</parallel>
|
75
|
-
<loop mode="pre_test" condition="data.i > 0">
|
76
|
-
<call id="a6" endpoint="timeout">
|
77
|
-
<parameters>
|
78
|
-
<label/>
|
79
|
-
<method>:post</method>
|
80
|
-
<arguments>
|
81
|
-
<timeout>1</timeout>
|
82
|
-
</arguments>
|
83
|
-
</parameters>
|
84
|
-
</call>
|
85
|
-
<manipulate id="a7">data.i -= 1</manipulate>
|
86
|
-
</loop>
|
87
|
-
<choose mode="exclusive">
|
88
|
-
<alternative condition="true">
|
89
|
-
<call id="a5" endpoint="timeout">
|
90
|
-
<parameters>
|
91
|
-
<label/>
|
92
|
-
<method>:post</method>
|
93
|
-
<arguments>
|
94
|
-
<timeout>1</timeout>
|
95
|
-
</arguments>
|
96
|
-
</parameters>
|
97
|
-
</call>
|
98
|
-
</alternative>
|
99
|
-
<otherwise/>
|
100
|
-
</choose>
|
101
|
-
</description>
|
102
|
-
</dslx>
|
103
|
-
<status>
|
104
|
-
<id>0</id>
|
105
|
-
<message>undefined</message>
|
106
|
-
</status>
|
107
|
-
<description>
|
108
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
109
|
-
<call id="a2" endpoint="timeout">
|
110
|
-
<parameters>
|
111
|
-
<label/>
|
112
|
-
<method>:post</method>
|
113
|
-
<arguments>
|
114
|
-
<timeout>2</timeout>
|
115
|
-
</arguments>
|
116
|
-
</parameters>
|
117
|
-
<finalize output="result"/>
|
118
|
-
<update output="result"/>
|
119
|
-
</call>
|
120
|
-
<parallel wait="-1">
|
121
|
-
<parallel_branch pass="" local="">
|
122
|
-
<call id="a3" endpoint="timeout">
|
123
|
-
<parameters>
|
124
|
-
<label/>
|
125
|
-
<method>:post</method>
|
126
|
-
<arguments>
|
127
|
-
<timeout>2</timeout>
|
128
|
-
</arguments>
|
129
|
-
</parameters>
|
130
|
-
</call>
|
131
|
-
</parallel_branch>
|
132
|
-
<parallel_branch pass="" local="">
|
133
|
-
<call id="a4" endpoint="timeout">
|
134
|
-
<parameters>
|
135
|
-
<label/>
|
136
|
-
<method>:post</method>
|
137
|
-
<arguments>
|
138
|
-
<timeout>3</timeout>
|
139
|
-
</arguments>
|
140
|
-
</parameters>
|
141
|
-
</call>
|
142
|
-
</parallel_branch>
|
143
|
-
</parallel>
|
144
|
-
<loop mode="pre_test" condition="data.i > 0">
|
145
|
-
<call id="a6" endpoint="timeout">
|
146
|
-
<parameters>
|
147
|
-
<label/>
|
148
|
-
<method>:post</method>
|
149
|
-
<arguments>
|
150
|
-
<timeout>1</timeout>
|
151
|
-
</arguments>
|
152
|
-
</parameters>
|
153
|
-
</call>
|
154
|
-
<manipulate id="a7">data.i -= 1</manipulate>
|
155
|
-
</loop>
|
156
|
-
<choose mode="exclusive">
|
157
|
-
<alternative condition="true">
|
158
|
-
<call id="a5" endpoint="timeout">
|
159
|
-
<parameters>
|
160
|
-
<label/>
|
161
|
-
<method>:post</method>
|
162
|
-
<arguments>
|
163
|
-
<timeout>1</timeout>
|
164
|
-
</arguments>
|
165
|
-
</parameters>
|
166
|
-
</call>
|
167
|
-
</alternative>
|
168
|
-
<otherwise/>
|
169
|
-
</choose>
|
170
|
-
</description>
|
171
|
-
</description>
|
172
|
-
<transformation>
|
173
|
-
<description type="copy"/>
|
174
|
-
<dataelements type="none"/>
|
175
|
-
<endpoints type="none"/>
|
176
|
-
</transformation>
|
177
|
-
</properties>
|
data/server/instances/45/log.xes
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
<log xmlns="http://www.xes-standard.org/" xes.version="1.0" xes.features="nested-attributes" openxes.version="1.0RC7">
|
2
|
-
<extension name="Time" prefix="time" uri="http://www.xes-standard.org/time.xesext"/>
|
3
|
-
<extension name="Concept" prefix="concept" uri="http://www.xes-standard.org/concept.xesext"/>
|
4
|
-
<extension name="Organizational" prefix="org" uri="http://www.xes-standard.org/org.xesext"/>
|
5
|
-
<trace>
|
6
|
-
<string key="concept:name" value="Instance 45"/>
|
7
|
-
<string key="concept:name" value="Instance 45"/>
|
8
|
-
<string key="concept:name" value="Instance 45"/>
|
9
|
-
</trace>
|
10
|
-
</log>
|
@@ -1,177 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<info>Test</info>
|
4
|
-
<modeltype>CPEE</modeltype>
|
5
|
-
<theme>default</theme>
|
6
|
-
<uuid>dc7d7ab9-510d-4cb8-8096-60a9b8349994</uuid>
|
7
|
-
</attributes>
|
8
|
-
<state>ready</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements>
|
12
|
-
<i>5</i>
|
13
|
-
</dataelements>
|
14
|
-
<endpoints>
|
15
|
-
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
-
</endpoints>
|
17
|
-
<dsl>call :a2, :timeout, parameters: { :label => "Sonja", :method => :post, :arguments => {:timeout => 2} }
|
18
|
-
parallel :wait => -1 do
|
19
|
-
parallel_branch do ||
|
20
|
-
call :a3, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 2} }
|
21
|
-
end
|
22
|
-
parallel_branch do ||
|
23
|
-
call :a4, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 3} }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
loop pre_test{data.i > 0} do
|
27
|
-
call :a6, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 1} }
|
28
|
-
manipulate :a7, <<-END
|
29
|
-
data.i -= 1
|
30
|
-
END
|
31
|
-
end
|
32
|
-
choose :exclusive do
|
33
|
-
alternative "true" do
|
34
|
-
call :a5, :timeout, parameters: { :label => nil, :method => :post, :arguments => {:timeout => 1} }
|
35
|
-
end
|
36
|
-
end
|
37
|
-
</dsl>
|
38
|
-
<dslx>
|
39
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
40
|
-
<call id="a2" endpoint="timeout">
|
41
|
-
<parameters>
|
42
|
-
<label>"Sonja"</label>
|
43
|
-
<method>:post</method>
|
44
|
-
<arguments>
|
45
|
-
<timeout>2</timeout>
|
46
|
-
</arguments>
|
47
|
-
</parameters>
|
48
|
-
<finalize output="result"/>
|
49
|
-
<update output="result"/>
|
50
|
-
</call>
|
51
|
-
<parallel wait="-1">
|
52
|
-
<parallel_branch pass="" local="">
|
53
|
-
<call id="a3" endpoint="timeout">
|
54
|
-
<parameters>
|
55
|
-
<label/>
|
56
|
-
<method>:post</method>
|
57
|
-
<arguments>
|
58
|
-
<timeout>2</timeout>
|
59
|
-
</arguments>
|
60
|
-
</parameters>
|
61
|
-
</call>
|
62
|
-
</parallel_branch>
|
63
|
-
<parallel_branch pass="" local="">
|
64
|
-
<call id="a4" endpoint="timeout">
|
65
|
-
<parameters>
|
66
|
-
<label/>
|
67
|
-
<method>:post</method>
|
68
|
-
<arguments>
|
69
|
-
<timeout>3</timeout>
|
70
|
-
</arguments>
|
71
|
-
</parameters>
|
72
|
-
</call>
|
73
|
-
</parallel_branch>
|
74
|
-
</parallel>
|
75
|
-
<loop mode="pre_test" condition="data.i > 0">
|
76
|
-
<call id="a6" endpoint="timeout">
|
77
|
-
<parameters>
|
78
|
-
<label/>
|
79
|
-
<method>:post</method>
|
80
|
-
<arguments>
|
81
|
-
<timeout>1</timeout>
|
82
|
-
</arguments>
|
83
|
-
</parameters>
|
84
|
-
</call>
|
85
|
-
<manipulate id="a7">data.i -= 1</manipulate>
|
86
|
-
</loop>
|
87
|
-
<choose mode="exclusive">
|
88
|
-
<alternative condition="true">
|
89
|
-
<call id="a5" endpoint="timeout">
|
90
|
-
<parameters>
|
91
|
-
<label/>
|
92
|
-
<method>:post</method>
|
93
|
-
<arguments>
|
94
|
-
<timeout>1</timeout>
|
95
|
-
</arguments>
|
96
|
-
</parameters>
|
97
|
-
</call>
|
98
|
-
</alternative>
|
99
|
-
<otherwise/>
|
100
|
-
</choose>
|
101
|
-
</description>
|
102
|
-
</dslx>
|
103
|
-
<status>
|
104
|
-
<id>0</id>
|
105
|
-
<message>undefined</message>
|
106
|
-
</status>
|
107
|
-
<description>
|
108
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
109
|
-
<call id="a2" endpoint="timeout">
|
110
|
-
<parameters>
|
111
|
-
<label>"Sonja"</label>
|
112
|
-
<method>:post</method>
|
113
|
-
<arguments>
|
114
|
-
<timeout>2</timeout>
|
115
|
-
</arguments>
|
116
|
-
</parameters>
|
117
|
-
<finalize output="result"/>
|
118
|
-
<update output="result"/>
|
119
|
-
</call>
|
120
|
-
<parallel wait="-1">
|
121
|
-
<parallel_branch pass="" local="">
|
122
|
-
<call id="a3" endpoint="timeout">
|
123
|
-
<parameters>
|
124
|
-
<label/>
|
125
|
-
<method>:post</method>
|
126
|
-
<arguments>
|
127
|
-
<timeout>2</timeout>
|
128
|
-
</arguments>
|
129
|
-
</parameters>
|
130
|
-
</call>
|
131
|
-
</parallel_branch>
|
132
|
-
<parallel_branch pass="" local="">
|
133
|
-
<call id="a4" endpoint="timeout">
|
134
|
-
<parameters>
|
135
|
-
<label/>
|
136
|
-
<method>:post</method>
|
137
|
-
<arguments>
|
138
|
-
<timeout>3</timeout>
|
139
|
-
</arguments>
|
140
|
-
</parameters>
|
141
|
-
</call>
|
142
|
-
</parallel_branch>
|
143
|
-
</parallel>
|
144
|
-
<loop mode="pre_test" condition="data.i > 0">
|
145
|
-
<call id="a6" endpoint="timeout">
|
146
|
-
<parameters>
|
147
|
-
<label/>
|
148
|
-
<method>:post</method>
|
149
|
-
<arguments>
|
150
|
-
<timeout>1</timeout>
|
151
|
-
</arguments>
|
152
|
-
</parameters>
|
153
|
-
</call>
|
154
|
-
<manipulate id="a7">data.i -= 1</manipulate>
|
155
|
-
</loop>
|
156
|
-
<choose mode="exclusive">
|
157
|
-
<alternative condition="true">
|
158
|
-
<call id="a5" endpoint="timeout">
|
159
|
-
<parameters>
|
160
|
-
<label/>
|
161
|
-
<method>:post</method>
|
162
|
-
<arguments>
|
163
|
-
<timeout>1</timeout>
|
164
|
-
</arguments>
|
165
|
-
</parameters>
|
166
|
-
</call>
|
167
|
-
</alternative>
|
168
|
-
<otherwise/>
|
169
|
-
</choose>
|
170
|
-
</description>
|
171
|
-
</description>
|
172
|
-
<transformation>
|
173
|
-
<description type="copy"/>
|
174
|
-
<dataelements type="none"/>
|
175
|
-
<endpoints type="none"/>
|
176
|
-
</transformation>
|
177
|
-
</properties>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<info/>
|
4
|
-
<modeltype>CPEE</modeltype>
|
5
|
-
<theme>default</theme>
|
6
|
-
<uuid>f2b7581d-0180-4211-8143-56e475c15600</uuid>
|
7
|
-
</attributes>
|
8
|
-
<state>ready</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements/>
|
12
|
-
<endpoints>
|
13
|
-
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
14
|
-
</endpoints>
|
15
|
-
<dsl/>
|
16
|
-
<dslx>
|
17
|
-
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
18
|
-
</dslx>
|
19
|
-
<status>
|
20
|
-
<id>0</id>
|
21
|
-
<message>undefined</message>
|
22
|
-
</status>
|
23
|
-
<description>
|
24
|
-
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
25
|
-
</description>
|
26
|
-
<transformation>
|
27
|
-
<description type="copy"/>
|
28
|
-
<dataelements type="none"/>
|
29
|
-
<endpoints type="none"/>
|
30
|
-
</transformation>
|
31
|
-
</properties>
|
@@ -1,150 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<info>Enter info here</info>
|
4
|
-
<modeltype>CPEE</modeltype>
|
5
|
-
<theme>default</theme>
|
6
|
-
<uuid>bd6ee468-b398-4af6-8ec1-c8d738629dda</uuid>
|
7
|
-
</attributes>
|
8
|
-
<state>ready</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
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>
|
20
|
-
<endpoints>
|
21
|
-
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
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>
|
24
|
-
</endpoints>
|
25
|
-
<dsl>call :a1, :bookAir, parameters: { :method => :post, :arguments => {:from => data.from, :to => data.to, :persons => data.persons} }, finalize: <<-END
|
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>
|
49
|
-
<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>
|
94
|
-
</dslx>
|
95
|
-
<status>
|
96
|
-
<id>0</id>
|
97
|
-
<message>undefined</message>
|
98
|
-
</status>
|
99
|
-
<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>
|
144
|
-
</description>
|
145
|
-
<transformation>
|
146
|
-
<description type="copy"/>
|
147
|
-
<dataelements type="rest"/>
|
148
|
-
<endpoints type="rest"/>
|
149
|
-
</transformation>
|
150
|
-
</properties>
|