cpee 1.3.176 → 1.3.177

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +26 -65
  3. data/cockpit/index.html +60 -77
  4. data/cockpit/js/details.js +8 -3
  5. data/cockpit/js/instance.js +24 -23
  6. data/cockpit/js/ui.js +1 -18
  7. data/cockpit/js/wfadaptor.cpee.js +452 -598
  8. data/cockpit/lib/ui.css +120 -124
  9. data/cockpit/lib/ui.js +84 -34
  10. data/cockpit/lib/wfadaptor.css +5 -5
  11. data/cockpit/lib/wfadaptor.js +5 -11
  12. data/cockpit/testsets/Worklist Parallel.xml +97 -0
  13. data/cockpit/testsets/Worklist Test CPEE.xml +39 -0
  14. data/cpee.gemspec +5 -5
  15. data/lib/cpee/controller.rb +1 -1
  16. data/lib/cpee/processtransformation/cpee.rb +2 -3
  17. data/server/instances/38/properties.xml +46 -0
  18. data/server/instances/39/properties.xml +58 -0
  19. data/server/instances/40/properties.xml +148 -0
  20. data/server/instances/41/properties.xml +46 -0
  21. data/server/instances/42/properties.xml +148 -0
  22. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret +1 -0
  23. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret +1 -0
  24. data/server/instances/{37/notifications/2b67c793efcea22d88beaa28249001be → 43/notifications/9e7d05164a8539415d008b5bca3e0672}/subscription.xml +0 -0
  25. data/server/instances/43/properties.xml +148 -0
  26. data/server/instances/44/properties.xml +148 -0
  27. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret +1 -0
  28. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret +1 -0
  29. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml +34 -0
  30. data/server/instances/45/properties.xml +148 -0
  31. data/server/instances/46/properties.xml +46 -0
  32. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret +1 -0
  33. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret +1 -0
  34. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml +34 -0
  35. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret +1 -0
  36. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret +1 -0
  37. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml +34 -0
  38. data/server/instances/47/properties.xml +148 -0
  39. data/server/resources/transformation_dslx.xsl +4 -4
  40. data/server/server.pid +1 -0
  41. data/test/cb.rb +3 -3
  42. metadata +39 -20
  43. data/cockpit/lib/jquery-ui.custom.min.js +0 -8
  44. data/cockpit/lib/jquery-ui.custom.min.txt +0 -16
  45. data/cockpit/lib/jquery.redraw.js +0 -3
  46. data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/consumer-secret +0 -1
  47. data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/producer-secret +0 -1
