cpee 1.3.174 → 1.3.175

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -6
  3. data/cockpit/js/instance.js +15 -0
  4. data/cpee.gemspec +1 -1
  5. data/lib/cpee/controller.rb +9 -0
  6. data/lib/cpee/handler_properties.rb +2 -0
  7. data/server/instances/1/properties.xml +101 -69
  8. data/server/instances/10/properties.xml +70 -106
  9. data/server/instances/11/properties.xml +73 -133
  10. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +1 -0
  11. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +1 -0
  12. data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +6 -0
  13. data/server/instances/12/properties.xml +0 -1
  14. data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +1 -0
  15. data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +1 -0
  16. data/server/instances/{14/notifications/5bcce90b170116a77fb25aea4e133acc → 13/notifications/4ff0cde5161c44dae49b263cbc12eaf8}/subscription.xml +0 -0
  17. data/server/instances/14/properties.xml +160 -160
  18. data/server/instances/15/properties.xml +314 -28
  19. data/server/instances/16/properties.xml +249 -28
  20. data/server/instances/17/properties.xml +130 -28
  21. data/server/instances/18/properties.xml +2 -3
  22. data/server/instances/19/properties.xml +1 -0
  23. data/server/instances/2/properties.xml +44 -191
  24. data/server/instances/3/properties.xml +44 -70
  25. data/server/instances/4/properties.xml +68 -28
  26. data/server/instances/5/properties.xml +70 -10
  27. data/server/instances/6/properties.xml +55 -175
  28. data/server/instances/7/properties.xml +52 -118
  29. data/server/instances/8/properties.xml +50 -112
  30. data/server/instances/9/properties.xml +47 -115
  31. metadata +117 -131
  32. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +0 -1
  33. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +0 -1
  34. data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +0 -27
  35. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/consumer-secret +0 -1
  36. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/producer-secret +0 -1
  37. data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/subscription.xml +0 -33
  38. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
  39. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
  40. data/server/instances/20/properties.xml +0 -46
  41. data/server/instances/21/properties.xml +0 -46
  42. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
  43. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
  44. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
  45. data/server/instances/22/properties.xml +0 -112
  46. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
  47. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
  48. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
  49. data/server/instances/23/properties.xml +0 -148
  50. data/server/server.pid +0 -1
@@ -1,44 +1,146 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- This file is part of CPEE.
4
-
5
- CPEE is free software: you can redistribute it and/or modify it under the terms
6
- of the GNU General Public License as published by the Free Software Foundation,
7
- either version 3 of the License, or (at your option) any later version.
8
-
9
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
10
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License along with
14
- CPEE (file COPYING in the main directory). If not, see
15
- <http://www.gnu.org/licenses/>.
16
- -->
17
-
18
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
- <info/>
2
+ <info>Enter info here</info>
20
3
  <properties/>
21
4
  <state>ready</state>
22
5
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
23
6
  <positions/>
24
- <dataelements/>
7
+ <dataelements>
8
+ <persons>3</persons>
9
+ <card>Visa_12345</card>
10
+ <airline>null</airline>
11
+ <hotels>[]</hotels>
12
+ <from>Vienna</from>
13
+ <to>Prague</to>
14
+ <costs>0</costs>
15
+ </dataelements>
25
16
  <endpoints>
26
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
17
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
18
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
19
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
27
20
  </endpoints>
28
- <dsl/>
21
+ <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-end
22
+ data.airline = result.value('id')
23
+ data.costs += result.value('costs').to_f
24
+ status.update 1, 'Hotel'
25
+ end
26
+ parallel do
27
+ loop pre_test{data.persons &gt; 0} do
28
+ parallel_branch data.persons do |p|
29
+ call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-end
30
+ data.hotels &lt;&lt; result.value('id')
31
+ data.costs += result.value('costs').to_f
32
+ end
33
+ end
34
+ manipulate :a3, &lt;&lt;-end
35
+ data.persons -= 1
36
+ end
37
+ end
38
+ end
39
+ choose :inclusive do
40
+ alternative "data.costs &gt; 700" do
41
+ call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
42
+ end
43
+ end
44
+ </dsl>
29
45
  <dslx>
