cpee 2.0.18 → 2.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/wfadaptor.css +17 -0
  3. data/cockpit/js/instance.js +9 -8
  4. data/cockpit/js_libs.zip +0 -0
  5. data/cockpit/templates/.CPEE.xml +8 -0
  6. data/cockpit/templates/.Signavio.xml +8 -0
  7. data/cockpit/templates/.templates.xml +13 -0
  8. data/cockpit/templates/.transformations.xml +4 -0
  9. data/cockpit/themes/model/rngs/call.rng +2 -1
  10. data/cockpit/themes/model/rngs/callmanipulate.rng +2 -1
  11. data/cockpit/themes/model/theme.js +1 -1
  12. data/cpee.gemspec +2 -2
  13. data/lib/cpee/controller.rb +6 -3
  14. data/lib/cpee/implementation.rb +23 -8
  15. data/lib/cpee/implementation_notifications.rb +1 -1
  16. data/lib/cpee/persistence.rb +2 -1
  17. data/lib/cpee/redis.rb +57 -0
  18. data/server/handlerwrappers/default.rb +15 -15
  19. data/server/resources/notifications/logging/subscription.xml +6 -0
  20. data/server/routing/end.rb +16 -4
  21. data/server/routing/forward-events.rb +19 -7
  22. data/server/routing/forward-votes.rb +19 -7
  23. data/server/routing/persist.rb +26 -14
  24. data/tools/cpee +5 -5
  25. data/tools/test/README +4 -0
  26. data/tools/test/config.json +3 -0
  27. data/tools/test/contrib/graph_example.svg +1166 -0
  28. data/tools/test/contrib/legend.svg +817 -0
  29. data/tools/test/contrib/symbols.svg +224 -0
  30. data/tools/test/contrib/transformation1.xsl +264 -0
  31. data/tools/test/contrib/transformation2.xsl +10 -0
  32. data/tools/test/contrib/tree_example.svg +788 -0
  33. data/tools/test/css/model.css +24 -0
  34. data/tools/test/css/track.css +60 -0
  35. data/tools/test/css/ui.css +214 -0
  36. data/tools/test/css/wfadaptor.css +422 -0
  37. data/tools/test/edit.html +258 -0
  38. data/tools/test/graph.html +69 -0
  39. data/tools/test/index.html +258 -0
  40. data/tools/test/js/details.js +109 -0
  41. data/tools/test/js/instance.js +1344 -0
  42. data/tools/test/js/model.js +41 -0
  43. data/tools/test/js/parameters.js +82 -0
  44. data/tools/test/js/track.js +18 -0
  45. data/tools/test/js/ui.js +104 -0
  46. data/tools/test/js/wfadaptor.js +763 -0
  47. data/tools/test/js_libs.zip +0 -0
  48. data/tools/test/js_libs/Makefile +2 -0
  49. data/tools/test/js_libs/ansi_up.js +333 -0
  50. data/tools/test/js_libs/console.js +80 -0
  51. data/tools/test/js_libs/custommenu.css +84 -0
  52. data/tools/test/js_libs/custommenu.js +104 -0
  53. data/tools/test/js_libs/experiments1/relaxngui.css +185 -0
  54. data/tools/test/js_libs/experiments1/relaxngui.js +488 -0
  55. data/tools/test/js_libs/experiments1/rngtest9.html +60 -0
  56. data/tools/test/js_libs/experiments1/rngtest9.rng +35 -0
  57. data/tools/test/js_libs/experiments1/rngtest9.xml +8 -0
  58. data/tools/test/js_libs/jquery-2.2.4.min.js +4 -0
  59. data/tools/test/js_libs/jquery-3.2.1.min.js +4 -0
  60. data/tools/test/js_libs/jquery-3.3.1.min.js +2 -0
  61. data/tools/test/js_libs/jquery.browser.js +40 -0
  62. data/tools/test/js_libs/jquery.caret.min.js +10 -0
  63. data/tools/test/js_libs/jquery.cookie.js +117 -0
  64. data/tools/test/js_libs/jquery.min.js +1 -0
  65. data/tools/test/js_libs/jquery.svg.min.js +6 -0
  66. data/tools/test/js_libs/jquery.svgdom.min.js +6 -0
  67. data/tools/test/js_libs/markdown.min.js +1 -0
  68. data/tools/test/js_libs/parsequery.js +21 -0
  69. data/tools/test/js_libs/printf.js +368 -0
  70. data/tools/test/js_libs/relaxngui.css +213 -0
  71. data/tools/test/js_libs/relaxngui.js +543 -0
  72. data/tools/test/js_libs/strftime.min.js +1 -0
  73. data/tools/test/js_libs/tests/dataelements.html +59 -0
  74. data/tools/test/js_libs/tests/dataelements.rng +8 -0
  75. data/tools/test/js_libs/tests/dataelements.xml +3 -0
  76. data/tools/test/js_libs/tests/relaxngui.css +203 -0
  77. data/tools/test/js_libs/tests/relaxngui.js +502 -0
  78. data/tools/test/js_libs/tests/rngtest1.html +66 -0
  79. data/tools/test/js_libs/tests/rngtest1.rng +147 -0
  80. data/tools/test/js_libs/tests/rngtest1.xml +13 -0
  81. data/tools/test/js_libs/tests/rngtest2.html +60 -0
  82. data/tools/test/js_libs/tests/rngtest2.rng +6 -0
  83. data/tools/test/js_libs/tests/rngtest2.xml +3 -0
  84. data/tools/test/js_libs/tests/rngtest3.html +60 -0
  85. data/tools/test/js_libs/tests/rngtest3.rng +23 -0
  86. data/tools/test/js_libs/tests/rngtest3.xml +9 -0
  87. data/tools/test/js_libs/tests/rngtest4.html +60 -0
  88. data/tools/test/js_libs/tests/rngtest4.rng +19 -0
  89. data/tools/test/js_libs/tests/rngtest4.xml +12 -0
  90. data/tools/test/js_libs/tests/rngtest5.html +60 -0
  91. data/tools/test/js_libs/tests/rngtest5.rng +75 -0
  92. data/tools/test/js_libs/tests/rngtest5.xml +40 -0
  93. data/tools/test/js_libs/tests/rngtest6.html +60 -0
  94. data/tools/test/js_libs/tests/rngtest6.rng +24 -0
  95. data/tools/test/js_libs/tests/rngtest6.xml +6 -0
  96. data/tools/test/js_libs/tests/rngtest8.html +60 -0
  97. data/tools/test/js_libs/tests/rngtest8.rng +13 -0
  98. data/tools/test/js_libs/tests/rngtest8.xml +2 -0
  99. data/tools/test/js_libs/tests/rngtest9.html +60 -0
  100. data/tools/test/js_libs/tests/rngtest9.rng +31 -0
  101. data/tools/test/js_libs/tests/rngtest9.xml +8 -0
  102. data/tools/test/js_libs/ui.css +333 -0
  103. data/tools/test/js_libs/ui.html +168 -0
  104. data/tools/test/js_libs/ui.js +177 -0
  105. data/tools/test/js_libs/underscore.min.js +27 -0
  106. data/tools/test/js_libs/util.js +81 -0
  107. data/tools/test/js_libs/vkbeautify.0.99.00.beta.js +358 -0
  108. data/tools/test/js_libs/vkbeautify.js +1 -0
  109. data/tools/test/js_libs/webcomponents.min.js +196 -0
  110. data/tools/test/model.html +192 -0
  111. data/tools/test/rngs/attributes.rng +8 -0
  112. data/tools/test/rngs/dataelements.rng +8 -0
  113. data/tools/test/rngs/endpoints.rng +8 -0
  114. data/tools/test/templates.legacy/Async.xml +46 -0
  115. data/tools/test/templates.legacy/BCO.xml +70 -0
  116. data/tools/test/templates.legacy/BCS.xml +70 -0
  117. data/tools/test/templates.legacy/Centurio.xml +75 -0
  118. data/tools/test/templates.legacy/Concurrent.xml +40 -0
  119. data/tools/test/templates.legacy/Coopis Testset.xml +76 -0
  120. data/tools/test/templates.legacy/Endpoints and Data Manipulation.xml +30 -0
  121. data/tools/test/templates.legacy/ICSOC Testset.xml +95 -0
  122. data/tools/test/templates.legacy/Infinity.xml +28 -0
  123. data/tools/test/templates.legacy/Lego Boxer.xml +31 -0
  124. data/tools/test/templates.legacy/Lego Conveyor.xml +31 -0
  125. data/tools/test/templates.legacy/Lego Crane.xml +87 -0
  126. data/tools/test/templates.legacy/Lego Ejector.xml +55 -0
  127. data/tools/test/templates.legacy/Lego Full.xml +142 -0
  128. data/tools/test/templates.legacy/Lego Liddy.xml +40 -0
  129. data/tools/test/templates.legacy/Lego Plate.xml +31 -0
  130. data/tools/test/templates.legacy/Lego Transporter.xml +43 -0
  131. data/tools/test/templates.legacy/Lego_Part_1.xml +85 -0
  132. data/tools/test/templates.legacy/LgLinear.xml +65 -0
  133. data/tools/test/templates.legacy/Linear.xml +77 -0
  134. data/tools/test/templates.legacy/Log.xml +117 -0
  135. data/tools/test/templates.legacy/Mangler 1.xml +87 -0
  136. data/tools/test/templates.legacy/Mangler 2.xml +103 -0
  137. data/tools/test/templates.legacy/Manuel Labels.xml +55 -0
  138. data/tools/test/templates.legacy/Promise.xml +275 -0
  139. data/tools/test/templates.legacy/SOPROMO Test Sonification.xml +83 -0
  140. data/tools/test/templates.legacy/Subprocess.xml +56 -0
  141. data/tools/test/templates.legacy/Syncing P34 1.xml +77 -0
  142. data/tools/test/templates.legacy/Syncing P34 2.xml +77 -0
  143. data/tools/test/templates.legacy/Syncing P34 3.xml +77 -0
  144. data/tools/test/templates.legacy/Syncing P34.xml +77 -0
  145. data/tools/test/templates.legacy/TEST - Bad Loop.xml +173 -0
  146. data/tools/test/templates.legacy/TEST - Wrong Positions.xml +174 -0
  147. data/tools/test/templates.legacy/Take_5.xml +48 -0
  148. data/tools/test/templates.legacy/Update.xml +32 -0
  149. data/tools/test/templates.legacy/Worklist Parallel.xml +104 -0
  150. data/tools/test/templates.legacy/Worklist Test CPEE.xml +40 -0
  151. data/tools/test/templates.legacy/Worklist Test.xml +42 -0
  152. data/tools/test/templates.legacy/Worklist Test2.xml +43 -0
  153. data/tools/test/templates.legacy/convert_cpee2.rb +15 -0
  154. data/tools/test/templates.legacy/convert_preset.rb +32 -0
  155. data/tools/test/templates.legacy/testsets.xml +37 -0
  156. data/tools/test/templates.legacy/transformations.xml +4 -0
  157. data/tools/test/templates/Coopis 2010.xml +76 -0
  158. data/tools/test/templates/IUPC arXiv:1104.3609 P34 1.xml +77 -0
  159. data/tools/test/templates/IUPC arXiv:1104.3609 P34 2.xml +77 -0
  160. data/tools/test/templates/IUPC arXiv:1104.3609 P34 3.xml +77 -0
  161. data/tools/test/templates/Track Test Local.xml +82 -0
  162. data/tools/test/templates/Track Test.xml +82 -0
  163. data/tools/test/templates/UR-VUE 2020 Manual Adjust.xml +182 -0
  164. data/tools/test/templates/UR-VUE 2020 Solution Baseline.xml +203 -0
  165. data/tools/test/templates/UR-VUE 2020 Solution NN.xml +197 -0
  166. data/tools/test/templates/UR-VUE 2020 Solution View.xml +151 -0
  167. data/tools/test/templates/UR-VUE 2020.xml +26 -0
  168. data/tools/test/templates/Worklist.xml +42 -0
  169. data/tools/test/templates/instantiate.local/Take_Sub.xml +59 -0
  170. data/tools/test/templates/instantiate/Take_Perf.xml +46 -0
  171. data/tools/test/templates/instantiate/Take_Sub.xml +58 -0
  172. data/tools/test/templates/instantiate/Take_X.xml +48 -0
  173. data/tools/test/themes/compact/theme.js +1285 -0
  174. data/tools/test/themes/diana/theme.js +1650 -0
  175. data/tools/test/themes/extended/theme.js +1325 -0
  176. data/tools/test/themes/model/rngs/alternative.rng +1 -0
  177. data/tools/test/themes/model/rngs/call.rng +67 -0
  178. data/tools/test/themes/model/rngs/callmanipulate.rng +72 -0
  179. data/tools/test/themes/model/rngs/choose.rng +1 -0
  180. data/tools/test/themes/model/rngs/critical.rng +1 -0
  181. data/tools/test/themes/model/rngs/escape.rng +1 -0
  182. data/tools/test/themes/model/rngs/group.rng +1 -0
  183. data/tools/test/themes/model/rngs/loop.rng +1 -0
  184. data/tools/test/themes/model/rngs/manipulate.rng +1 -0
  185. data/tools/test/themes/model/rngs/otherwise.rng +1 -0
  186. data/tools/test/themes/model/rngs/parallel.rng +1 -0
  187. data/tools/test/themes/model/rngs/parallel_branch.rng +1 -0
  188. data/tools/test/themes/model/rngs/scripts.rng +7 -0
  189. data/tools/test/themes/model/rngs/stop.rng +1 -0
  190. data/tools/test/themes/model/rngs/terminate.rng +1 -0
  191. data/tools/test/themes/model/theme.js +1268 -0
  192. data/tools/test/themes/packed/theme.js +1286 -0
  193. data/tools/test/themes/preset/rngs/alternative.rng +25 -0
  194. data/tools/test/themes/preset/rngs/call.rng +122 -0
  195. data/tools/test/themes/preset/rngs/callmanipulate.rng +145 -0
  196. data/tools/test/themes/preset/rngs/choose.rng +14 -0
  197. data/tools/test/themes/preset/rngs/closed_loop.rng +62 -0
  198. data/tools/test/themes/preset/rngs/closed_loop_cancel.rng +5 -0
  199. data/tools/test/themes/preset/rngs/closed_loop_control.rng +31 -0
  200. data/tools/test/themes/preset/rngs/closed_loop_measuring.rng +12 -0
  201. data/tools/test/themes/preset/rngs/critical.rng +5 -0
  202. data/tools/test/themes/preset/rngs/escape.rng +1 -0
  203. data/tools/test/themes/preset/rngs/group.rng +3 -0
  204. data/tools/test/themes/preset/rngs/loop.rng +22 -0
  205. data/tools/test/themes/preset/rngs/manipulate.rng +9 -0
  206. data/tools/test/themes/preset/rngs/otherwise.rng +22 -0
  207. data/tools/test/themes/preset/rngs/parallel.rng +21 -0
  208. data/tools/test/themes/preset/rngs/parallel_branch.rng +8 -0
  209. data/tools/test/themes/preset/rngs/scripts.rng +23 -0
  210. data/tools/test/themes/preset/rngs/stop.rng +5 -0
  211. data/tools/test/themes/preset/rngs/terminate.rng +1 -0
  212. data/tools/test/themes/preset/symbols/alternative.svg +5 -0
  213. data/tools/test/themes/preset/symbols/arrow.svg +3 -0
  214. data/tools/test/themes/preset/symbols/call.svg +6 -0
  215. data/tools/test/themes/preset/symbols/callmanipulate.svg +8 -0
  216. data/tools/test/themes/preset/symbols/choose.svg +5 -0
  217. data/tools/test/themes/preset/symbols/choose_exclusive.svg +5 -0
  218. data/tools/test/themes/preset/symbols/choose_inclusive.svg +4 -0
  219. data/tools/test/themes/preset/symbols/closed_loop.svg +5 -0
  220. data/tools/test/themes/preset/symbols/closed_loop_cancel.svg +5 -0
  221. data/tools/test/themes/preset/symbols/closed_loop_control.svg +5 -0
  222. data/tools/test/themes/preset/symbols/closed_loop_measuring.svg +6 -0
  223. data/tools/test/themes/preset/symbols/complex.svg +8 -0
  224. data/tools/test/themes/preset/symbols/critical.svg +4 -0
  225. data/tools/test/themes/preset/symbols/end.svg +3 -0
  226. data/tools/test/themes/preset/symbols/escape.svg +5 -0
  227. data/tools/test/themes/preset/symbols/event_end.svg +3 -0
  228. data/tools/test/themes/preset/symbols/loop.svg +5 -0
  229. data/tools/test/themes/preset/symbols/manipulate.svg +4 -0
  230. data/tools/test/themes/preset/symbols/otherwise.svg +5 -0
  231. data/tools/test/themes/preset/symbols/parallel.svg +5 -0
  232. data/tools/test/themes/preset/symbols/parallel_branch.svg +5 -0
  233. data/tools/test/themes/preset/symbols/parallel_branch_compact.svg +4 -0
  234. data/tools/test/themes/preset/symbols/parallel_branch_event.svg +14 -0
  235. data/tools/test/themes/preset/symbols/parallel_branch_normal.svg +5 -0
  236. data/tools/test/themes/preset/symbols/scripts.svg +4 -0
  237. data/tools/test/themes/preset/symbols/start.svg +3 -0
  238. data/tools/test/themes/preset/symbols/stop.svg +5 -0
  239. data/tools/test/themes/preset/symbols/terminate.svg +4 -0
  240. data/tools/test/themes/preset/theme.js +1287 -0
  241. data/tools/test/track.html +142 -0
  242. metadata +225 -3
  243. data/cockpit/edit.html +0 -1
