cpee 1.3.177 → 1.3.178

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +20 -3
  3. data/cockpit/{lib → css}/wfadaptor.css +0 -0
  4. data/cockpit/index.html +47 -22
  5. data/cockpit/js/details.js +18 -18
  6. data/cockpit/js/instance.js +50 -9
  7. data/cockpit/js/parameters.js +16 -15
  8. data/cockpit/js/ui.js +1 -4
  9. data/cockpit/js/wfadaptor.cpee.js +3 -20
  10. data/cockpit/{lib → js}/wfadaptor.js +39 -15
  11. data/cockpit/rngtest.html +14 -35
  12. data/cockpit/rngtest.rng +17 -39
  13. data/cockpit/rngtest.xml +7 -6
  14. data/cockpit/test.html +46 -0
  15. data/cockpit/testsets/Infinity.xml +28 -0
  16. data/cockpit/testsets/testsets.xml +1 -0
  17. data/cpee.gemspec +1 -1
  18. data/lib/cpee/controller.rb +8 -8
  19. data/lib/cpee/handler_properties.rb +1 -0
  20. data/lib/cpee/implementation.rb +9 -0
  21. data/lib/engine.xml +3 -3
  22. data/server/resources/topics.xml +3 -0
  23. data/test/{cb.rb → callback.rb} +0 -0
  24. metadata +8 -103
  25. data/cockpit/lib/custommenu.css +0 -84
  26. data/cockpit/lib/custommenu.js +0 -101
  27. data/cockpit/lib/jquery.browser.js +0 -40
  28. data/cockpit/lib/jquery.caret.min.js +0 -10
  29. data/cockpit/lib/jquery.cookie.js +0 -117
  30. data/cockpit/lib/jquery.min.js +0 -4
  31. data/cockpit/lib/jquery.svg.min.js +0 -6
  32. data/cockpit/lib/jquery.svgdom.min.js +0 -6
  33. data/cockpit/lib/parsequery.js +0 -19
  34. data/cockpit/lib/printf.js +0 -368
  35. data/cockpit/lib/relaxngui.js +0 -4
  36. data/cockpit/lib/strftime.min.js +0 -1
  37. data/cockpit/lib/ui.css +0 -261
  38. data/cockpit/lib/ui.js +0 -114
  39. data/cockpit/lib/underscore.min.js +0 -27
  40. data/cockpit/lib/util.js +0 -58
  41. data/cockpit/lib/wfadaptor-doc/demo1.html +0 -517
  42. data/cockpit/lib/wfadaptor-doc/demo2.html +0 -84
  43. data/cockpit/lib/wfadaptor-doc/index.html +0 -54
  44. data/server/instances/1/properties.xml +0 -113
  45. data/server/instances/10/properties.xml +0 -145
  46. data/server/instances/11/properties.xml +0 -169
  47. data/server/instances/12/properties.xml +0 -44
  48. data/server/instances/13/properties.xml +0 -146
  49. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
  50. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
  51. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/subscription.xml +0 -23
  52. data/server/instances/14/properties.xml +0 -332
  53. data/server/instances/15/properties.xml +0 -44
  54. data/server/instances/16/properties.xml +0 -44
  55. data/server/instances/17/properties.xml +0 -44
  56. data/server/instances/18/properties.xml +0 -45
  57. data/server/instances/19/properties.xml +0 -45
  58. data/server/instances/2/properties.xml +0 -230
  59. data/server/instances/20/properties.xml +0 -46
  60. data/server/instances/21/properties.xml +0 -46
  61. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
  62. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
  63. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
  64. data/server/instances/22/properties.xml +0 -112
  65. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
  66. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
  67. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
  68. data/server/instances/23/properties.xml +0 -148
  69. data/server/instances/24/properties.xml +0 -66
  70. data/server/instances/25/properties.xml +0 -46
  71. data/server/instances/26/properties.xml +0 -112
  72. data/server/instances/27/properties.xml +0 -212
  73. data/server/instances/28/properties.xml +0 -363
  74. data/server/instances/29/properties.xml +0 -148
  75. data/server/instances/3/properties.xml +0 -109
  76. data/server/instances/30/properties.xml +0 -150
  77. data/server/instances/31/properties.xml +0 -52
  78. data/server/instances/32/properties.xml +0 -52
  79. data/server/instances/33/properties.xml +0 -60
  80. data/server/instances/34/properties.xml +0 -148
  81. data/server/instances/35/properties.xml +0 -148
  82. data/server/instances/36/properties.xml +0 -150
  83. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +0 -1
  84. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +0 -1
  85. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +0 -33
  86. data/server/instances/37/properties.xml +0 -57
  87. data/server/instances/38/properties.xml +0 -46
  88. data/server/instances/39/properties.xml +0 -58
  89. data/server/instances/4/properties.xml +0 -43
  90. data/server/instances/40/properties.xml +0 -148
  91. data/server/instances/41/properties.xml +0 -46
  92. data/server/instances/42/properties.xml +0 -148
  93. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret +0 -1
  94. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret +0 -1
  95. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/subscription.xml +0 -34
  96. data/server/instances/43/properties.xml +0 -148
  97. data/server/instances/44/properties.xml +0 -148
  98. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret +0 -1
  99. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret +0 -1
  100. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml +0 -34
  101. data/server/instances/45/properties.xml +0 -148
  102. data/server/instances/46/properties.xml +0 -46
  103. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret +0 -1
  104. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret +0 -1
  105. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml +0 -34
  106. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret +0 -1
  107. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret +0 -1
  108. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml +0 -34
  109. data/server/instances/47/properties.xml +0 -148
  110. data/server/instances/5/properties.xml +0 -23
  111. data/server/instances/6/properties.xml +0 -203
  112. data/server/instances/7/properties.xml +0 -149
  113. data/server/instances/8/properties.xml +0 -145
  114. data/server/instances/9/properties.xml +0 -145
  115. data/server/server.pid +0 -1
  116. data/test/delete.rb +0 -27
  117. data/test/load.rb +0 -55
  118. data/test/testset.xml +0 -297