@@ -0,0 +1,46 @@
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
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
+ <attributes>
20
+ <info/>
21
+ <modeltype>CPEE</modeltype>
22
+ </attributes>
23
+ <state>ready</state>
24
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
25
+ <positions/>
26
+ <dataelements/>
27
+ <endpoints>
28
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
29
+ </endpoints>
30
+ <dsl/>
31
+ <dslx>
32
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
33
+ </dslx>
34
+ <status>
35
+ <id>0</id>
36
+ <message>undefined</message>
37
+ </status>
38
+ <description>
39
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
40
+ </description>
41
+ <transformation>
42
+ <description type='copy'/>
43
+ <dataelements type='none'/>
44
+ <endpoints type='none'/>
45
+ </transformation>
46
+ </properties>
@@ -0,0 +1,148 @@
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
+ </attributes>
6
+ <state>ready</state>
7
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
+ <positions/>
9
+ <dataelements>
10
+ <persons>3</persons>
11
+ <card>Visa_12345</card>
12
+ <airline>null</airline>
13
+ <hotels>[]</hotels>
14
+ <from>Vienna</from>
15
+ <to>Prague</to>
16
+ <costs>0</costs>
17
+ </dataelements>
18
+ <endpoints>
19
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
20
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
21
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
22
+ </endpoints>
23
+ <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-END
24
+ data.airline = result.value('id')
25
+ data.costs += result.value('costs').to_f
26
+ status.update 1, 'Hotel'
27
+ END
28
+ parallel do
29
+ loop pre_test{data.persons &gt; 0} do
30
+ parallel_branch data.persons do |p|
31
+ call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-END
32
+ data.hotels &lt;&lt; result.value('id')
33
+ data.costs += result.value('costs').to_f
34
+ END
35
+ end
36
+ manipulate :a3, &lt;&lt;-END
37
+ data.persons -= 1
38
+ END
39
+ end
40
+ end
41
+ choose :inclusive do
42
+ alternative "data.costs &gt; 700" do
43
+ call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
44
+ end
45
+ end
46
+ </dsl>
47
+ <dslx>
48
+ <description xmlns="http://cpee.org/ns/description/1.0">
49
+ <call id="a1" endpoint="bookAir">
50
+ <parameters>
51
+ <method>:post</method>
52
+ <parameters>
53
+ <from>data.from</from>
54
+ <to>data.to</to>
55
+ <persons>data.persons</persons>
56
+ </parameters>
57
+ </parameters>
58
+ <finalize output="result"> data.airline = result.value('id')
59
+ data.costs += result.value('costs').to_f
60
+ status.update 1, 'Hotel'</finalize>
61
+ </call>
62
+ <parallel>
63
+ <loop pre_test="data.persons &gt; 0">
64
+ <parallel_branch pass="data.persons" local="p">
65
+ <call id="a2" endpoint="bookHotel">
66
+ <parameters>
67
+ <method>:post</method>
68
+ <parameters>
69
+ <to>data.to</to>
70
+ </parameters>
71
+ </parameters>
72
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
73
+ data.costs += result.value('costs').to_f</finalize>
74
+ </call>
75
+ </parallel_branch>
76
+ <manipulate id="a3"> data.persons -= 1</manipulate>
77
+ </loop>
78
+ </parallel>
79
+ <choose>
80
+ <alternative condition="data.costs &gt; 700">
81
+ <call id="a4" endpoint="approve">
82
+ <parameters>
83
+ <method>:post</method>
84
+ <parameters>
85
+ <costs>data.costs</costs>
86
+ </parameters>
87
+ </parameters>
88
+ </call>
89
+ </alternative>
90
+ </choose>
91
+ </description>
92
+ </dslx>
93
+ <status>
94
+ <id>0</id>
95
+ <message>undefined</message>
96
+ </status>
97
+ <description>
98
+ <description xmlns="http://cpee.org/ns/description/1.0">
99
+ <call id="a1" endpoint="bookAir">
100
+ <parameters>
101
+ <method>:post</method>
102
+ <parameters>
103
+ <from>data.from</from>
104
+ <to>data.to</to>
105
+ <persons>data.persons</persons>
106
+ </parameters>
107
+ </parameters>
108
+ <finalize output="result"> data.airline = result.value('id')
109
+ data.costs += result.value('costs').to_f
110
+ status.update 1, 'Hotel'</finalize>
111
+ </call>
112
+ <parallel>
113
+ <loop pre_test="data.persons &gt; 0">
114
+ <parallel_branch pass="data.persons" local="p">
115
+ <call id="a2" endpoint="bookHotel">
116
+ <parameters>
117
+ <method>:post</method>
118
+ <parameters>
119
+ <to>data.to</to>
120
+ </parameters>
121
+ </parameters>
122
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
123
+ data.costs += result.value('costs').to_f</finalize>
124
+ </call>
125
+ </parallel_branch>
126
+ <manipulate id="a3"> data.persons -= 1</manipulate>
127
+ </loop>
128
+ </parallel>
129
+ <choose>
130
+ <alternative condition="data.costs &gt; 700">
131
+ <call id="a4" endpoint="approve">
132
+ <parameters>
133
+ <method>:post</method>
134
+ <parameters>
135
+ <costs>data.costs</costs>
136
+ </parameters>
137
+ </parameters>
138
+ </call>
139
+ </alternative>
140
+ </choose>
141
+ </description>
142
+ </description>
143
+ <transformation>
144
+ <description type="copy"/>
145
+ <dataelements type="rest"/>
146
+ <endpoints type="rest"/>
147
+ </transformation>
148
+ </properties>
@@ -0,0 +1,148 @@
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
+ </attributes>
6
+ <state>ready</state>
7
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
+ <positions/>
9
+ <dataelements>
10
+ <persons>3</persons>
11
+ <card>Visa_12345</card>
12
+ <airline>null</airline>
13
+ <hotels>[]</hotels>
14
+ <from>Vienna</from>
15
+ <to>Prague</to>
16
+ <costs>0</costs>
17
+ </dataelements>
18
+ <endpoints>
19
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
20
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
21
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
22
+ </endpoints>
23
+ <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-END
24
+ data.airline = result.value('id')
25
+ data.costs += result.value('costs').to_f
26
+ status.update 1, 'Hotel'
27
+ END
28
+ parallel do
29
+ loop pre_test{data.persons &gt; 0} do
30
+ parallel_branch data.persons do |p|
31
+ call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-END
32
+ data.hotels &lt;&lt; result.value('id')
33
+ data.costs += result.value('costs').to_f
34
+ END
35
+ end
36
+ manipulate :a3, &lt;&lt;-END
37
+ data.persons -= 1
38
+ END
39
+ end
40
+ end
41
+ choose :inclusive do
42
+ alternative "data.costs &gt; 700" do
43
+ call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
44
+ end
45
+ end
46
+ </dsl>
47
+ <dslx>
48
+ <description xmlns="http://cpee.org/ns/description/1.0">
49
+ <call id="a1" endpoint="bookAir">
50
+ <parameters>
51
+ <method>:post</method>
52
+ <parameters>
53
+ <from>data.from</from>
54
+ <to>data.to</to>
55
+ <persons>data.persons</persons>
56
+ </parameters>
57
+ </parameters>
58
+ <finalize output="result"> data.airline = result.value('id')
59
+ data.costs += result.value('costs').to_f
60
+ status.update 1, 'Hotel'</finalize>
61
+ </call>
62
+ <parallel>
63
+ <loop pre_test="data.persons &gt; 0">
64
+ <parallel_branch pass="data.persons" local="p">
65
+ <call id="a2" endpoint="bookHotel">
66
+ <parameters>
67
+ <method>:post</method>
68
+ <parameters>
69
+ <to>data.to</to>
70
+ </parameters>
71
+ </parameters>
72
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
73
+ data.costs += result.value('costs').to_f</finalize>
74
+ </call>
75
+ </parallel_branch>
76
+ <manipulate id="a3"> data.persons -= 1</manipulate>
77
+ </loop>
78
+ </parallel>
79
+ <choose>
80
+ <alternative condition="data.costs &gt; 700">
81
+ <call id="a4" endpoint="approve">
82
+ <parameters>
83
+ <method>:post</method>
84
+ <parameters>
85
+ <costs>data.costs</costs>
86
+ </parameters>
87
+ </parameters>
88
+ </call>
89
+ </alternative>
90
+ </choose>
91
+ </description>
92
+ </dslx>
93
+ <status>
94
+ <id>0</id>
95
+ <message>undefined</message>
96
+ </status>
97
+ <description>
98
+ <description xmlns="http://cpee.org/ns/description/1.0">
99
+ <call id="a1" endpoint="bookAir">
100
+ <parameters>
101
+ <method>:post</method>
102
+ <parameters>
103
+ <from>data.from</from>
104
+ <to>data.to</to>
105
+ <persons>data.persons</persons>
106
+ </parameters>
107
+ </parameters>
108
+ <finalize output="result"> data.airline = result.value('id')
109
+ data.costs += result.value('costs').to_f
110
+ status.update 1, 'Hotel'</finalize>
111
+ </call>
112
+ <parallel>
113
+ <loop pre_test="data.persons &gt; 0">
114
+ <parallel_branch pass="data.persons" local="p">
115
+ <call id="a2" endpoint="bookHotel">
116
+ <parameters>
117
+ <method>:post</method>
118
+ <parameters>
119
+ <to>data.to</to>
120
+ </parameters>
121
+ </parameters>
122
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
123
+ data.costs += result.value('costs').to_f</finalize>
124
+ </call>
125
+ </parallel_branch>
126
+ <manipulate id="a3"> data.persons -= 1</manipulate>
127
+ </loop>
128
+ </parallel>
129
+ <choose>
130
+ <alternative condition="data.costs &gt; 700">
131
+ <call id="a4" endpoint="approve">
132
+ <parameters>
133
+ <method>:post</method>
134
+ <parameters>
135
+ <costs>data.costs</costs>
136
+ </parameters>
137
+ </parameters>
138
+ </call>
139
+ </alternative>
140
+ </choose>
141
+ </description>
142
+ </description>
143
+ <transformation>
144
+ <description type="copy"/>
145
+ <dataelements type="rest"/>
146
+ <endpoints type="rest"/>
147
+ </transformation>
148
+ </properties>
@@ -0,0 +1,148 @@
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
+ </attributes>
6
+ <state>ready</state>
7
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
+ <positions/>
9
+ <dataelements>
10
+ <persons>3</persons>
11
+ <card>Visa_12345</card>
12
+ <airline>null</airline>
13
+ <hotels>[]</hotels>
14
+ <from>Vienna</from>
15
+ <to>Prague</to>
16
+ <costs>0</costs>
17
+ </dataelements>
18
+ <endpoints>
19
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
20
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
21
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
22
+ </endpoints>
23
+ <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-END
24
+ data.airline = result.value('id')
25
+ data.costs += result.value('costs').to_f
26
+ status.update 1, 'Hotel'
27
+ END
28
+ parallel do
29
+ loop pre_test{data.persons &gt; 0} do
30
+ parallel_branch data.persons do |p|
31
+ call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-END
32
+ data.hotels &lt;&lt; result.value('id')
33
+ data.costs += result.value('costs').to_f
34
+ END
35
+ end
36
+ manipulate :a3, &lt;&lt;-END
37
+ data.persons -= 1
38
+ END
39
+ end
40
+ end
41
+ choose :inclusive do
42
+ alternative "data.costs &gt; 700" do
43
+ call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
44
+ end
45
+ end
46
+ </dsl>
47
+ <dslx>
48
+ <description xmlns="http://cpee.org/ns/description/1.0">
49
+ <call id="a1" endpoint="bookAir">
50
+ <parameters>
51
+ <method>:post</method>
52
+ <parameters>
53
+ <from>data.from</from>
54
+ <to>data.to</to>
55
+ <persons>data.persons</persons>
56
+ </parameters>
57
+ </parameters>
58
+ <finalize output="result"> data.airline = result.value('id')
59
+ data.costs += result.value('costs').to_f
60
+ status.update 1, 'Hotel'</finalize>
61
+ </call>
62
+ <parallel>
63
+ <loop pre_test="data.persons &gt; 0">
64
+ <parallel_branch pass="data.persons" local="p">
65
+ <call id="a2" endpoint="bookHotel">
66
+ <parameters>
67
+ <method>:post</method>
68
+ <parameters>
69
+ <to>data.to</to>
70
+ </parameters>
71
+ </parameters>
72
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
73
+ data.costs += result.value('costs').to_f</finalize>
74
+ </call>
75
+ </parallel_branch>
76
+ <manipulate id="a3"> data.persons -= 1</manipulate>
77
+ </loop>
78
+ </parallel>
79
+ <choose>
80
+ <alternative condition="data.costs &gt; 700">
81
+ <call id="a4" endpoint="approve">
82
+ <parameters>
83
+ <method>:post</method>
84
+ <parameters>
85
+ <costs>data.costs</costs>
86
+ </parameters>
87
+ </parameters>
88
+ </call>
89
+ </alternative>
90
+ </choose>
91
+ </description>
92
+ </dslx>
93
+ <status>
94
+ <id>0</id>
95
+ <message>undefined</message>
96
+ </status>
97
+ <description>
98
+ <description xmlns="http://cpee.org/ns/description/1.0">
99
+ <call id="a1" endpoint="bookAir">
100
+ <parameters>
101
+ <method>:post</method>
102
+ <parameters>
103
+ <from>data.from</from>
104
+ <to>data.to</to>
105
+ <persons>data.persons</persons>
106
+ </parameters>
107
+ </parameters>
108
+ <finalize output="result"> data.airline = result.value('id')
109
+ data.costs += result.value('costs').to_f
110
+ status.update 1, 'Hotel'</finalize>
111
+ </call>
112
+ <parallel>
113
+ <loop pre_test="data.persons &gt; 0">
114
+ <parallel_branch pass="data.persons" local="p">
115
+ <call id="a2" endpoint="bookHotel">
116
+ <parameters>
117
+ <method>:post</method>
118
+ <parameters>
119
+ <to>data.to</to>
120
+ </parameters>
121
+ </parameters>
122
+ <finalize output="result"> data.hotels &lt;&lt; result.value('id')
123
+ data.costs += result.value('costs').to_f</finalize>
124
+ </call>
125
+ </parallel_branch>
126
+ <manipulate id="a3"> data.persons -= 1</manipulate>
127
+ </loop>
128
+ </parallel>
129
+ <choose>
130
+ <alternative condition="data.costs &gt; 700">
131
+ <call id="a4" endpoint="approve">
132
+ <parameters>
133
+ <method>:post</method>
134
+ <parameters>
135
+ <costs>data.costs</costs>
136
+ </parameters>
137
+ </parameters>
138
+ </call>
139
+ </alternative>
140
+ </choose>
141
+ </description>
142
+ </description>
143
+ <transformation>
144
+ <description type="copy"/>
145
+ <dataelements type="rest"/>
146
+ <endpoints type="rest"/>
147
+ </transformation>
148
+ </properties>