cpee 1.3.206 → 1.3.207

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +9 -1
  4. data/log/yaml/log.xml +27 -0
  5. data/log/yaml/logoverlay.xml +10 -0
  6. data/log/yaml/server.rb +122 -0
  7. data/log/yaml/topics.xml +22 -0
  8. data/log/yaml/yaml.rb +19 -0
  9. data/server/instances/1/properties.xml +1 -1
  10. data/server/instances/2/properties.xml +1 -1
  11. data/server/instances/3/properties.xml +93 -35
  12. data/server/instances/4/properties.xml +87 -35
  13. data/server/instances/5/properties.xml +87 -35
  14. data/server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/consumer-secret +1 -0
  15. data/server/instances/6/notifications/0e9f3728f00c0562870110697bd8819c/producer-secret +1 -0
  16. data/server/instances/{30/notifications/f7afc30fd195bc06ac100a9b848c5da3 → 6/notifications/0e9f3728f00c0562870110697bd8819c}/subscription.xml +3 -7
  17. data/server/instances/6/properties.xml +92 -9
  18. data/server/server.rb +1 -1
  19. metadata +10 -30
  20. data/server/instances/10/properties.xml +0 -31
  21. data/server/instances/11/properties.xml +0 -62
  22. data/server/instances/12/properties.xml +0 -152
  23. data/server/instances/13/properties.xml +0 -62
  24. data/server/instances/14/properties.xml +0 -150
  25. data/server/instances/15/properties.xml +0 -69
  26. data/server/instances/16/properties.xml +0 -63
  27. data/server/instances/17/properties.xml +0 -31
  28. data/server/instances/18/properties.xml +0 -150
  29. data/server/instances/19/properties.xml +0 -152
  30. data/server/instances/20/properties.xml +0 -68
  31. data/server/instances/21/properties.xml +0 -118
  32. data/server/instances/22/properties.xml +0 -525
  33. data/server/instances/23/properties.xml +0 -65
  34. data/server/instances/24/properties.xml +0 -65
  35. data/server/instances/25/properties.xml +0 -65
  36. data/server/instances/26/properties.xml +0 -65
  37. data/server/instances/27/properties.xml +0 -65
  38. data/server/instances/28/properties.xml +0 -65
  39. data/server/instances/29/properties.xml +0 -67
  40. data/server/instances/30/notifications/f7afc30fd195bc06ac100a9b848c5da3/consumer-secret +0 -1
  41. data/server/instances/30/notifications/f7afc30fd195bc06ac100a9b848c5da3/producer-secret +0 -1
  42. data/server/instances/30/properties.xml +0 -65
  43. data/server/instances/7/properties.xml +0 -62
  44. data/server/instances/8/properties.xml +0 -31
  45. data/server/instances/9/properties.xml +0 -62
  46. data/server/resources/test.rb +0 -9