@@ -1,84 +0,0 @@
1
- <!--
2
- This file is part of CPEE.
3
-
4
- CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
6
- either version 3 of the License, or (at your option) any later version.
7
-
8
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
-
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
14
- <http://www.gnu.org/licenses/>.
15
- -->
16
-
17
- <html>
18
- <head>
19
- <title>WfAdaptor Demo</title>
20
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
21
- <script type="text/javascript" src="../jquery.min.js"></script>
22
- <script type="text/javascript" src="../jquery.svgdom.js"></script>
23
- <script type="text/javascript" src="../underscore.min.js"></script>
24
- <script type="text/javascript" src="../contextmenu.js"></script>
25
- <script type="text/javascript" src="../wfadaptor.js"></script>
26
- <script type="text/javascript" src="../../js/wfadaptor.cpee.js"></script>
27
- <link rel="stylesheet" href="../wfadaptor.css" type="text/css"/>
28
- <link rel="stylesheet" href="../contextmenu.css" type="text/css"/>
29
- <script type="text/javascript">
30
- var adaptor = null;
31
- function click_update_graph() {
32
- console.log("Demo: Graph Update");
33
- var then = new Date();
34
- adaptor.set_description($('#description').val());
35
- $('#t_new').text((new Date()).getTime() - then.getTime() + 'ms');
36
- }
37
- function update_event() {
38
- console.log("Demo: update notification");
39
- $('#description').val(adaptor.get_description);
40
-
41
- }
42
- </script>
43
- </head>
44
- <body>
45
- <table style="background: ThreeDShadow; width: 100%; height: 100%;" border="0">
46
- <tr>
47
- <td style="text-align:center; vertical-align:middle"><button type="button" onclick="click_update_graph();">Update Graph &gt;&gt;&gt; </button></td>
48
- <td style="text-align:center; vertical-align:middle" colspan="2"><b><font size="+2">Workflow Graph</font></b></td>
49
- </tr>
50
- <tr height="95%">
51
- <td width="40%" style="vertical-align:middle; text-align:center"><!-- {{{ -->
52
- <textarea style="width:98%;height:98%" id="description">
53
- <description xmlns="http://cpee.org/ns/description/1.0">
54
- <call/>
55
- <choose>
56
- <alternative>
57
- <call/>
58
- </alternative>
59
- <alternative>
60
- <call/>
61
- </alternative>
62
- </choose>
63
- </description>
64
- </textarea>
65
- </td><!-- }}} -->
66
- <td style="vertical-align: top"><!-- {{{ -->
67
- <h3>New Graph Version -> Built-Time:<span id="t_new">00</span></h3>
68
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="600" width="300" xmlns:xlink="http://www.w3.org/1999/xlink" id="drawing_area">
69
- </svg>
70
- </td><!-- }}} -->
71
- </tr>
72
- </table>
73
- <script type="text/javascript">
74
- var then = new Date();
75
- adaptor = new WfAdaptor();
76
- create_cpee_elements(adaptor);
77
- adaptor.set_svg_container($('#drawing_area'));
78
- adaptor.set_description($('#description').val(), true);
79
- $('#t_new').text((new Date()).getTime() - then.getTime() + 'ms');
80
- adaptor.notify = update_event;
81
- //console.log(adaptor.get_description());
82
- </script>
83
- </body>
84
- </html>
@@ -1,54 +0,0 @@
1
- <!--
2
- This file is part of CPEE.
3
-
4
- CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
6
- either version 3 of the License, or (at your option) any later version.
7
-
8
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
-
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
14
- <http://www.gnu.org/licenses/>.
15
- -->
16
-
17
- <html>
18
- <head>
19
- <title>Documentation: WfAdaptor</title>
20
- </head>
21
- <body>
22
- <h1>Content</h1>
23
- <!-- {{{ -->
24
- <ol>
25
- <li><a href="#classes">Classes</a>
26
- <ol style="list-style-type: lower-alpha;">
27
- <li><a href="#adaptor">WfAdaptor</a></li>
28
- <li><a href="#description">WfDescription</a></li>
29
- <li><a href="#illustrator">WfIllustrator</a></li>
30
- </ol>
31
- </li>
32
- <li><a target="_blank" href="demo1.html">Demo: comprehensive description</a>
33
- <li><a target="_blank" href="demo2.html">Demo: workflow adaption</a>
34
- </li>
35
- </ol>
36
- <!-- }}} -->
37
- <h1>Classes</h1>
38
- <!-- {{{ -->
39
- <a name="classes">
40
- <!-- }}} -->
41
- <h2>WfAdaptor</h2>
42
- <!-- {{{ -->
43
- <a name="adaptor">
44
- <!-- }}} -->
45
- <h2>WfDescription</h2>
46
- <!-- {{{ -->
47
- <a name="description">
48
- <!-- }}} -->
49
- <h2>WfIllustrator</h2>
50
- <!-- {{{ -->
51
- <a name="illustrator">
52
- <!-- }}} -->
53
- </body>
54
- </html>
@@ -1,113 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>asd</info>
3
- <state>stopped</state>
4
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions>
6
- <a1>after</a1>
7
- </positions>
8
- <dataelements>
9
- <x/>
10
- </dataelements>
11
- <endpoints>
12
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
13
- </endpoints>
14
- <dsl>parallel do
15
- parallel_branch do
16
- call :a4, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; a } }
17
- end
18
- parallel_branch do
19
- call :a5, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; a } }
20
- end
21
- end
22
- call :a2, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; b } }, &lt;&lt;-end
23
- data.x += "a2,"
24
- end
25
- </dsl>
26
- <dslx>
27
- <description xmlns="http://cpee.org/ns/description/1.0">
28
- <!--{{{-->
29
- <parallel svg-label="">
30
- <parallel_branch svg-label="">
31
- <call id="a4" endpoint="timeout" svg-label="">
32
- <parameters>
33
- <label/>
34
- <method>post</method>
35
- <parameters>
36
- <timeout>a</timeout>
37
- </parameters>
38
- </parameters>
39
- </call>
40
- </parallel_branch>
41
- <parallel_branch svg-label="">
42
- <call id="a5" endpoint="timeout" svg-label="">
43
- <parameters>
44
- <label/>
45
- <method>post</method>
46
- <parameters>
47
- <timeout>a</timeout>
48
- </parameters>
49
- </parameters>
50
- </call>
51
- </parallel_branch>
52
- </parallel>
53
- <call id="a2" endpoint="timeout">
54
- <parameters>
55
- <label/>
56
- <method>post</method>
57
- <parameters>
58
- <timeout>b</timeout>
59
- </parameters>
60
- </parameters>
61
- <manipulate>data.x += "a2,"</manipulate>
62
- </call>
63
- </description>
64
- </dslx>
65
- <status>
66
- <id>0</id>
67
- <message>undefined</message>
68
- </status>
69
- <description>
70
- <description xmlns="http://cpee.org/ns/description/1.0">
71
- <!--{{{-->
72
- <parallel svg-label="">
73
- <parallel_branch svg-label="">
74
- <call id="a4" endpoint="timeout" svg-label="">
75
- <parameters>
76
- <label/>
77
- <method>post</method>
78
- <parameters>
79
- <timeout>a</timeout>
80
- </parameters>
81
- </parameters>
82
- </call>
83
- </parallel_branch>
84
- <parallel_branch svg-label="">
85
- <call id="a5" endpoint="timeout" svg-label="">
86
- <parameters>
87
- <label/>
88
- <method>post</method>
89
- <parameters>
90
- <timeout>a</timeout>
91
- </parameters>
92
- </parameters>
93
- </call>
94
- </parallel_branch>
95
- </parallel>
96
- <call id="a2" endpoint="timeout">
97
- <parameters>
98
- <label/>
99
- <method>post</method>
100
- <parameters>
101
- <timeout>b</timeout>
102
- </parameters>
103
- </parameters>
104
- <manipulate>data.x += "a2,"</manipulate>
105
- </call>
106
- </description>
107
- </description>
108
- <transformation>
109
- <description type="copy"/>
110
- <dataelements type="rest"/>
111
- <endpoints type="rest"/>
112
- </transformation>
113
- </properties>
@@ -1,145 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>Enter info here</info>
3
- <state>finished</state>
4
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions/>
6
- <dataelements>
7
- <persons>0</persons>
8
- <card>Visa_12345</card>
9
- <airline>Lufthansa</airline>
10
- <hotels>["Rathaus","Rathaus","Ibis"]</hotels>
11
- <from>Vienna</from>
12
- <to>Prague</to>
13
- <costs>940.0</costs>
14
- </dataelements>
15
- <endpoints>
16
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
17
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
18
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
19
- </endpoints>
20
- <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-end
21
- data.airline = result.value('id')
22
- data.costs += result.value('costs').to_f
23
- status.update 1, 'Hotel'
24
- end
25
- parallel do
26
- loop pre_test{data.persons &gt; 0} do
27
- parallel_branch data.persons do |p|
28
- call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-end
29
- data.hotels &lt;&lt; result.value('id')
30
- data.costs += result.value('costs').to_f
31
- end
32
- end
33
- manipulate :a3, &lt;&lt;-end
34
- data.persons -= 1
35
- end
36
- end
37
- end
38
- choose :inclusive do
39
- alternative "data.costs &gt; 700" do
40
- call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
41
- end
42
- end
43
- </dsl>
44
- <dslx>
45
- <description xmlns="http://cpee.org/ns/description/1.0">
46
- <call id="a1" endpoint="bookAir">
47
- <parameters>
48
- <method>:post</method>
49
- <parameters>
50
- <from>data.from</from>
51
- <to>data.to</to>
52
- <persons>data.persons</persons>
53
- </parameters>
54
- </parameters>
55
- <manipulate output="result"> data.airline = result.value('id')
56
- data.costs += result.value('costs').to_f
57
- status.update 1, 'Hotel'</manipulate>
58
- </call>
59
- <parallel>
60
- <loop pre_test="data.persons &gt; 0">
61
- <parallel_branch pass="data.persons" local="p">
62
- <call id="a2" endpoint="bookHotel">
63
- <parameters>
64
- <method>:post</method>
65
- <parameters>
66
- <to>data.to</to>
67
- </parameters>
68
- </parameters>
69
- <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
70
- data.costs += result.value('costs').to_f</manipulate>
71
- </call>
72
- </parallel_branch>
73
- <manipulate id="a3"> data.persons -= 1</manipulate>
74
- </loop>
75
- </parallel>
76
- <choose>
77
- <alternative condition="data.costs &gt; 700">
78
- <call id="a4" endpoint="approve">
79
- <parameters>
80
- <method>:post</method>
81
- <parameters>
82
- <costs>data.costs</costs>
83
- </parameters>
84
- </parameters>
85
- </call>
86
- </alternative>
87
- </choose>
88
- </description>
89
- </dslx>
90
- <status>
91
- <id>0</id>
92
- <message>undefined</message>
93
- </status>
94
- <description>
95
- <description xmlns="http://cpee.org/ns/description/1.0">
96
- <call id="a1" endpoint="bookAir">
97
- <parameters>
98
- <method>:post</method>
99
- <parameters>
100
- <from>data.from</from>
101
- <to>data.to</to>
102
- <persons>data.persons</persons>
103
- </parameters>
104
- </parameters>
105
- <manipulate output="result"> data.airline = result.value('id')
106
- data.costs += result.value('costs').to_f
107
- status.update 1, 'Hotel'</manipulate>
108
- </call>
109
- <parallel>
110
- <loop pre_test="data.persons &gt; 0">
111
- <parallel_branch pass="data.persons" local="p">
112
- <call id="a2" endpoint="bookHotel">
113
- <parameters>
114
- <method>:post</method>
115
- <parameters>
116
- <to>data.to</to>
117
- </parameters>
118
- </parameters>
119
- <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
120
- data.costs += result.value('costs').to_f</manipulate>
121
- </call>
122
- </parallel_branch>
123
- <manipulate id="a3"> data.persons -= 1</manipulate>
124
- </loop>
125
- </parallel>
126
- <choose>
127
- <alternative condition="data.costs &gt; 700">
128
- <call id="a4" endpoint="approve">
129
- <parameters>
130
- <method>:post</method>
131
- <parameters>
132
- <costs>data.costs</costs>
133
- </parameters>
134
- </parameters>
135
- </call>
136
- </alternative>
137
- </choose>
138
- </description>
139
- </description>
140
- <transformation>
141
- <description type="copy"/>
142
- <dataelements type="rest"/>
143
- <endpoints type="rest"/>
144
- </transformation>
145
- </properties>
@@ -1,169 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>Enter info here</info>
3
- <state>stopped</state>
4
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions/>
6
- <dataelements/>
7
- <endpoints>
8
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
9
- </endpoints>
10
- <dsl>choose :exclusive do
11
- alternative "true", :sim_probability =&gt; "40.0" do
12
- call :a6, nil, { :label =&gt; "da", :type =&gt; :unknown, :mid =&gt; "_5902507A-504A-4F1E-AEE3-8860BEF374B6", :parameters =&gt; nil }
13
- end
14
- otherwise :sim_probability =&gt; "60.0" do
15
- call :a5, nil, { :label =&gt; "db", :type =&gt; :unknown, :mid =&gt; "_6F6A6FEE-57EB-459D-96FB-1AA736CD6465", :parameters =&gt; nil }
16
- end
17
- end
18
- loop pre_test("true"), :sim_probability =&gt; "100.0" do
19
- call :a2, :ADVENTURE_CORRELATION_push, { :label =&gt; "Receive", :type =&gt; :smartobject, :sim_min_time =&gt; "1m", :sim_max_time =&gt; "1m", :sim_avg_time =&gt; "1m", :mid =&gt; "_A0C7F27E-5FF6-4443-9966-A370F20E1D6F", :parameters =&gt; {:SensorID =&gt; "14"} }, &lt;&lt;-end
20
- data.defectid = result.SensorData;
21
- end
22
- call :a1, :MailCO_mail, { :label =&gt; "Deliver Mail", :type =&gt; :externalManufacturingTask, :sim_min_time =&gt; "1m", :sim_max_time =&gt; "1m", :sim_avg_time =&gt; "1m", :mid =&gt; "_5F7422FB-B4A2-49CB-8071-E0FF99F0A834", :parameters =&gt; {:to =&gt; "juergen.mangler@univie.ac.at", :subject =&gt; "Defect Part", :body =&gt; "data.defectid"} }
23
- call :a3, :ADVENTURE_SPAWN, { :label =&gt; "Spawn self", :type =&gt; :spawn, :mid =&gt; "_DEF002B1-0593-4693-8AD7-48B983E5AFAE", :parameters =&gt; {:instance =&gt; "53cd4af1e4b0207100d2266e"} }
24
- end
25
- </dsl>
26
- <dslx>
27
- <description xmlns="http://cpee.org/ns/description/1.0">
28
- <choose mode="exclusive">
29
- <alternative condition="true" language="text/javascript" sim_probability="40.0">
30
- <call id="a6" endpoint="">
31
- <parameters>
32
- <label>"da"</label>
33
- <type>:unknown</type>
34
- <mid>"_5902507A-504A-4F1E-AEE3-8860BEF374B6"</mid>
35
- <parameters/>
36
- </parameters>
37
- </call>
38
- </alternative>
39
- <otherwise sim_probability="60.0">
40
- <call id="a5" endpoint="">
41
- <parameters>
42
- <label>"db"</label>
43
- <type>:unknown</type>
44
- <mid>"_6F6A6FEE-57EB-459D-96FB-1AA736CD6465"</mid>
45
- <parameters/>
46
- </parameters>
47
- </call>
48
- </otherwise>
49
- </choose>
50
- <loop pre_test="true" language="text/javascript" sim_probability="100.0">
51
- <call id="a2" endpoint="ADVENTURE_CORRELATION_push">
52
- <parameters>
53
- <label>"Receive"</label>
54
- <type>:smartobject</type>
55
- <sim_min_time>"1m"</sim_min_time>
56
- <sim_max_time>"1m"</sim_max_time>
57
- <sim_avg_time>"1m"</sim_avg_time>
58
- <mid>"_A0C7F27E-5FF6-4443-9966-A370F20E1D6F"</mid>
59
- <parameters>
60
- <SensorID>"14"</SensorID>
61
- </parameters>
62
- </parameters>
63
- <manipulate output="result" language="text/javascript">data.defectid = result.SensorData;</manipulate>
64
- </call>
65
- <call id="a1" endpoint="MailCO_mail">
66
- <parameters>
67
- <label>"Deliver Mail"</label>
68
- <type>:externalManufacturingTask</type>
69
- <sim_min_time>"1m"</sim_min_time>
70
- <sim_max_time>"1m"</sim_max_time>
71
- <sim_avg_time>"1m"</sim_avg_time>
72
- <mid>"_5F7422FB-B4A2-49CB-8071-E0FF99F0A834"</mid>
73
- <parameters>
74
- <to>"juergen.mangler@univie.ac.at"</to>
75
- <subject>"Defect Part"</subject>
76
- <body>"data.defectid"</body>
77
- </parameters>
78
- </parameters>
79
- </call>
80
- <call id="a3" endpoint="ADVENTURE_SPAWN">
81
- <parameters>
82
- <label>"Spawn self"</label>
83
- <type>:spawn</type>
84
- <mid>"_DEF002B1-0593-4693-8AD7-48B983E5AFAE"</mid>
85
- <parameters>
86
- <instance>"53cd4af1e4b0207100d2266e"</instance>
87
- </parameters>
88
- </parameters>
89
- </call>
90
- </loop>
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
- <choose mode="exclusive">
100
- <alternative condition="true" language="text/javascript" sim_probability="40.0">
101
- <call id="a6" endpoint="">
102
- <parameters>
103
- <label>"da"</label>
104
- <type>:unknown</type>
105
- <mid>"_5902507A-504A-4F1E-AEE3-8860BEF374B6"</mid>
106
- <parameters/>
107
- </parameters>
108
- </call>
109
- </alternative>
110
- <otherwise sim_probability="60.0">
111
- <call id="a5" endpoint="">
112
- <parameters>
113
- <label>"db"</label>
114
- <type>:unknown</type>
115
- <mid>"_6F6A6FEE-57EB-459D-96FB-1AA736CD6465"</mid>
116
- <parameters/>
117
- </parameters>
118
- </call>
119
- </otherwise>
120
- </choose>
121
- <loop pre_test="true" language="text/javascript" sim_probability="100.0">
122
- <call id="a2" endpoint="ADVENTURE_CORRELATION_push">
123
- <parameters>
124
- <label>"Receive"</label>
125
- <type>:smartobject</type>
126
- <sim_min_time>"1m"</sim_min_time>
127
- <sim_max_time>"1m"</sim_max_time>
128
- <sim_avg_time>"1m"</sim_avg_time>
129
- <mid>"_A0C7F27E-5FF6-4443-9966-A370F20E1D6F"</mid>
130
- <parameters>
131
- <SensorID>"14"</SensorID>
132
- </parameters>
133
- </parameters>
134
- <manipulate output="result" language="text/javascript">data.defectid = result.SensorData;</manipulate>
135
- </call>
136
- <call id="a1" endpoint="MailCO_mail">
137
- <parameters>
138
- <label>"Deliver Mail"</label>
139
- <type>:externalManufacturingTask</type>
140
- <sim_min_time>"1m"</sim_min_time>
141
- <sim_max_time>"1m"</sim_max_time>
142
- <sim_avg_time>"1m"</sim_avg_time>
143
- <mid>"_5F7422FB-B4A2-49CB-8071-E0FF99F0A834"</mid>
144
- <parameters>
145
- <to>"juergen.mangler@univie.ac.at"</to>
146
- <subject>"Defect Part"</subject>
147
- <body>"data.defectid"</body>
148
- </parameters>
149
- </parameters>
150
- </call>
151
- <call id="a3" endpoint="ADVENTURE_SPAWN">
152
- <parameters>
153
- <label>"Spawn self"</label>
154
- <type>:spawn</type>
155
- <mid>"_DEF002B1-0593-4693-8AD7-48B983E5AFAE"</mid>
156
- <parameters>
157
- <instance>"53cd4af1e4b0207100d2266e"</instance>
158
- </parameters>
159
- </parameters>
160
- </call>
161
- </loop>
162
- </description>
163
- </description>
164
- <transformation>
165
- <description type="copy"/>
166
- <dataelements type="xslt"/>
167
- <endpoints type="xslt"/>
168
- </transformation>
169
- </properties>