30
- <description xmlns="http://cpee.org/ns/description/1.0"/>
31
- </dslx>
46
+ <description xmlns="http://cpee.org/ns/description/1.0">
47
+ <call id="a1" endpoint="bookAir">
48
+ <parameters>
49
+ <method>:post</method>
50
+ <parameters>
51
+ <from>data.from</from>
52
+ <to>data.to</to>
53
+ <persons>data.persons</persons>
54
+ </parameters>
55
+ </parameters>
56
+ <manipulate output="result"> data.airline = result.value('id')
57
+ data.costs += result.value('costs').to_f
58
+ status.update 1, 'Hotel'</manipulate>
59
+ </call>
60
+ <parallel>
61
+ <loop pre_test="data.persons &gt; 0">
62
+ <parallel_branch pass="data.persons" local="p">
63
+ <call id="a2" endpoint="bookHotel">
64
+ <parameters>
65
+ <method>:post</method>
66
+ <parameters>
67
+ <to>data.to</to>
68
+ </parameters>
69
+ </parameters>
70
+ <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
71
+ data.costs += result.value('costs').to_f</manipulate>
72
+ </call>
73
+ </parallel_branch>
74
+ <manipulate id="a3"> data.persons -= 1</manipulate>
75
+ </loop>
76
+ </parallel>
77
+ <choose>
78
+ <alternative condition="data.costs &gt; 700">
79
+ <call id="a4" endpoint="approve">
80
+ <parameters>
81
+ <method>:post</method>
82
+ <parameters>
83
+ <costs>data.costs</costs>
84
+ </parameters>
85
+ </parameters>
86
+ </call>
87
+ </alternative>
88
+ </choose>
89
+ </description>
90
+ </dslx>
32
91
  <status>
33
92
  <id>0</id>
34
93
  <message>undefined</message>
35
94
  </status>
36
95
  <description>
37
- <description xmlns="http://cpee.org/ns/description/1.0"/>
96
+ <description xmlns="http://cpee.org/ns/description/1.0">
97
+ <call id="a1" endpoint="bookAir">
98
+ <parameters>
99
+ <method>:post</method>
100
+ <parameters>
101
+ <from>data.from</from>
102
+ <to>data.to</to>
103
+ <persons>data.persons</persons>
104
+ </parameters>
105
+ </parameters>
106
+ <manipulate output="result"> data.airline = result.value('id')
107
+ data.costs += result.value('costs').to_f
108
+ status.update 1, 'Hotel'</manipulate>
109
+ </call>
110
+ <parallel>
111
+ <loop pre_test="data.persons &gt; 0">
112
+ <parallel_branch pass="data.persons" local="p">
113
+ <call id="a2" endpoint="bookHotel">
114
+ <parameters>
115
+ <method>:post</method>
116
+ <parameters>
117
+ <to>data.to</to>
118
+ </parameters>
119
+ </parameters>
120
+ <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
121
+ data.costs += result.value('costs').to_f</manipulate>
122
+ </call>
123
+ </parallel_branch>
124
+ <manipulate id="a3"> data.persons -= 1</manipulate>
125
+ </loop>
126
+ </parallel>
127
+ <choose>
128
+ <alternative condition="data.costs &gt; 700">
129
+ <call id="a4" endpoint="approve">
130
+ <parameters>
131
+ <method>:post</method>
132
+ <parameters>
133
+ <costs>data.costs</costs>
134
+ </parameters>
135
+ </parameters>
136
+ </call>
137
+ </alternative>
138
+ </choose>
139
+ </description>
38
140
  </description>
39
141
  <transformation>
40
- <description type='copy'/>
41
- <dataelements type='none'/>
42
- <endpoints type='none'/>
142
+ <description type="copy"/>
143
+ <dataelements type="rest"/>
144
+ <endpoints type="rest"/>
43
145
  </transformation>
44
- </properties>
146
+ </properties>
@@ -16,9 +16,8 @@
16
16
  -->
17
17
 
18
18
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
- <attributes>
20
- <info/>
21
- </attributes>
19
+ <info/>
20
+ <properties/>
22
21
  <state>ready</state>
23
22
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
24
23
  <positions/>
@@ -18,6 +18,7 @@
18
18
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
19
  <attributes>
20
20
  <info/>
21
+ <modeltype>CPEE</modeltype>
21
22
  </attributes>