@@ -1,31 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>8a6e324f-6b5d-4956-9a1a-66fb29e93ced</uuid>
4
- <info/>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
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
- <uuid>793c0f2d-f7d7-4305-8ad7-93bc4dca4e9a</uuid>
4
- <info>Enter info here</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <persons>0</persons>
13
- <card>Visa_12345</card>
14
- <airline>American Airlines</airline>
15
- <hotels>["Mariott","Mariott","Mariott"]</hotels>
16
- <from>Vienna</from>
17
- <to>Prague</to>
18
- <costs>652.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 =&gt; :post, :arguments =&gt; [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: &lt;&lt;-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 &gt; 0} do
32
- parallel_branch data.persons do |p|
33
- call :a2, :bookHotel, parameters: { :method =&gt; :post, :arguments =&gt; [Struct.new(:name, :value).new(:to, data.to)] }, finalize: &lt;&lt;-END
34
- data.hotels &lt;&lt; result.value('id')
35
- data.costs += result.value('costs').to_f
36
- END
37
- end
38
- manipulate :a3, &lt;&lt;-END
39
- data.persons -= 1
40
- END
41
- end
42
- end
43
- choose :inclusive do
44
- alternative "data.costs &gt; 700" do
45
- call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; [Struct.new(:name, :value).new(: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 &gt; 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 &lt;&lt; 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 &gt; 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 &gt; 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 &lt;&lt; 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 &gt; 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>
@@ -1,152 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>119866ce-6da7-44f8-b493-05b851a3289e</uuid>
4
- <info>Enter info here</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a4>after</a4>
12
- </positions>
13
- <dataelements>
14
- <persons>0</persons>
15
- <card>Visa_12345</card>
16
- <airline>Lufthansa</airline>
17
- <hotels>["Rathaus","Ibis","Rathaus"]</hotels>
18
- <from>Vienna</from>
19
- <to>Prague</to>
20
- <costs>823.0</costs>
21
- </dataelements>
22
- <endpoints>
23
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
24
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
25
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
26
- </endpoints>
27
- <dsl>call :a1, :bookAir, parameters: { :method =&gt; :post, :arguments =&gt; [→(:name =&gt; :from, :value =&gt; data.from), →(:name =&gt; :to, :value =&gt; data.to), →(:name =&gt; :persons, :value =&gt; data.persons)] }, finalize: &lt;&lt;-END
28
- data.airline = result.value('id')
29
- data.costs += result.value('costs').to_f
30
- status.update 1, 'Hotel'
31
- END
32
- parallel do
33
- loop pre_test{data.persons &gt; 0} do
34
- parallel_branch data.persons do |p|
35
- call :a2, :bookHotel, parameters: { :method =&gt; :post, :arguments =&gt; [→(:name =&gt; :to, :value =&gt; data.to)] }, finalize: &lt;&lt;-END
36
- data.hotels &lt;&lt; result.value('id')
37
- data.costs += result.value('costs').to_f
38
- END
39
- end
40
- manipulate :a3, &lt;&lt;-END
41
- data.persons -= 1
42
- END
43
- end
44
- end
45
- choose :inclusive do
46
- alternative "data.costs &gt; 700" do
47
- call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; [→(:name =&gt; :costs, :value =&gt; data.costs)] }
48
- end
49
- end
50
- </dsl>
51
- <dslx>
52
- <description xmlns="http://cpee.org/ns/description/1.0">
53
- <call id="a1" endpoint="bookAir">
54
- <parameters>
55
- <method>:post</method>
56
- <arguments>
57
- <from>data.from</from>
58
- <to>data.to</to>
59
- <persons>data.persons</persons>
60
- </arguments>
61
- </parameters>
62
- <finalize output="result">data.airline = result.value('id')
63
- data.costs += result.value('costs').to_f
64
- status.update 1, 'Hotel'</finalize>
65
- </call>
66
- <parallel>
67
- <loop mode="pre_test" condition="data.persons &gt; 0">
68
- <parallel_branch pass="data.persons" local="p">
69
- <call id="a2" endpoint="bookHotel">
70
- <parameters>
71
- <method>:post</method>
72
- <arguments>
73
- <to>data.to</to>
74
- </arguments>
75
- </parameters>
76
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
77
- data.costs += result.value('costs').to_f</finalize>
78
- </call>
79
- </parallel_branch>
80
- <manipulate id="a3">data.persons -= 1</manipulate>
81
- </loop>
82
- </parallel>
83
- <choose>
84
- <alternative condition="data.costs &gt; 700">
85
- <call id="a4" endpoint="approve">
86
- <parameters>
87
- <method>:post</method>
88
- <arguments>
89
- <costs>data.costs</costs>
90
- </arguments>
91
- </parameters>
92
- </call>
93
- </alternative>
94
- </choose>
95
- </description>
96
- </dslx>
97
- <status>
98
- <id>0</id>
99
- <message>undefined</message>
100
- </status>
101
- <description>
102
- <description xmlns="http://cpee.org/ns/description/1.0">
103
- <call id="a1" endpoint="bookAir">
104
- <parameters>
105
- <method>:post</method>
106
- <arguments>
107
- <from>data.from</from>
108
- <to>data.to</to>
109
- <persons>data.persons</persons>
110
- </arguments>
111
- </parameters>
112
- <finalize output="result">data.airline = result.value('id')
113
- data.costs += result.value('costs').to_f
114
- status.update 1, 'Hotel'</finalize>
115
- </call>
116
- <parallel>
117
- <loop mode="pre_test" condition="data.persons &gt; 0">
118
- <parallel_branch pass="data.persons" local="p">
119
- <call id="a2" endpoint="bookHotel">
120
- <parameters>
121
- <method>:post</method>
122
- <arguments>
123
- <to>data.to</to>
124
- </arguments>
125
- </parameters>
126
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
127
- data.costs += result.value('costs').to_f</finalize>
128
- </call>
129
- </parallel_branch>
130
- <manipulate id="a3">data.persons -= 1</manipulate>
131
- </loop>
132
- </parallel>
133
- <choose>
134
- <alternative condition="data.costs &gt; 700">
135
- <call id="a4" endpoint="approve">
136
- <parameters>
137
- <method>:post</method>
138
- <arguments>
139
- <costs>data.costs</costs>
140
- </arguments>
141
- </parameters>
142
- </call>
143
- </alternative>
144
- </choose>
145
- </description>
146
- </description>
147
- <transformation>
148
- <description type="copy"/>
149
- <dataelements type="rest"/>
150
- <endpoints type="rest"/>
151
- </transformation>
152
- </properties>
@@ -1,68 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>8ef13d4b-8709-4556-838a-38f48cad63ba</uuid>
4
- <info>Enter info here</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <persons>3</persons>
13
- <hotels>[]</hotels>
14
- <costs>0</costs>
15
- </dataelements>
16
- <endpoints>
17
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
18
- </endpoints>
19
- <dsl>&lt;?xml version="1.0"?&gt;
20
- </dsl>
21
- <dslx>
22
- <parallel xmlns="http://cpee.org/ns/description/1.0">
23
- <loop mode="pre_test" condition="data.persons &gt; 0">
24
- <parallel_branch pass="data.persons" local="p">
25
- <call id="a2" endpoint="bookHotel">
26
- <parameters>
27
- <method>:post</method>
28
- <arguments>
29
- <to>"Vienna"</to>
30
- </arguments>
31
- </parameters>
32
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
33
- data.costs += result.value('costs').to_f</finalize>
34
- </call>
35
- </parallel_branch>
36
- <manipulate id="a3">data.persons -= 1</manipulate>
37
- </loop>
38
- </parallel>
39
- </dslx>
40
- <status>
41
- <id>0</id>
42
- <message>undefined</message>
43
- </status>
44
- <description>
45
- <parallel xmlns="http://cpee.org/ns/description/1.0">
46
- <loop mode="pre_test" condition="data.persons &gt; 0">
47
- <parallel_branch pass="data.persons" local="p">
48
- <call id="a2" endpoint="bookHotel">
49
- <parameters>
50
- <method>:post</method>
51
- <arguments>
52
- <to>"Vienna"</to>
53
- </arguments>
54
- </parameters>
55
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
56
- data.costs += result.value('costs').to_f</finalize>
57
- </call>
58
- </parallel_branch>
59
- <manipulate id="a3">data.persons -= 1</manipulate>
60
- </loop>
61
- </parallel>
62
- </description>
63
- <transformation>
64
- <description type="copy"/>
65
- <dataelements type="rest"/>
66
- <endpoints type="rest"/>
67
- </transformation>
68
- </properties>
@@ -1,118 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>b27da837-73a2-418d-aad1-bc834317256e</uuid>
4
- <info>BulkBuyer</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <instance>1</instance>
13
- </dataelements>
14
- <endpoints>
15
- <corr>http://cpee.org/~demo/corr/corr.php</corr>
16
- <mesg>http://cpee.org/~demo/corr/mesg.php</mesg>
17
- </endpoints>
18
- <dsl>call :a4, :mesg, parameters: { :label =&gt; "\"order\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :url, :value =&gt; "http://cpee.org/~demo/generated_data/instance_" + data.instance + "/m1.xml")] }
19
- call :a2, :corr, parameters: { :label =&gt; "\"status report production start\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :correlate, :value =&gt; "/order/id"), ⭐(:name =&gt; :value, :value =&gt; "m13_" + data.instance )] }
20
- call :a3, :corr, parameters: { :label =&gt; "\"status report end production\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :correlate, :value =&gt; "/order/id"), ⭐(:name =&gt; :value, :value =&gt; "m14_" + data.instance )] }
21
- call :a5, :corr, parameters: { :label =&gt; "\"delivery of product\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :correlate, :value =&gt; "/order/id"), ⭐(:name =&gt; :value, :value =&gt; "m15_" + data.instance )] }
22
- </dsl>
23
- <dslx>
24
- <description xmlns="http://cpee.org/ns/description/1.0">
25
- <call id="a4" endpoint="mesg">
26
- <parameters>
27
- <label>"order"</label>
28
- <method>:post</method>
29
- <arguments>
30
- <url>"http://cpee.org/~demo/generated_data/instance_" + data.instance + "/m1.xml"</url>
31
- </arguments>
32
- </parameters>
33
- </call>
34
- <call id="a2" endpoint="corr">
35
- <parameters>
36
- <label>"status report production start"</label>
37
- <method>:post</method>
38
- <arguments>
39
- <correlate>"/order/id"</correlate>
40
- <value>"m13_" + data.instance </value>
41
- </arguments>
42
- </parameters>
43
- </call>
44
- <call id="a3" endpoint="corr">
45
- <parameters>
46
- <label>"status report end production"</label>
47
- <method>:post</method>
48
- <arguments>
49
- <correlate>"/order/id"</correlate>
50
- <value>"m14_" + data.instance </value>
51
- </arguments>
52
- </parameters>
53
- </call>
54
- <call id="a5" endpoint="corr">
55
- <parameters>
56
- <label>"delivery of product"</label>
57
- <method>:post</method>
58
- <arguments>
59
- <correlate>"/order/id"</correlate>
60
- <value>"m15_" + data.instance </value>
61
- </arguments>
62
- </parameters>
63
- </call>
64
- </description>
65
- </dslx>
66
- <status>
67
- <id>0</id>
68
- <message>undefined</message>
69
- </status>
70
- <description>
71
- <description xmlns="http://cpee.org/ns/description/1.0">
72
- <call id="a4" endpoint="mesg">
73
- <parameters>
74
- <label>"order"</label>
75
- <method>:post</method>
76
- <arguments>
77
- <url>"http://cpee.org/~demo/generated_data/instance_" + data.instance + "/m1.xml"</url>
78
- </arguments>
79
- </parameters>
80
- </call>
81
- <call id="a2" endpoint="corr">
82
- <parameters>
83
- <label>"status report production start"</label>
84
- <method>:post</method>
85
- <arguments>
86
- <correlate>"/order/id"</correlate>
87
- <value>"m13_" + data.instance </value>
88
- </arguments>
89
- </parameters>
90
- </call>
91
- <call id="a3" endpoint="corr">
92
- <parameters>
93
- <label>"status report end production"</label>
94
- <method>:post</method>
95
- <arguments>
96
- <correlate>"/order/id"</correlate>
97
- <value>"m14_" + data.instance </value>
98
- </arguments>
99
- </parameters>
100
- </call>
101
- <call id="a5" endpoint="corr">
102
- <parameters>
103
- <label>"delivery of product"</label>
104
- <method>:post</method>
105
- <arguments>
106
- <correlate>"/order/id"</correlate>
107
- <value>"m15_" + data.instance </value>
108
- </arguments>
109
- </parameters>
110
- </call>
111
- </description>
112
- </description>
113
- <transformation>
114
- <description type="copy"/>
115
- <dataelements type="none"/>
116
- <endpoints type="none"/>
117
- </transformation>
118
- </properties>