@@ -0,0 +1,19 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name="_workorders">
3
+ <zeroOrMore rngui:label="Create Work Order">
4
+ <element name='_workorder'>
5
+ <attribute name="label" rngui:label="Note">
6
+ <data type="string"/>
7
+ </attribute>
8
+ <attribute name="duration" rngui:label="Duration">
9
+ <data type="string"/>
10
+ </attribute>
11
+ <zeroOrMore rngui:label="Add Attachment">
12
+ <element name='_attachment' rngui:label='Attachment'>
13
+ <data type="string"/>
14
+ </element>
15
+ </zeroOrMore>
16
+ </element>
17
+ </zeroOrMore>
18
+ </element>
19
+ </element>
@@ -0,0 +1,12 @@
1
+ <call>
2
+ <_workorders>
3
+ <_workorder label="a" duration="b">
4
+ <_attachment>1</_attachment>
5
+ <_attachment>2</_attachment>
6
+ </_workorder>
7
+ <_workorder label="c" duration="d">
8
+ <_attachment>3</_attachment>
9
+ <_attachment>4</_attachment>
10
+ </_workorder>
11
+ </_workorders>
12
+ </call>
@@ -0,0 +1,60 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui 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
11
+ A 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
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 5</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
28
+
29
+ <script type="text/javascript" src="relaxngui.js"></script>
30
+ <link rel="stylesheet" href="relaxngui.css" type="text/css"/>
31
+
32
+ <!-- custom stuff, play arround -->
33
+
34
+ <script type="text/javascript">
35
+ $("body").ready(function(){
36
+ $.ajax({
37
+ type: "GET",
38
+ url: "rngtest5.rng",
39
+ success: function(rng){
40
+ $.ajax({
41
+ type: "GET",
42
+ url: "rngtest5.xml",
43
+ success: function(data){
44
+ var rngui = new RelaxNGui(rng,$('#show'));
45
+ rngui.content(data);
46
+ $('#saveall').on('click',function(){
47
+ console.log($(rngui.save()).serializePrettyXML());
48
+ });
49
+ }
50
+ });
51
+ }
52
+ });
53
+ });
54
+ </script>
55
+ </head>
56
+ <body>
57
+ <div id="show"></div>
58
+ <button id='saveall'>save it all to console</button>
59
+ </body>
60
+ </html>
@@ -0,0 +1,75 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name='parameters' rngui:header="Parameters">
3
+ <element name="label" rngui:label="Label">
4
+ <data type="string" rngui:label="Short description of the task"/>
5
+ </element>
6
+ <element name="method" rngui:label="Method">
7
+ <choice>
8
+ <value>:post</value>
9
+ <value>:get</value>
10
+ <value>:put</value>
11
+ <value>:delete</value>
12
+ </choice>
13
+ </element>
14
+ <element name="arguments" rngui:header="Arguments">
15
+ <element name="nc-program" rngui:label="NC Program">
16
+ <data type="string" rngui:label="Unique ID of the NC Program"/>
17
+ </element>
18
+ <element name="material-name" rngui:label="Material Name">
19
+ <data type="string" rngui:label="Name of the raw material"/>
20
+ </element>
21
+ <element name="material-pic" rngui:label="Material Picture">
22
+ <data type="string" rngui:label="Picture of the raw material"/>
23
+ </element>
24
+ <element name="result-pic" rngui:label="Result Picture">
25
+ <data type="string" rngui:label="Picture of the result"/>
26
+ </element>
27
+ <element name="comment" rngui:label="Comment">
28
+ <text rngui:wrap='true' rngui:label='Additional comments for the operator'/>
29
+ </element>
30
+ <element name="tools" rngui:header="Tools">
31
+ <zeroOrMore rngui:label="Add Tool">
32
+ <element name="tool">
33
+ <element name="place" rngui:label="Position">
34
+ <data type="integer" rngui:label="Position in Tool Magazine"/>
35
+ </element>
36
+ <element name="tool-name" rngui:label="Tool">
37
+ <data type="string" rngui:label="Name of Tool"/>
38
+ </element>
39
+ <element name="tool-holder" rngui:label="Holder">
40
+ <data type="string" rngui:label="Name of Tool Holder"/>
41
+ </element>
42
+ <element name="tool-orientation" rngui:label="Orientation">
43
+ <data type="string" rngui:label="Orientation in Tool Holder"/>
44
+ </element>
45
+ <element name="corrections" rngui:header="Corrections">
46
+ <zeroOrMore rngui:label="Add Correction">
47
+ <element name="correction">
48
+ <attribute name="length-x" rngui:label="Length X">
49
+ <data type="float"/>
50
+ </attribute>
51
+ <attribute name="length-z" rngui:label="Length Y">
52
+ <data type="float"/>
53
+ </attribute>
54
+ <attribute name="radius" rngui:label="Radius">
55
+ <data type="float"/>
56
+ </attribute>
57
+ </element>
58
+ </zeroOrMore>
59
+ </element>
60
+ <element name="attachments" rngui:header="Attachments">
61
+ <zeroOrMore rngui:label="Add Attachment">
62
+ <element name="attachment" rngui:label="URL">
63
+ <attribute name="label" rngui:label="Label">
64
+ <data type="string" rngui:label="Label"/>
65
+ </attribute>
66
+ <data type="string" rngui:label="URL"/>
67
+ </element>
68
+ </zeroOrMore>
69
+ </element>
70
+ </element>
71
+ </zeroOrMore>
72
+ </element>
73
+ </element>
74
+ </element>
75
+ </element>
@@ -0,0 +1,40 @@
1
+ <call>
2
+ <parameters>
3
+ <label></label>
4
+ <method>:post</method>
5
+ <arguments>
6
+ <nc-program>Kuli</nc-program>
7
+ <material-name>3</material-name>
8
+ <material-pic>http://centurio.work/customers/prime/part.jpg</material-pic>
9
+ <result-pic>http://centurio.work/customers/prime/result.jpg</result-pic>
10
+ <comment>Hallo</comment>
11
+ <tools>
12
+ <tool>
13
+ <place>1</place>
14
+ <tool-name>Schrupper (500)</tool-name>
15
+ <tool-holder>x3</tool-holder>
16
+ <tool-orientation>gegenspindel axial</tool-orientation>
17
+ <corrections>
18
+ <correction length-x="0" length-z="0" radius="70"/>
19
+ <correction length-x="1" length-z="1" radius="60"/>
20
+ </corrections>
21
+ <attachments>
22
+ <attachment label="Bla">http://centurio.work/customers/prime/attachment1.jpg</attachment>
23
+ </attachments>
24
+ </tool>
25
+ <tool>
26
+ <place>2</place>
27
+ <tool-name>Schaftfräser d6</tool-name>
28
+ <tool-holder>SK45</tool-holder>
29
+ <tool-orientation>-</tool-orientation>
30
+ <corrections>
31
+ <correction length-x="2" length-z="1" radius="2"/>
32
+ </corrections>
33
+ <attachments>
34
+ <attachment label="Tool">https://centurio.work/customers/prime/schaftfraeser.jpg</attachment>
35
+ </attachments>
36
+ </tool>
37
+ </tools>
38
+ </arguments>
39
+ </parameters>
40
+ </call>
@@ -0,0 +1,60 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui 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
11
+ A 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
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 6</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
28
+
29
+ <script type="text/javascript" src="relaxngui.js"></script>
30
+ <link rel="stylesheet" href="relaxngui.css" type="text/css"/>
31
+
32
+ <!-- custom stuff, play arround -->
33
+
34
+ <script type="text/javascript">
35
+ $("body").ready(function(){
36
+ $.ajax({
37
+ type: "GET",
38
+ url: "rngtest6.rng",
39
+ success: function(rng){
40
+ $.ajax({
41
+ type: "GET",
42
+ url: "rngtest6.xml",
43
+ success: function(data){
44
+ var rngui = new RelaxNGui(rng,$('#show'));
45
+ rngui.content(data);
46
+ $('#saveall').on('click',function(){
47
+ console.log($(rngui.save()).serializePrettyXML());
48
+ });
49
+ }
50
+ });
51
+ }
52
+ });
53
+ });
54
+ </script>
55
+ </head>
56
+ <body>
57
+ <div id="show"></div>
58
+ <button id='saveall'>save it all to console</button>
59
+ </body>
60
+ </html>
@@ -0,0 +1,24 @@
1
+ <element rngui:version="1.2" rngui:header="Arguments" name="arguments" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name="behavior" rngui:label="Mode">
3
+ <choice>
4
+ <value>wait_running</value>
5
+ <value>fork_running</value>
6
+ <value>wait_ready</value>
7
+ <value>fork_ready</value>
8
+ </choice>
9
+ </element>
10
+ <element name="url" rngui:label="Process">
11
+ <data type="string" rngui:label="Link to centurio.work testset"/>
12
+ </element>
13
+ <element name="date" rngui:label="Due Date">
14
+ <data type="date" rngui:label="Due Date"/>
15
+ </element>
16
+ <element name="init" rngui:header="Initialize">
17
+ <zeroOrMore rngui:label="New Argument Pair">
18
+ <element rngui:label='Name'>
19
+ <anyName/>
20
+ <data type="string" rngui:label="Value"/>
21
+ </element>
22
+ </zeroOrMore>
23
+ </element>
24
+ </element>
@@ -0,0 +1,6 @@
1
+ <arguments>
2
+ <behavior>wait_runnig</behavior>
3
+ <url>3</url>
4
+ <date/>
5
+ <init/>
6
+ </arguments>
@@ -0,0 +1,60 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui 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
11
+ A 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
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 8</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
28
+
29
+ <script type="text/javascript" src="relaxngui.js"></script>
30
+ <link rel="stylesheet" href="relaxngui.css" type="text/css"/>
31
+
32
+ <!-- custom stuff, play arround -->
33
+
34
+ <script type="text/javascript">
35
+ $("body").ready(function(){
36
+ $.ajax({
37
+ type: "GET",
38
+ url: "rngtest8.rng",
39
+ success: function(rng){
40
+ $.ajax({
41
+ type: "GET",
42
+ url: "rngtest8.xml",
43
+ success: function(data){
44
+ var rngui = new RelaxNGui(rng,$('#show'));
45
+ rngui.content(data);
46
+ $('#saveall').on('click',function(){
47
+ console.log($(rngui.save()).serializePrettyXML());
48
+ });
49
+ }
50
+ });
51
+ }
52
+ });
53
+ });
54
+ </script>
55
+ </head>
56
+ <body>
57
+ <div id="show"></div>
58
+ <button id='saveall'>save it all to console</button>
59
+ </body>
60
+ </html>
@@ -0,0 +1,13 @@
1
+ <element rngui:version="1.2" name="parallel" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="wait" rngui:label="Wait" rngui:default="-1" rngui:hint="-1 to wait for all branches.">
3
+ <data type="integer"/>
4
+ </attribute>
5
+ <element name="parallel_branch">
6
+ <attribute name="pass"><data type="string"/></attribute>
7
+ <attribute name="local"><data type="string"/></attribute>
8
+ </element>
9
+ <element name="parallel_branch">
10
+ <attribute name="pass"><data type="string"/></attribute>
11
+ <attribute name="local"><data type="string"/></attribute>
12
+ </element>
13
+ </element>
@@ -0,0 +1,2 @@
1
+ <choose mode="exclusive"/>
2
+
@@ -0,0 +1,60 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui 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
11
+ A 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
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 9</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
28
+
29
+ <script type="text/javascript" src="relaxngui.js"></script>
30
+ <link rel="stylesheet" href="relaxngui.css" type="text/css"/>
31
+
32
+ <!-- custom stuff, play arround -->
33
+
34
+ <script type="text/javascript">
35
+ $("body").ready(function(){
36
+ $.ajax({
37
+ type: "GET",
38
+ url: "rngtest9.rng",
39
+ success: function(rng){
40
+ $.ajax({
41
+ type: "GET",
42
+ url: "rngtest9.xml",
43
+ success: function(data){
44
+ var rngui = new RelaxNGui(rng,$('#show'));
45
+ rngui.content(data);
46
+ $('#saveall').on('click',function(){
47
+ console.log($(rngui.save()).serializePrettyXML());
48
+ });
49
+ }
50
+ });
51
+ }
52
+ });
53
+ });
54
+ </script>
55
+ </head>
56
+ <body>
57
+ <div id="show"></div>
58
+ <button id='saveall'>save it all to console</button>
59
+ </body>
60
+ </html>