22
23
  <state>ready</state>
23
24
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
@@ -1,127 +1,51 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>asdads</info>
3
- <state>ready</state>
2
+ <info>Enter info here</info>
3
+ <state>finished</state>
4
4
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
5
  <positions/>
6
- <dataelements/>
6
+ <dataelements>
7
+ <json>{"lv":"Workflow Technologies","id":{"lvnr":"050311","gruppe":1}}</json>
8
+ <json_lv>Workflow Technologies</json_lv>
9
+ <json_lvnr/>
10
+ <xml_lv>Workflow Technologies</xml_lv>
11
+ <xml_lvnr>050311</xml_lvnr>
12
+ </dataelements>
7
13
  <endpoints>
8
14
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
+ <json>http://cpee.org/services/json.php</json>
16
+ <xml>http://cpee.org/services/xml.php</xml>
9
17
  </endpoints>
10
- <dsl>call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
11
- data.a += 1
18
+ <dsl>call :a1, :json, { :label =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
19
+ data.json = result
20
+ data.json_lv = result['lv']
21
+ data.json_lvnr = result['lv']['lvnr']
12
22
  end
13
- call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
14
- loop pre_test{true} do
15
- choose :exclusive do
16
- alternative "data.a &gt;= 3 &amp;&amp; data.a &lt; 6" do
17
- call :a62, :timeout, { :label =&gt; "D", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters =&gt; { :timeout =&gt; 1 } }
18
- call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
19
- data.a += 1
20
- end
21
- call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
22
- end
23
- alternative "data.a &lt; 3" do
24
- call :a60, :timeout, { :label =&gt; "C", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters =&gt; { :timeout =&gt; 1 } }
25
- call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
26
- end
27
- otherwise do
28
- break
29
- end
30
- end
23
+ call :a2, :xml, { :label =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
24
+ data.xml_lv = result.find('string(/data/lv)')
25
+ data.xml_lvnr = result.find('string(/data/lv/@id)')
31
26
  end
32
27
  </dsl>
33
28
  <dslx>
34
29
  <description xmlns="http://cpee.org/ns/description/1.0">
35
- <call id="a58" endpoint="timeout">
30
+ <call id="a1" endpoint="json" svg-label="Get JSON">
36
31
  <parameters>
37
- <label>A</label>
38
- <method/>
39
- <type>serviceTask</type>
40
- <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
41
- <parameters>
42
- <timeout>1</timeout>
43
- </parameters>
32
+ <label>Get JSON</label>
33
+ <method>get</method>
34
+ <parameters/>
44
35
  </parameters>
45
- <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
36
+ <manipulate>data.json = result
37
+ data.json_lv = result['lv']
38
+ data.json_lvnr = result['lv']['lvnr']</manipulate>
46
39
  </call>
47
- <call id="a61" endpoint="timeout">
40
+ <call id="a2" endpoint="xml">
48
41
  <parameters>
49
- <label>B</label>
50
- <method/>
51
- <type>serviceTask</type>
52
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
53
- <parameters>
54
- <timeout>1</timeout>
55
- </parameters>
42
+ <label>Get XML</label>
43
+ <method>get</method>
44
+ <parameters/>
56
45
  </parameters>
46
+ <manipulate>data.xml_lv = result.find('string(/data/lv)')
47
+ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
57
48
  </call>
58
- <loop pre_test="true">
59
- <choose mode="exclusive">
60
- <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
61
- <call id="a62" endpoint="timeout">
62
- <parameters>
63
- <label>D</label>
64
- <method/>
65
- <type>serviceTask</type>
66
- <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
67
- <parameters>
68
- <timeout>1</timeout>
69
- </parameters>
70
- </parameters>
71
- </call>
72
- <call id="a58" endpoint="timeout">
73
- <parameters>
74
- <label>A</label>
75
- <method/>
76
- <type>serviceTask</type>
77
- <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
78
- <parameters>
79
- <timeout>1</timeout>
80
- </parameters>
81
- </parameters>
82
- <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
83
- </call>
84
- <call id="a61" endpoint="timeout">
85
- <parameters>
86
- <label>B</label>
87
- <method/>
88
- <type>serviceTask</type>
89
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
90
- <parameters>
91
- <timeout>1</timeout>
92
- </parameters>
93
- </parameters>
94
- </call>
95
- </alternative>
96
- <alternative condition="data.a &lt; 3" language="text/javascript">
97
- <call id="a60" endpoint="timeout">
98
- <parameters>
99
- <label>C</label>
100
- <method/>
101
- <type>serviceTask</type>
102
- <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
103
- <parameters>
104
- <timeout>1</timeout>
105
- </parameters>
106
- </parameters>
107
- </call>
108
- <call id="a61" endpoint="timeout">
109
- <parameters>
110
- <label>B</label>
111
- <method/>
112
- <type>serviceTask</type>
113
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
114
- <parameters>
115
- <timeout>1</timeout>
116
- </parameters>
117
- </parameters>
118
- </call>
119
- </alternative>
120
- <otherwise>
121
- <break/>
122
- </otherwise>
123
- </choose>
124
- </loop>
125
49
  </description>
126
50
  </dslx>
127
51
  <status>
@@ -130,96 +54,25 @@ end
130
54
  </status>
131
55
  <description>
132
56
  <description xmlns="http://cpee.org/ns/description/1.0">
133
- <call id="a58" endpoint="timeout">
57
+ <call id="a1" endpoint="json" svg-label="Get JSON">
134
58
  <parameters>
135
- <label>A</label>
136
- <method/>
137
- <type>serviceTask</type>
138
- <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
139
- <parameters>
140
- <timeout>1</timeout>
141
- </parameters>
59
+ <label>Get JSON</label>
60
+ <method>get</method>
61
+ <parameters/>
142
62
  </parameters>
143
- <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
63
+ <manipulate>data.json = result
64
+ data.json_lv = result['lv']
65
+ data.json_lvnr = result['lv']['lvnr']</manipulate>
144
66
  </call>
145
- <call id="a61" endpoint="timeout">
67
+ <call id="a2" endpoint="xml">
146
68
  <parameters>
147
- <label>B</label>
148
- <method/>
149
- <type>serviceTask</type>
150
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
151
- <parameters>
152
- <timeout>1</timeout>
153
- </parameters>
69
+ <label>Get XML</label>
70
+ <method>get</method>
71
+ <parameters/>
154
72
  </parameters>
73
+ <manipulate>data.xml_lv = result.find('string(/data/lv)')
74
+ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
155
75
  </call>
156
- <loop pre_test="true">
157
- <choose mode="exclusive">
158
- <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
159
- <call id="a62" endpoint="timeout">
160
- <parameters>
161
- <label>D</label>
162
- <method/>
163
- <type>serviceTask</type>
164
- <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
165
- <parameters>
166
- <timeout>1</timeout>
167
- </parameters>
168
- </parameters>
169
- </call>
170
- <call id="a58" endpoint="timeout">
171
- <parameters>
172
- <label>A</label>
173
- <method/>
174
- <type>serviceTask</type>
175
- <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
176
- <parameters>
177
- <timeout>1</timeout>
178
- </parameters>
179
- </parameters>
180
- <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
181
- </call>
182
- <call id="a61" endpoint="timeout">
183
- <parameters>
184
- <label>B</label>
185
- <method/>
186
- <type>serviceTask</type>
187
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
188
- <parameters>
189
- <timeout>1</timeout>
190
- </parameters>
191
- </parameters>
192
- </call>
193
- </alternative>
194
- <alternative condition="data.a &lt; 3" language="text/javascript">
195
- <call id="a60" endpoint="timeout">
196
- <parameters>
197
- <label>C</label>
198
- <method/>
199
- <type>serviceTask</type>
200
- <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
201
- <parameters>
202
- <timeout>1</timeout>
203
- </parameters>
204
- </parameters>
205
- </call>
206
- <call id="a61" endpoint="timeout">
207
- <parameters>
208
- <label>B</label>
209
- <method/>
210
- <type>serviceTask</type>
211
- <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
212
- <parameters>
213
- <timeout>1</timeout>
214
- </parameters>
215
- </parameters>
216
- </call>
217
- </alternative>
218
- <otherwise>
219
- <break/>
220
- </otherwise>
221
- </choose>
222
- </loop>
223
76
  </description>
224
77
  </description>
225
78
  <transformation>