cpee 1.3.206 → 1.3.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,65 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>7f38b022-dc0a-482d-bdf0-e983593c69a7</uuid>
4
- <info>decisiontest</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <amount>24</amount>
13
- </dataelements>
14
- <endpoints>
15
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
16
- </endpoints>
17
- <dsl>choose :exclusive do
18
- alternative "data.amount &lt; 20" do
19
- manipulate :a1, &lt;&lt;-END
20
- data.amount += 12
21
- END
22
- end
23
- alternative "data.amount &gt;= 20" do
24
- manipulate :a2, &lt;&lt;-END
25
- data.amount = 2
26
- END
27
- end
28
- end
29
- </dsl>
30
- <dslx>
31
- <description xmlns="http://cpee.org/ns/description/1.0">
32
- <choose mode="exclusive">
33
- <alternative condition="data.amount &lt; 20">
34
- <manipulate id="a1">data.amount += 12</manipulate>
35
- </alternative>
36
- <alternative condition="data.amount &gt;= 20">
37
- <manipulate id="a2">data.amount = 2</manipulate>
38
- </alternative>
39
- <otherwise/>
40
- </choose>
41
- </description>
42
- </dslx>
43
- <status>
44
- <id>0</id>
45
- <message>undefined</message>
46
- </status>
47
- <description>
48
- <description xmlns="http://cpee.org/ns/description/1.0">
49
- <choose mode="exclusive">
50
- <alternative condition="data.amount &lt; 20">
51
- <manipulate id="a1">data.amount += 12</manipulate>
52
- </alternative>
53
- <alternative condition="data.amount &gt;= 20">
54
- <manipulate id="a2">data.amount = 2</manipulate>
55
- </alternative>
56
- <otherwise/>
57
- </choose>
58
- </description>
59
- </description>
60
- <transformation>
61
- <description type="copy"/>
62
- <dataelements type="none"/>
63
- <endpoints type="none"/>
64
- </transformation>
65
- </properties>
@@ -1,62 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>940fbdeb-6d49-402c-86b6-3115f6feb620</uuid>
4
- <info>Lego Plate</info>
5
- <modeltype>CPEE</modeltype>
6
- </attributes>
7
- <state>stopped</state>
8
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
9
- <positions/>
10
- <dataelements>
11
- <i>0</i>
12
- </dataelements>
13
- <endpoints>
14
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
- <move>http://plate.wst.univie.ac.at:9200/go-next</move>
16
- </endpoints>
17
- <dsl>loop pre_test{i&lt;2} do
18
- call :a1, :move, parameters: { :label =&gt; "Move to next station", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
19
- data.i= data.i + 1
20
- END
21
- end
22
- </dsl>
23
- <dslx>
24
- <description xmlns="http://cpee.org/ns/description/1.0">
25
- <loop mode="pre_test" condition="i&lt;2">
26
- <call id="a1" endpoint="move">
27
- <parameters>
28
- <label>Move to next station</label>
29
- <method>:post</method>
30
- <arguments/>
31
- </parameters>
32
- <finalize output="result">data.i= data.i + 1</finalize>
33
- <update output="result"/>
34
- </call>
35
- </loop>
36
- </description>
37
- </dslx>
38
- <status>
39
- <id>0</id>
40
- <message>undefined</message>
41
- </status>
42
- <description>
43
- <description xmlns="http://cpee.org/ns/description/1.0">
44
- <loop mode="pre_test" condition="i&lt;2">
45
- <call id="a1" endpoint="move">
46
- <parameters>
47
- <label>Move to next station</label>
48
- <method>:post</method>
49
- <arguments/>
50
- </parameters>
51
- <finalize output="result">data.i= data.i + 1</finalize>
52
- <update output="result"/>
53
- </call>
54
- </loop>
55
- </description>
56
- </description>
57
- <transformation>
58
- <description type="copy"/>
59
- <dataelements type="none"/>
60
- <endpoints type="none"/>
61
- </transformation>
62
- </properties>
@@ -1,31 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>616685f1-763a-4812-878c-4f78847569f3</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,62 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>7d388f7d-ef56-42e0-b68d-b885bb267239</uuid>
4
- <info>Lego Plate</info>
5
- <modeltype>CPEE</modeltype>
6
- </attributes>
7
- <state>stopped</state>
8
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
9
- <positions/>
10
- <dataelements>
11
- <i>0</i>
12
- </dataelements>
13
- <endpoints>
14
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
- <move>http://plate.wst.univie.ac.at:9200/go-next</move>
16
- </endpoints>
17
- <dsl>loop pre_test{i&lt;2} do
18
- call :a1, :move, parameters: { :label =&gt; "Move to next station", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
19
- data.i= data.i + 1
20
- END
21
- end
22
- </dsl>
23
- <dslx>
24
- <description xmlns="http://cpee.org/ns/description/1.0">
25
- <loop mode="pre_test" condition="i&lt;2">
26
- <call id="a1" endpoint="move">
27
- <parameters>
28
- <label>Move to next station</label>
29
- <method>:post</method>
30
- <arguments/>
31
- </parameters>
32
- <finalize output="result">data.i= data.i + 1</finalize>
33
- <update output="result"/>
34
- </call>
35
- </loop>
36
- </description>
37
- </dslx>
38
- <status>
39
- <id>0</id>
40
- <message>undefined</message>
41
- </status>
42
- <description>
43
- <description xmlns="http://cpee.org/ns/description/1.0">
44
- <loop mode="pre_test" condition="i&lt;2">
45
- <call id="a1" endpoint="move">
46
- <parameters>
47
- <label>Move to next station</label>
48
- <method>:post</method>
49
- <arguments/>
50
- </parameters>
51
- <finalize output="result">data.i= data.i + 1</finalize>
52
- <update output="result"/>
53
- </call>
54
- </loop>
55
- </description>
56
- </description>
57
- <transformation>
58
- <description type="copy"/>
59
- <dataelements type="none"/>
60
- <endpoints type="none"/>
61
- </transformation>
62
- </properties>
@@ -1,9 +0,0 @@
1
- require 'ostruct'
2
-
3
- def →(a)
4
- p a
5
- OpenStruct.new(a)
6
- end
7
-
8
- x = [→(:a => 'b')]
9
- p x[0].a