cpee 2.0.16 → 2.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/wfadaptor.css +17 -0
- data/cockpit/js/instance.js +3 -3
- data/cockpit/js_libs.zip +0 -0
- data/cockpit/themes/compact/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/compact/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/compact/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/default/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/default/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/default/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/diana/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/diana/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/diana/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/extended/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/extended/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/extended/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/model/rngs/call.rng +6 -1
- data/cockpit/themes/model/rngs/callmanipulate.rng +6 -1
- data/cockpit/themes/model/theme.js +1 -1
- data/cockpit/themes/packed/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/packed/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/packed/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/preset/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/preset/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/preset/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/preset/theme.js +1 -1
- data/cpee.gemspec +2 -2
- data/lib/cpee/controller.rb +6 -3
- data/lib/cpee/implementation.rb +23 -8
- data/lib/cpee/implementation_notifications.rb +1 -1
- data/lib/cpee/persistence.rb +2 -1
- data/lib/cpee/redis.rb +57 -0
- data/server/handlerwrappers/default.rb +16 -16
- data/server/routing/end.rb +16 -4
- data/server/routing/forward-events.rb +19 -7
- data/server/routing/forward-votes.rb +19 -7
- data/server/routing/persist.rb +27 -15
- data/tools/cpee +5 -5
- data/tools/server/{server.rb → cpee} +0 -0
- data/tools/test/README +4 -0
- data/tools/test/config.json +3 -0
- data/tools/test/contrib/graph_example.svg +1166 -0
- data/tools/test/contrib/legend.svg +817 -0
- data/tools/test/contrib/symbols.svg +224 -0
- data/tools/test/contrib/transformation1.xsl +264 -0
- data/tools/test/contrib/transformation2.xsl +10 -0
- data/tools/test/contrib/tree_example.svg +788 -0
- data/tools/test/css/model.css +24 -0
- data/tools/test/css/track.css +60 -0
- data/tools/test/css/ui.css +214 -0
- data/tools/test/css/wfadaptor.css +422 -0
- data/tools/test/edit.html +258 -0
- data/tools/test/graph.html +69 -0
- data/tools/test/index.html +258 -0
- data/tools/test/js/details.js +109 -0
- data/tools/test/js/instance.js +1344 -0
- data/tools/test/js/model.js +41 -0
- data/tools/test/js/parameters.js +82 -0
- data/tools/test/js/track.js +18 -0
- data/tools/test/js/ui.js +104 -0
- data/tools/test/js/wfadaptor.js +763 -0
- data/tools/test/js_libs.zip +0 -0
- data/tools/test/js_libs/Makefile +2 -0
- data/tools/test/js_libs/ansi_up.js +333 -0
- data/tools/test/js_libs/console.js +80 -0
- data/tools/test/js_libs/custommenu.css +84 -0
- data/tools/test/js_libs/custommenu.js +104 -0
- data/tools/test/js_libs/experiments1/relaxngui.css +185 -0
- data/tools/test/js_libs/experiments1/relaxngui.js +488 -0
- data/tools/test/js_libs/experiments1/rngtest9.html +60 -0
- data/tools/test/js_libs/experiments1/rngtest9.rng +35 -0
- data/tools/test/js_libs/experiments1/rngtest9.xml +8 -0
- data/tools/test/js_libs/jquery-2.2.4.min.js +4 -0
- data/tools/test/js_libs/jquery-3.2.1.min.js +4 -0
- data/tools/test/js_libs/jquery-3.3.1.min.js +2 -0
- data/tools/test/js_libs/jquery.browser.js +40 -0
- data/tools/test/js_libs/jquery.caret.min.js +10 -0
- data/tools/test/js_libs/jquery.cookie.js +117 -0
- data/tools/test/js_libs/jquery.min.js +1 -0
- data/tools/test/js_libs/jquery.svg.min.js +6 -0
- data/tools/test/js_libs/jquery.svgdom.min.js +6 -0
- data/tools/test/js_libs/markdown.min.js +1 -0
- data/tools/test/js_libs/parsequery.js +21 -0
- data/tools/test/js_libs/printf.js +368 -0
- data/tools/test/js_libs/relaxngui.css +213 -0
- data/tools/test/js_libs/relaxngui.js +543 -0
- data/tools/test/js_libs/strftime.min.js +1 -0
- data/tools/test/js_libs/tests/dataelements.html +59 -0
- data/tools/test/js_libs/tests/dataelements.rng +8 -0
- data/tools/test/js_libs/tests/dataelements.xml +3 -0
- data/tools/test/js_libs/tests/relaxngui.css +203 -0
- data/tools/test/js_libs/tests/relaxngui.js +502 -0
- data/tools/test/js_libs/tests/rngtest1.html +66 -0
- data/tools/test/js_libs/tests/rngtest1.rng +147 -0
- data/tools/test/js_libs/tests/rngtest1.xml +13 -0
- data/tools/test/js_libs/tests/rngtest2.html +60 -0
- data/tools/test/js_libs/tests/rngtest2.rng +6 -0
- data/tools/test/js_libs/tests/rngtest2.xml +3 -0
- data/tools/test/js_libs/tests/rngtest3.html +60 -0
- data/tools/test/js_libs/tests/rngtest3.rng +23 -0
- data/tools/test/js_libs/tests/rngtest3.xml +9 -0
- data/tools/test/js_libs/tests/rngtest4.html +60 -0
- data/tools/test/js_libs/tests/rngtest4.rng +19 -0
- data/tools/test/js_libs/tests/rngtest4.xml +12 -0
- data/tools/test/js_libs/tests/rngtest5.html +60 -0
- data/tools/test/js_libs/tests/rngtest5.rng +75 -0
- data/tools/test/js_libs/tests/rngtest5.xml +40 -0
- data/tools/test/js_libs/tests/rngtest6.html +60 -0
- data/tools/test/js_libs/tests/rngtest6.rng +24 -0
- data/tools/test/js_libs/tests/rngtest6.xml +6 -0
- data/tools/test/js_libs/tests/rngtest8.html +60 -0
- data/tools/test/js_libs/tests/rngtest8.rng +13 -0
- data/tools/test/js_libs/tests/rngtest8.xml +2 -0
- data/tools/test/js_libs/tests/rngtest9.html +60 -0
- data/tools/test/js_libs/tests/rngtest9.rng +31 -0
- data/tools/test/js_libs/tests/rngtest9.xml +8 -0
- data/tools/test/js_libs/ui.css +333 -0
- data/tools/test/js_libs/ui.html +168 -0
- data/tools/test/js_libs/ui.js +177 -0
- data/tools/test/js_libs/underscore.min.js +27 -0
- data/tools/test/js_libs/util.js +81 -0
- data/tools/test/js_libs/vkbeautify.0.99.00.beta.js +358 -0
- data/tools/test/js_libs/vkbeautify.js +1 -0
- data/tools/test/js_libs/webcomponents.min.js +196 -0
- data/tools/test/model.html +192 -0
- data/tools/test/rngs/attributes.rng +8 -0
- data/tools/test/rngs/dataelements.rng +8 -0
- data/tools/test/rngs/endpoints.rng +8 -0
- data/tools/test/templates.legacy/Async.xml +46 -0
- data/tools/test/templates.legacy/BCO.xml +70 -0
- data/tools/test/templates.legacy/BCS.xml +70 -0
- data/tools/test/templates.legacy/Centurio.xml +75 -0
- data/tools/test/templates.legacy/Concurrent.xml +40 -0
- data/tools/test/templates.legacy/Coopis Testset.xml +76 -0
- data/tools/test/templates.legacy/Endpoints and Data Manipulation.xml +30 -0
- data/tools/test/templates.legacy/ICSOC Testset.xml +95 -0
- data/tools/test/templates.legacy/Infinity.xml +28 -0
- data/tools/test/templates.legacy/Lego Boxer.xml +31 -0
- data/tools/test/templates.legacy/Lego Conveyor.xml +31 -0
- data/tools/test/templates.legacy/Lego Crane.xml +87 -0
- data/tools/test/templates.legacy/Lego Ejector.xml +55 -0
- data/tools/test/templates.legacy/Lego Full.xml +142 -0
- data/tools/test/templates.legacy/Lego Liddy.xml +40 -0
- data/tools/test/templates.legacy/Lego Plate.xml +31 -0
- data/tools/test/templates.legacy/Lego Transporter.xml +43 -0
- data/tools/test/templates.legacy/Lego_Part_1.xml +85 -0
- data/tools/test/templates.legacy/LgLinear.xml +65 -0
- data/tools/test/templates.legacy/Linear.xml +77 -0
- data/tools/test/templates.legacy/Log.xml +117 -0
- data/tools/test/templates.legacy/Mangler 1.xml +87 -0
- data/tools/test/templates.legacy/Mangler 2.xml +103 -0
- data/tools/test/templates.legacy/Manuel Labels.xml +55 -0
- data/tools/test/templates.legacy/Promise.xml +275 -0
- data/tools/test/templates.legacy/SOPROMO Test Sonification.xml +83 -0
- data/tools/test/templates.legacy/Subprocess.xml +56 -0
- data/tools/test/templates.legacy/Syncing P34 1.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34 2.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34 3.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34.xml +77 -0
- data/tools/test/templates.legacy/TEST - Bad Loop.xml +173 -0
- data/tools/test/templates.legacy/TEST - Wrong Positions.xml +174 -0
- data/tools/test/templates.legacy/Take_5.xml +48 -0
- data/tools/test/templates.legacy/Update.xml +32 -0
- data/tools/test/templates.legacy/Worklist Parallel.xml +104 -0
- data/tools/test/templates.legacy/Worklist Test CPEE.xml +40 -0
- data/tools/test/templates.legacy/Worklist Test.xml +42 -0
- data/tools/test/templates.legacy/Worklist Test2.xml +43 -0
- data/tools/test/templates.legacy/convert_cpee2.rb +15 -0
- data/tools/test/templates.legacy/convert_preset.rb +32 -0
- data/tools/test/templates.legacy/testsets.xml +37 -0
- data/tools/test/templates.legacy/transformations.xml +4 -0
- data/tools/test/templates/Coopis 2010.xml +76 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 1.xml +77 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 2.xml +77 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 3.xml +77 -0
- data/tools/test/templates/Track Test Local.xml +82 -0
- data/tools/test/templates/Track Test.xml +82 -0
- data/tools/test/templates/UR-VUE 2020 Manual Adjust.xml +182 -0
- data/tools/test/templates/UR-VUE 2020 Solution Baseline.xml +203 -0
- data/tools/test/templates/UR-VUE 2020 Solution NN.xml +197 -0
- data/tools/test/templates/UR-VUE 2020 Solution View.xml +151 -0
- data/tools/test/templates/UR-VUE 2020.xml +26 -0
- data/tools/test/templates/Worklist.xml +42 -0
- data/tools/test/templates/instantiate.local/Take_Sub.xml +59 -0
- data/tools/test/templates/instantiate/Take_Perf.xml +46 -0
- data/tools/test/templates/instantiate/Take_Sub.xml +58 -0
- data/tools/test/templates/instantiate/Take_X.xml +48 -0
- data/tools/test/themes/compact/theme.js +1285 -0
- data/tools/test/themes/diana/theme.js +1650 -0
- data/tools/test/themes/extended/theme.js +1325 -0
- data/tools/test/themes/model/rngs/alternative.rng +1 -0
- data/tools/test/themes/model/rngs/call.rng +67 -0
- data/tools/test/themes/model/rngs/callmanipulate.rng +72 -0
- data/tools/test/themes/model/rngs/choose.rng +1 -0
- data/tools/test/themes/model/rngs/critical.rng +1 -0
- data/tools/test/themes/model/rngs/escape.rng +1 -0
- data/tools/test/themes/model/rngs/group.rng +1 -0
- data/tools/test/themes/model/rngs/loop.rng +1 -0
- data/tools/test/themes/model/rngs/manipulate.rng +1 -0
- data/tools/test/themes/model/rngs/otherwise.rng +1 -0
- data/tools/test/themes/model/rngs/parallel.rng +1 -0
- data/tools/test/themes/model/rngs/parallel_branch.rng +1 -0
- data/tools/test/themes/model/rngs/scripts.rng +7 -0
- data/tools/test/themes/model/rngs/stop.rng +1 -0
- data/tools/test/themes/model/rngs/terminate.rng +1 -0
- data/tools/test/themes/model/theme.js +1268 -0
- data/tools/test/themes/packed/theme.js +1286 -0
- data/tools/test/themes/preset/rngs/alternative.rng +25 -0
- data/tools/test/themes/preset/rngs/call.rng +122 -0
- data/tools/test/themes/preset/rngs/callmanipulate.rng +145 -0
- data/tools/test/themes/preset/rngs/choose.rng +14 -0
- data/tools/test/themes/preset/rngs/closed_loop.rng +62 -0
- data/tools/test/themes/preset/rngs/closed_loop_cancel.rng +5 -0
- data/tools/test/themes/preset/rngs/closed_loop_control.rng +31 -0
- data/tools/test/themes/preset/rngs/closed_loop_measuring.rng +12 -0
- data/tools/test/themes/preset/rngs/critical.rng +5 -0
- data/tools/test/themes/preset/rngs/escape.rng +1 -0
- data/tools/test/themes/preset/rngs/group.rng +3 -0
- data/tools/test/themes/preset/rngs/loop.rng +22 -0
- data/tools/test/themes/preset/rngs/manipulate.rng +9 -0
- data/tools/test/themes/preset/rngs/otherwise.rng +22 -0
- data/tools/test/themes/preset/rngs/parallel.rng +21 -0
- data/tools/test/themes/preset/rngs/parallel_branch.rng +8 -0
- data/tools/test/themes/preset/rngs/scripts.rng +23 -0
- data/tools/test/themes/preset/rngs/stop.rng +5 -0
- data/tools/test/themes/preset/rngs/terminate.rng +1 -0
- data/tools/test/themes/preset/symbols/alternative.svg +5 -0
- data/tools/test/themes/preset/symbols/arrow.svg +3 -0
- data/tools/test/themes/preset/symbols/call.svg +6 -0
- data/tools/test/themes/preset/symbols/callmanipulate.svg +8 -0
- data/tools/test/themes/preset/symbols/choose.svg +5 -0
- data/tools/test/themes/preset/symbols/choose_exclusive.svg +5 -0
- data/tools/test/themes/preset/symbols/choose_inclusive.svg +4 -0
- data/tools/test/themes/preset/symbols/closed_loop.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_cancel.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_control.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_measuring.svg +6 -0
- data/tools/test/themes/preset/symbols/complex.svg +8 -0
- data/tools/test/themes/preset/symbols/critical.svg +4 -0
- data/tools/test/themes/preset/symbols/end.svg +3 -0
- data/tools/test/themes/preset/symbols/escape.svg +5 -0
- data/tools/test/themes/preset/symbols/event_end.svg +3 -0
- data/tools/test/themes/preset/symbols/loop.svg +5 -0
- data/tools/test/themes/preset/symbols/manipulate.svg +4 -0
- data/tools/test/themes/preset/symbols/otherwise.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel_branch.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel_branch_compact.svg +4 -0
- data/tools/test/themes/preset/symbols/parallel_branch_event.svg +14 -0
- data/tools/test/themes/preset/symbols/parallel_branch_normal.svg +5 -0
- data/tools/test/themes/preset/symbols/scripts.svg +4 -0
- data/tools/test/themes/preset/symbols/start.svg +3 -0
- data/tools/test/themes/preset/symbols/stop.svg +5 -0
- data/tools/test/themes/preset/symbols/terminate.svg +4 -0
- data/tools/test/themes/preset/theme.js +1287 -0
- data/tools/test/track.html +142 -0
- metadata +222 -3
@@ -0,0 +1,66 @@
|
|
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 1</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
|
+
function get_free_id() {
|
36
|
+
return 'a1';
|
37
|
+
}
|
38
|
+
|
39
|
+
$("body").ready(function(){
|
40
|
+
$.ajax({
|
41
|
+
type: "GET",
|
42
|
+
url: "rngtest1.rng",
|
43
|
+
dataType: 'xml',
|
44
|
+
success: function(rng){
|
45
|
+
$.ajax({
|
46
|
+
type: "GET",
|
47
|
+
url: "rngtest1.xml",
|
48
|
+
dataType: 'xml',
|
49
|
+
success: function(data){
|
50
|
+
var rngui = new RelaxNGui(rng,$('#show'));
|
51
|
+
rngui.content(data);
|
52
|
+
$('#saveall').on('click',function(){
|
53
|
+
console.log($(rngui.save()).serializePrettyXML());
|
54
|
+
});
|
55
|
+
}
|
56
|
+
});
|
57
|
+
}
|
58
|
+
});
|
59
|
+
});
|
60
|
+
</script>
|
61
|
+
</head>
|
62
|
+
<body>
|
63
|
+
<div id="show"></div>
|
64
|
+
<button id='saveall'>save it all to console</button>
|
65
|
+
</body>
|
66
|
+
</html>
|
@@ -0,0 +1,147 @@
|
|
1
|
+
<element rngui:version="1.2" ns="http://cpee.org" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
|
3
|
+
<data type="string" rngui:readonly="true"/>
|
4
|
+
</attribute>
|
5
|
+
<attribute name="endpoint" rngui:label="Endpoint">
|
6
|
+
<data type="string"/>
|
7
|
+
</attribute>
|
8
|
+
<element name='parameters' rngui:header="Properties">
|
9
|
+
<element name="label" rngui:label="Label">
|
10
|
+
<data type="string" rngui:label="Short description of the task"/>
|
11
|
+
</element>
|
12
|
+
<element name="method" rngui:label="Method">
|
13
|
+
<choice>
|
14
|
+
<value>:post</value>
|
15
|
+
<value>:get</value>
|
16
|
+
<value>:put</value>
|
17
|
+
<value>:delete</value>
|
18
|
+
</choice>
|
19
|
+
</element>
|
20
|
+
<element name="arguments" rngui:header="Arguments">
|
21
|
+
<zeroOrMore rngui:label="Create Argument Pair">
|
22
|
+
<element rngui:label='Name'>
|
23
|
+
<anyName/>
|
24
|
+
<data type="string" rngui:label="Value"/>
|
25
|
+
</element>
|
26
|
+
</zeroOrMore>
|
27
|
+
</element>
|
28
|
+
<element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
|
29
|
+
<element name="sensors" rngui:header="Sensors" rngui:fold="closed">
|
30
|
+
<zeroOrMore rngui:label="Add Sensor">
|
31
|
+
<element name="sensor">
|
32
|
+
<element name="name" rngui:label="Label">
|
33
|
+
<data type="string" rngui:label="Label"/>
|
34
|
+
</element>
|
35
|
+
<element name="extractor_url" rngui:label="Extractor Url">
|
36
|
+
<data type="string" rngui:label="Service Url"/>
|
37
|
+
</element>
|
38
|
+
<element name="extractor_arg" rngui:label="Extractor Argument">
|
39
|
+
<data type="string" rngui:label="Value / Json"/>
|
40
|
+
</element>
|
41
|
+
<element name="visualizer_url" rngui:label="Visualizer Url">
|
42
|
+
<data type="string" rngui:label="Service Url"/>
|
43
|
+
</element>
|
44
|
+
<element name="visualizer_params" rngui:header="Visualizer Arguments">
|
45
|
+
<zeroOrMore rngui:label="Create Visualizer Argument Pairs">
|
46
|
+
<element rngui:label='Name'>
|
47
|
+
<anyName/>
|
48
|
+
<data type="string" rngui:label="Value / Json"/>
|
49
|
+
</element>
|
50
|
+
</zeroOrMore>
|
51
|
+
</element>
|
52
|
+
</element>
|
53
|
+
</zeroOrMore>
|
54
|
+
</element>
|
55
|
+
<element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
|
56
|
+
<zeroOrMore rngui:label="Add Aggregator">
|
57
|
+
<element name="aggregator">
|
58
|
+
<element name="name" rngui:label="Label">
|
59
|
+
<data type="string" rngui:label="Label"/>
|
60
|
+
</element>
|
61
|
+
<element name="aggregator_url" rngui:label="Aggregator Url">
|
62
|
+
<data type="string" rngui:label="Service Url"/>
|
63
|
+
</element>
|
64
|
+
<element name="aggregator_arg" rngui:label="Aggregator Argument">
|
65
|
+
<data type="string" rngui:label="Value / Json"/>
|
66
|
+
</element>
|
67
|
+
</element>
|
68
|
+
</zeroOrMore>
|
69
|
+
</element>
|
70
|
+
<element name="_cost" rngui:header="Costs" rngui:fold="closed">
|
71
|
+
<zeroOrMore rngui:label="Create Cost Factor">
|
72
|
+
<element name='_cost_factor'>
|
73
|
+
<element name="name" rngui:label="Label">
|
74
|
+
<data type="string" rngui:label="Label"/>
|
75
|
+
</element>
|
76
|
+
<element name="target" rngui:label="Target Value">
|
77
|
+
<data type="string" rngui:label="Value"/>
|
78
|
+
</element>
|
79
|
+
<element name="vfunc_url" rngui:label="Violation Function Url">
|
80
|
+
<data type="string" rngui:label="Service Url"/>
|
81
|
+
</element>
|
82
|
+
<element name="vfunc_arg" rngui:label="Violation Function Argument">
|
83
|
+
<data type="string" rngui:label="Service Url"/>
|
84
|
+
</element>
|
85
|
+
<element name="vcost" rngui:label="Violation Cost">
|
86
|
+
<data type="string" rngui:label="Value"/>
|
87
|
+
</element>
|
88
|
+
</element>
|
89
|
+
</zeroOrMore>
|
90
|
+
</element>
|
91
|
+
</element>
|
92
|
+
</element>
|
93
|
+
<element name="code" rngui:header="Implementation">
|
94
|
+
<element name="prepare" rngui:header="Prepare" rngui:label="Code" rngui:fold='closed_conditional'>
|
95
|
+
<text rngui:label='Script that is executed, before a service call'/>
|
96
|
+
</element>
|
97
|
+
<element name="finalize" rngui:header="Finalize" rngui:label="Code" rngui:fold='closed_conditional'>
|
98
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
99
|
+
<data type="string" rngui:readonly="true"/>
|
100
|
+
</attribute>
|
101
|
+
<text rngui:label='Script that is executed, when a service returns data'/>
|
102
|
+
</element>
|
103
|
+
<element name="update" rngui:header="Update" rngui:label="Code" rngui:fold='closed_conditional'>
|
104
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
105
|
+
<data type="string" rngui:readonly="true"/>
|
106
|
+
</attribute>
|
107
|
+
<text rngui:label='Script that is executed, when a service sends intermediate data'/>
|
108
|
+
</element>
|
109
|
+
<element name="rescue" rngui:header="Rescue" rngui:label="Code" rngui:fold='closed_conditional'>
|
110
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
111
|
+
<data type="string" rngui:readonly="true"/>
|
112
|
+
</attribute>
|
113
|
+
<text rngui:label='Script that is executed, if a service call fails'/>
|
114
|
+
</element>
|
115
|
+
</element>
|
116
|
+
<element name="annotations" rngui:header="Annotations">
|
117
|
+
<element name="_timing" rngui:header="Timing" rngui:fold="closed">
|
118
|
+
<element name="_timing_min" rngui:label='Min in min'>
|
119
|
+
<data type='float' rngui:label='Minutes'/>
|
120
|
+
</element>
|
121
|
+
<element name="_timing_max" rngui:label='Max in min'>
|
122
|
+
<data type='float' rngui:label='Minutes'/>
|
123
|
+
</element>
|
124
|
+
<element name="_timing_avg" rngui:label='Avg in min'>
|
125
|
+
<data type='float' rngui:label='Minutes'/>
|
126
|
+
</element>
|
127
|
+
</element>
|
128
|
+
<element name="_notes" rngui:header="Notes" rngui:fold="closed">
|
129
|
+
<element name="_notes_general" rngui:label='General'>
|
130
|
+
<text rngui:wrap='true' rngui:label='Notes'/>
|
131
|
+
</element>
|
132
|
+
<element name="_notes_output" rngui:label='Output'>
|
133
|
+
<text rngui:wrap='true' rngui:label='Notes'/>
|
134
|
+
</element>
|
135
|
+
<element name="_attachments">
|
136
|
+
<zeroOrMore rngui:label="Create Attachment">
|
137
|
+
<element name='_attachment' rngui:label='Attachment'>
|
138
|
+
<attribute name="label" rngui:label="Note">
|
139
|
+
<data type="string"/>
|
140
|
+
</attribute>
|
141
|
+
<data type="string" rngui:label="Url"/>
|
142
|
+
</element>
|
143
|
+
</zeroOrMore>
|
144
|
+
</element>
|
145
|
+
</element>
|
146
|
+
</element>
|
147
|
+
</element>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<call id="a1" endpoint="timeout" xmlns="http://cpee.org">
|
2
|
+
<parameters>
|
3
|
+
<label></label>
|
4
|
+
<method>:post</method>
|
5
|
+
<arguments>
|
6
|
+
<timeout>2</timeout>
|
7
|
+
</arguments>
|
8
|
+
</parameters>
|
9
|
+
<code>
|
10
|
+
<finalize output="result"> data.x += "a1,"</finalize>
|
11
|
+
<update output="result"> data.x += "a1,"</update>
|
12
|
+
</code>
|
13
|
+
</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 2</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: "rngtest2.rng",
|
39
|
+
success: function(rng){
|
40
|
+
$.ajax({
|
41
|
+
type: "GET",
|
42
|
+
url: "rngtest2.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,6 @@
|
|
1
|
+
<element rngui:version="1.2" name="manipulate" rngui:label="Script" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<attribute name="id" rngui:label="ID">
|
3
|
+
<data type="string" rngui:readonly="true" rngui:default="javascript:generate_id()"/>
|
4
|
+
</attribute>
|
5
|
+
<text rngui:label='Script that is executed'/>
|
6
|
+
</element>
|
@@ -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 3</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: "rngtest3.rng",
|
39
|
+
success: function(rng){
|
40
|
+
$.ajax({
|
41
|
+
type: "GET",
|
42
|
+
url: "rngtest3.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,23 @@
|
|
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="arguments" rngui:header="Arguments">
|
3
|
+
<zeroOrMore rngui:label="Create Argument Pair">
|
4
|
+
<element rngui:label='Name'>
|
5
|
+
<anyName/>
|
6
|
+
<data type="string" rngui:label="Value"/>
|
7
|
+
</element>
|
8
|
+
</zeroOrMore>
|
9
|
+
</element>
|
10
|
+
<element name="_attachments">
|
11
|
+
<zeroOrMore rngui:label="Create Attachment">
|
12
|
+
<element name='_attachment' rngui:label='Attachment'>
|
13
|
+
<attribute name="label" rngui:label="Note">
|
14
|
+
<data type="string"/>
|
15
|
+
</attribute>
|
16
|
+
<attribute name="xxx" rngui:label="XXX">
|
17
|
+
<data type="string"/>
|
18
|
+
</attribute>
|
19
|
+
<data type="string" rngui:label="Url"/>
|
20
|
+
</element>
|
21
|
+
</zeroOrMore>
|
22
|
+
</element>
|
23
|
+
</element>
|
@@ -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 4</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: "rngtest4.rng",
|
39
|
+
success: function(rng){
|
40
|
+
$.ajax({
|
41
|
+
type: "GET",
|
42
|
+
url: "rngtest4.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>
|