cpee 1.3.175 → 1.3.176
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.
- checksums.yaml +4 -4
- data/cockpit/index.html +1 -1
- data/cockpit/js/instance.js +40 -37
- data/cockpit/lib/relaxngui.js +4 -0
- data/cockpit/lib/ui.css +0 -5
- data/cockpit/lib/ui.js +6 -2
- data/cockpit/rngtest.html +74 -0
- data/cockpit/rngtest.rng +60 -0
- data/cockpit/rngtest.xml +15 -0
- data/cockpit/testsets/Concurrent.xml +2 -2
- data/cockpit/testsets/Coopis Testset.xml +4 -4
- data/cockpit/testsets/Linear.xml +3 -3
- data/cockpit/testsets/Mangler 1.xml +1 -1
- data/cockpit/testsets/Mangler 2.xml +8 -8
- data/cockpit/testsets/SOPROMO Test Sonification.xml +10 -10
- data/cockpit/testsets/Syncing P34 1.xml +4 -4
- data/cockpit/testsets/Syncing P34 2.xml +4 -4
- data/cockpit/testsets/Syncing P34 3.xml +4 -4
- data/cockpit/testsets/Syncing P34.xml +4 -4
- data/cockpit/testsets/TEST - Wrong Positions.xml +20 -20
- data/cockpit/testsets/Update.xml +11 -0
- data/cockpit/testsets/Worklist Test.xml +39 -0
- data/cockpit/testsets/testsets.xml +4 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/callback.rb +6 -2
- data/lib/cpee/controller.rb +8 -8
- data/lib/cpee/handler_notifications.rb +4 -4
- data/lib/cpee/handler_properties.rb +5 -5
- data/lib/cpee/implementation.rb +1 -1
- data/server/handlerwrappers/default.rb +30 -25
- data/server/handlerwrappers/soap.rb +13 -13
- data/server/instances/1/properties.xml +69 -101
- data/server/instances/10/properties.xml +106 -70
- data/server/instances/11/properties.xml +133 -73
- data/server/instances/12/properties.xml +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +1 -0
- data/server/instances/{13/notifications/4ff0cde5161c44dae49b263cbc12eaf8 → 14/notifications/5bcce90b170116a77fb25aea4e133acc}/subscription.xml +0 -0
- data/server/instances/14/properties.xml +160 -160
- data/server/instances/15/properties.xml +28 -314
- data/server/instances/16/properties.xml +28 -249
- data/server/instances/17/properties.xml +28 -130
- data/server/instances/18/properties.xml +3 -2
- data/server/instances/19/properties.xml +0 -1
- data/server/instances/2/properties.xml +191 -44
- data/server/instances/20/properties.xml +46 -0
- data/server/instances/21/properties.xml +46 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +1 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +1 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +23 -0
- data/server/instances/22/properties.xml +112 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +1 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +1 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +23 -0
- data/server/instances/23/properties.xml +148 -0
- data/server/instances/24/properties.xml +66 -0
- data/server/instances/25/properties.xml +46 -0
- data/server/instances/26/properties.xml +112 -0
- data/server/instances/27/properties.xml +212 -0
- data/server/instances/28/properties.xml +363 -0
- data/server/instances/29/properties.xml +148 -0
- data/server/instances/3/properties.xml +70 -44
- data/server/instances/30/properties.xml +150 -0
- data/server/instances/31/properties.xml +52 -0
- data/server/instances/32/properties.xml +52 -0
- data/server/instances/33/properties.xml +60 -0
- data/server/instances/34/properties.xml +148 -0
- data/server/instances/35/properties.xml +148 -0
- data/server/instances/36/properties.xml +150 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/consumer-secret +1 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/producer-secret +1 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/subscription.xml +34 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +1 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +1 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +33 -0
- data/server/instances/37/properties.xml +57 -0
- data/server/instances/4/properties.xml +28 -68
- data/server/instances/5/properties.xml +10 -70
- data/server/instances/6/properties.xml +175 -55
- data/server/instances/7/properties.xml +118 -52
- data/server/instances/8/properties.xml +112 -50
- data/server/instances/9/properties.xml +115 -47
- data/server/resources/topics.xml +15 -15
- data/server/resources/transformation_dslx.xsl +43 -5
- data/test/cb.rb +9 -0
- metadata +44 -9
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +0 -6
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +0 -1
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de1fddafb011348e2cf5975eaa7ed99e84557fe1
|
|
4
|
+
data.tar.gz: ff8a410e8ea13badaec15f85fb5fa5e8ef8edf3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14341e5d08dfbdd33aafcfd60d858011a7c849bbafcee32d3b4e74b71b28e62948822911ec2236bbaf0fbca8192b85da6a104c3e4ab2cb70e6990a22e4e07a37
|
|
7
|
+
data.tar.gz: aa0691f830b06cc49d31399e9a8bd19cac8d11e61e2171dbc80edaf82484095b86f6427f5c3f1a2afab24c93a31aa2c79dd0805b27f87230e801d763cb31a9a7
|
data/cockpit/index.html
CHANGED
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
<td class="tab" id="tabnew" ><h1>New</h1></td>
|
|
174
174
|
<td class="tab inactive hidden" id="tabinstance" ><h1>Instance</h1></td>
|
|
175
175
|
<td class="tab inactive hidden" id="tabexecution" ><h1>Execution</h1></td>
|
|
176
|
-
<td class="tabbehind"><input name="current-instance" type="text" value="" readonly='readonly' style='display:none'/><a id='current-instance'></a></td>
|
|
176
|
+
<td class="tabbehind"><input name="current-instance" type="text" value="" readonly='readonly' style='display:none'/><a id='current-instance'></a><a id='current-instance-properties'>P</a>|<a id='current-instance-subscriptions'>S</a>|<a id='current-instance-callbacks'>C</a></td>
|
|
177
177
|
</tr>
|
|
178
178
|
<tr class="border hidden"><td colspan="5"></td></tr>
|
|
179
179
|
</table>
|
data/cockpit/js/instance.js
CHANGED
|
@@ -10,43 +10,43 @@ var save = {};
|
|
|
10
10
|
save['dataelements'] = undefined;
|
|
11
11
|
save['details'] = undefined;
|
|
12
12
|
var node_state = {};
|
|
13
|
-
var sub_more = 'topic' + '=' + '
|
|
14
|
-
'events' + '=' + '
|
|
15
|
-
'topic' + '=' + '
|
|
13
|
+
var sub_more = 'topic' + '=' + 'activity' + '&' +// {{{
|
|
14
|
+
'events' + '=' + 'calling,status,manipulating,failed,done' + '&' +
|
|
15
|
+
'topic' + '=' + 'activity' + '&' +
|
|
16
16
|
'votes' + '=' + 'syncing_after' + '&' +
|
|
17
|
-
'topic' + '=' + '
|
|
17
|
+
'topic' + '=' + 'description' + '&' +
|
|
18
18
|
'events' + '=' + 'change,error' + '&' +
|
|
19
|
-
'topic' + '=' + '
|
|
19
|
+
'topic' + '=' + 'position' + '&' +
|
|
20
20
|
'events' + '=' + 'change' + '&' +
|
|
21
|
-
'topic' + '=' + '
|
|
21
|
+
'topic' + '=' + 'state' + '&' +
|
|
22
22
|
'events' + '=' + 'change' + '&' +
|
|
23
|
-
'topic' + '=' + '
|
|
23
|
+
'topic' + '=' + 'dataelements' + '&' +
|
|
24
24
|
'events' + '=' + 'change' + '&' +
|
|
25
|
-
'topic' + '=' + '
|
|
25
|
+
'topic' + '=' + 'endpoints' + '&' +
|
|
26
26
|
'events' + '=' + 'change' + '&' +
|
|
27
|
-
'topic' + '=' + '
|
|
27
|
+
'topic' + '=' + 'transformation' + '&' +
|
|
28
28
|
'events' + '=' + 'change' + '&' +
|
|
29
|
-
'topic' + '=' + '
|
|
29
|
+
'topic' + '=' + 'handlerwrapper' + '&' +
|
|
30
30
|
'events' + '=' + 'result' + '&' +
|
|
31
|
-
'topic' + '=' + '
|
|
31
|
+
'topic' + '=' + 'handlers' + '&' +
|
|
32
32
|
'events' + '=' + 'change';// }}}
|
|
33
|
-
var sub_less = 'topic' + '=' + '
|
|
34
|
-
'events' + '=' + '
|
|
35
|
-
'topic' + '=' + '
|
|
33
|
+
var sub_less = 'topic' + '=' + 'activity' + '&' +// {{{
|
|
34
|
+
'events' + '=' + 'calling,status,manipulating,failed,done' + '&' +
|
|
35
|
+
'topic' + '=' + 'position' + '&' +
|
|
36
36
|
'events' + '=' + 'change' + '&' +
|
|
37
|
-
'topic' + '=' + '
|
|
37
|
+
'topic' + '=' + 'description' + '&' +
|
|
38
38
|
'events' + '=' + 'change,error' + '&' +
|
|
39
|
-
'topic' + '=' + '
|
|
39
|
+
'topic' + '=' + 'state' + '&' +
|
|
40
40
|
'events' + '=' + 'change' + '&' +
|
|
41
|
-
'topic' + '=' + '
|
|
41
|
+
'topic' + '=' + 'dataelements' + '&' +
|
|
42
42
|
'events' + '=' + 'change' + '&' +
|
|
43
|
-
'topic' + '=' + '
|
|
43
|
+
'topic' + '=' + 'endpoints' + '&' +
|
|
44
44
|
'events' + '=' + 'change' + '&' +
|
|
45
|
-
'topic' + '=' + '
|
|
45
|
+
'topic' + '=' + 'transformation' + '&' +
|
|
46
46
|
'events' + '=' + 'change' + '&' +
|
|
47
|
-
'topic' + '=' + '
|
|
47
|
+
'topic' + '=' + 'handlerwrapper' + '&' +
|
|
48
48
|
'events' + '=' + 'result' + '&' +
|
|
49
|
-
'topic' + '=' + '
|
|
49
|
+
'topic' + '=' + 'handlers' + '&' +
|
|
50
50
|
'events' + '=' + 'change';// }}}
|
|
51
51
|
|
|
52
52
|
$(document).ready(function() {// {{{
|
|
@@ -60,8 +60,8 @@ $(document).ready(function() {// {{{
|
|
|
60
60
|
$("button[name=savetestset]").click(function(){ save_testset(); });
|
|
61
61
|
$("button[name=savesvg]").click(function(){ save_svg(); });
|
|
62
62
|
$("input[name=votecontinue]").click(check_subscription);
|
|
63
|
-
$("input[name=testsetfile]").change(
|
|
64
|
-
$("input[name=modelfile]").change(
|
|
63
|
+
$("input[name=testsetfile]").change(load_testsetfile_after);
|
|
64
|
+
$("input[name=modelfile]").change(load_modelfile_after);
|
|
65
65
|
|
|
66
66
|
$.ajax({
|
|
67
67
|
url: "testsets/testsets.xml",
|
|
@@ -173,6 +173,9 @@ function monitor_instance(load) {// {{{
|
|
|
173
173
|
$("input[name=current-instance]").val(url);
|
|
174
174
|
$("#current-instance").text(url);
|
|
175
175
|
$("#current-instance").attr('href',url);
|
|
176
|
+
$("#current-instance-properties").attr('href',url + 'properties/');
|
|
177
|
+
$("#current-instance-subscriptions").attr('href',url + 'subscriptions/');
|
|
178
|
+
$("#current-instance-callbacks").attr('href',url + 'callbacks/');
|
|
176
179
|
history.replaceState({}, '', '?monitor='+url);
|
|
177
180
|
|
|
178
181
|
// Change url to return to current instance when reloading (because new subscription is made)
|
|
@@ -201,25 +204,25 @@ function monitor_instance(load) {// {{{
|
|
|
201
204
|
data = $.parseXML(e.data);
|
|
202
205
|
if ($('event > topic',data).length > 0) {
|
|
203
206
|
switch($('event > topic',data).text()) {
|
|
204
|
-
case '
|
|
207
|
+
case 'dataelements':
|
|
205
208
|
monitor_instance_dataelements();
|
|
206
209
|
break;
|
|
207
|
-
case '
|
|
210
|
+
case 'description':
|
|
208
211
|
monitor_instance_dsl();
|
|
209
212
|
break;
|
|
210
|
-
case '
|
|
213
|
+
case 'endpoints':
|
|
211
214
|
monitor_instance_endpoints();
|
|
212
215
|
break;
|
|
213
|
-
case '
|
|
216
|
+
case 'state':
|
|
214
217
|
monitor_instance_state_change(JSON.parse($('event > notification',data).text()).state);
|
|
215
218
|
break;
|
|
216
|
-
case '
|
|
219
|
+
case 'position':
|
|
217
220
|
monitor_instance_pos_change($('event > notification',data).text());
|
|
218
221
|
break;
|
|
219
|
-
case '
|
|
222
|
+
case 'transformation':
|
|
220
223
|
monitor_instance_transformation();
|
|
221
224
|
break;
|
|
222
|
-
case '
|
|
225
|
+
case 'activity':
|
|
223
226
|
monitor_instance_running($('event > notification',data).text(),$('event > event',data).text());
|
|
224
227
|
break;
|
|
225
228
|
}
|
|
@@ -392,9 +395,9 @@ function monitor_instance_pos() {// {{{
|
|
|
392
395
|
function monitor_instance_running(notification,event) {// {{{
|
|
393
396
|
if (save['state'] == "stopping") return;
|
|
394
397
|
var parts = JSON.parse(notification);
|
|
395
|
-
if (event == "
|
|
398
|
+
if (event == "calling")
|
|
396
399
|
format_visual_add(parts.activity,"active")
|
|
397
|
-
if (event == "
|
|
400
|
+
if (event == "done")
|
|
398
401
|
format_visual_remove(parts.activity,"active")
|
|
399
402
|
} // }}}
|
|
400
403
|
function monitor_instance_state_change(notification) { //{{{
|
|
@@ -539,11 +542,10 @@ function save_testset() {// {{{
|
|
|
539
542
|
type: "GET",
|
|
540
543
|
url: base + "/properties/values/attributes/",
|
|
541
544
|
success: function(res){
|
|
545
|
+
var name = $("value > info",res).text();
|
|
542
546
|
var pars = $X('<attributes/>');
|
|
543
|
-
pars.append($(res.documentElement));
|
|
547
|
+
pars.append($(res.documentElement).children());
|
|
544
548
|
testset.append(pars);
|
|
545
|
-
var name = $("values > info",res);
|
|
546
|
-
console.log(res);
|
|
547
549
|
$('#savetestset').attr('download',name + '.xml');
|
|
548
550
|
$('#savetestset').attr('href','data:application/xml;charset=utf-8;base64,' + window.btoa(testset.serializeXML()));
|
|
549
551
|
document.getElementById('savetestset').click();
|
|
@@ -565,7 +567,7 @@ function save_testset() {// {{{
|
|
|
565
567
|
},
|
|
566
568
|
error: report_failure
|
|
567
569
|
});
|
|
568
|
-
}// }}}
|
|
570
|
+
}// }}}
|
|
569
571
|
function save_svg() {// {{{
|
|
570
572
|
var base = $("input[name=current-instance]").val();
|
|
571
573
|
var params = { mimetype: 'image/svg+xml' };
|
|
@@ -580,7 +582,7 @@ function save_svg() {// {{{
|
|
|
580
582
|
type: "GET",
|
|
581
583
|
url: base + "/properties/values/attributes/info/",
|
|
582
584
|
success: function(res){
|
|
583
|
-
var name = res;
|
|
585
|
+
var name = $(res.documentElement).text();
|
|
584
586
|
|
|
585
587
|
$('#savesvg').attr('download',name + '.svg');
|
|
586
588
|
$('#savesvg').attr('href','data:application/xml;charset=utf-8;base64,' + window.btoa(gc.serializeXML()));
|
|
@@ -651,6 +653,7 @@ function set_testset(testset) {// {{{
|
|
|
651
653
|
|
|
652
654
|
function load_testsetfile_after() { //{{{
|
|
653
655
|
if (running) return;
|
|
656
|
+
console.log('rrrr');
|
|
654
657
|
running = true;
|
|
655
658
|
if (typeof window.FileReader !== 'function') {
|
|
656
659
|
alert('FileReader not yet supportet');
|
data/cockpit/lib/ui.css
CHANGED
|
@@ -173,11 +173,6 @@ div.tabbed .tabbelow {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
div.tabbed.rest .tabbelow {
|
|
176
|
-
/* to correctly set the height when resizing with changing height with $.height() -> include padding */
|
|
177
|
-
-moz-box-sizing: border-box;
|
|
178
|
-
-webkit-box-sizing: border-box;
|
|
179
|
-
box-sizing: border-box;
|
|
180
|
-
|
|
181
176
|
padding: 1em;
|
|
182
177
|
margin: 0;
|
|
183
178
|
border-radius: 0;
|
data/cockpit/lib/ui.js
CHANGED
|
@@ -48,8 +48,12 @@ function ui_toggle_vis_tab(moi) {// {{{
|
|
|
48
48
|
function ui_rest_resize() {
|
|
49
49
|
if ($('div.tabbed.rest .tabbar')) {
|
|
50
50
|
var theight = $(window).height() - $('div.tabbed.rest .tabbar').offset().top - $('div.tabbed.rest .tabbar').height();
|
|
51
|
-
$('div.tabbed.rest .tabbelow').
|
|
52
|
-
|
|
51
|
+
$('div.tabbed.rest .tabbelow').each(function(key,ele){
|
|
52
|
+
$(ele).height(theight - parseInt($(ele).css('padding-top')) - parseInt($(ele).css('padding-bottom')) );
|
|
53
|
+
});
|
|
54
|
+
$('div.tabbed.rest .tabbelow .column').each(function(key,ele){
|
|
55
|
+
$(ele).height(theight - parseInt($(ele).css('padding-top')) - parseInt($(ele).css('padding-bottom')) );
|
|
56
|
+
});
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
<!DOCTYPE html>
|
|
18
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
19
|
+
<head>
|
|
20
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
21
|
+
<title>CPEE Cockpit</title>
|
|
22
|
+
|
|
23
|
+
<!-- libs, do not modify -->
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" src="lib/jquery.min.js"></script>
|
|
26
|
+
<script type="text/javascript" src="lib/jquery.browser.js"></script>
|
|
27
|
+
<script type="text/javascript" src="lib/jquery.svg.min.js"></script>
|
|
28
|
+
<script type="text/javascript" src="lib/jquery.svgdom.min.js"></script>
|
|
29
|
+
<script type="text/javascript" src="lib/jquery-ui.custom.min.js"></script>
|
|
30
|
+
<script type="text/javascript" src="lib/util.js"></script>
|
|
31
|
+
<script type="text/javascript" src="lib/printf.js"></script>
|
|
32
|
+
<script type="text/javascript" src="lib/strftime.min.js"></script>
|
|
33
|
+
<script type="text/javascript" src="lib/parsequery.js"></script>
|
|
34
|
+
<script type="text/javascript" src="lib/underscore.min.js"></script>
|
|
35
|
+
<script type="text/javascript" src="lib/jquery.caret.min.js"></script>
|
|
36
|
+
<script type="text/javascript" src="lib/jquery.cookie.js"></script>
|
|
37
|
+
<script type="text/javascript" src="lib/jquery.redraw.js"></script>
|
|
38
|
+
|
|
39
|
+
<script type="text/javascript" src="lib/custommenu.js"></script>
|
|
40
|
+
<script type="text/javascript" src="lib/wfadaptor.js"></script>
|
|
41
|
+
<script type="text/javascript" src="lib/ui.js"></script>
|
|
42
|
+
|
|
43
|
+
<link rel="stylesheet" href="lib/wfadaptor.css" type="text/css"/>
|
|
44
|
+
<link rel="stylesheet" href="lib/custommenu.css" type="text/css"/>
|
|
45
|
+
<link rel="stylesheet" href="lib/ui.css" type="text/css"/>
|
|
46
|
+
|
|
47
|
+
<script type="text/javascript" src="lib/relaxngui.js"></script>
|
|
48
|
+
<!-- custom stuff, play arround -->
|
|
49
|
+
|
|
50
|
+
<script type="text/javascript" src="js/ui.js"></script>
|
|
51
|
+
<script type="text/javascript" src="js/instance.js"></script>
|
|
52
|
+
<script type="text/javascript" src="js/details.js"></script>
|
|
53
|
+
<script type="text/javascript" src="js/parameters.js"></script>
|
|
54
|
+
<script type="text/javascript" src="js/wfadaptor.cpee.js"></script>
|
|
55
|
+
<link rel="stylesheet" href="css/ui.css" type="text/css"/>
|
|
56
|
+
<link rel="stylesheet" href="css/ui.css" type="text/css"/>
|
|
57
|
+
<script type="text/javascript">
|
|
58
|
+
$("body").ready(function(){
|
|
59
|
+
$.ajax({
|
|
60
|
+
type: "GET",
|
|
61
|
+
url: "rngtest.rng",
|
|
62
|
+
success: function(res){
|
|
63
|
+
console.log(res);
|
|
64
|
+
new RelaxNGui($('#show'),res);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
</script>
|
|
69
|
+
</head>
|
|
70
|
+
<body data-defaultport="9298">
|
|
71
|
+
<div id="show">
|
|
72
|
+
</div>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|
data/cockpit/rngtest.rng
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<element rngui:version="1.2" name="data" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
|
2
|
+
<rngui:ui/>
|
|
3
|
+
<element name="type">
|
|
4
|
+
<rngui:ui>
|
|
5
|
+
<rngui:readonly/>
|
|
6
|
+
<rngui:label>Type</rngui:label>
|
|
7
|
+
</rngui:ui>
|
|
8
|
+
<data type="string"/>
|
|
9
|
+
</element>
|
|
10
|
+
<element name="position">
|
|
11
|
+
<rngui:ui>
|
|
12
|
+
<rngui:readonly/>
|
|
13
|
+
<rngui:label>ID</rngui:label>
|
|
14
|
+
</rngui:ui>
|
|
15
|
+
<data type="string"/>
|
|
16
|
+
</element>
|
|
17
|
+
<element name="endpoint">
|
|
18
|
+
<rngui:ui>
|
|
19
|
+
<rngui:label>Endpoint</rngui:label>
|
|
20
|
+
</rngui:ui>
|
|
21
|
+
<data type="string"/>
|
|
22
|
+
</element>
|
|
23
|
+
<element name="code">
|
|
24
|
+
<rngui:ui>
|
|
25
|
+
<rngui:label>Script</rngui:label>
|
|
26
|
+
</rngui:ui>
|
|
27
|
+
<text/>
|
|
28
|
+
</element>
|
|
29
|
+
<element name='parameters'>
|
|
30
|
+
<rngui:ui/>
|
|
31
|
+
<element name="label">
|
|
32
|
+
<rngui:ui>
|
|
33
|
+
<rngui:label>Label</rngui:label>
|
|
34
|
+
</rngui:ui>
|
|
35
|
+
<data type="string"/>
|
|
36
|
+
</element>
|
|
37
|
+
<element name="method">
|
|
38
|
+
<rngui:ui>
|
|
39
|
+
<rngui:label>Method</rngui:label>
|
|
40
|
+
</rngui:ui>
|
|
41
|
+
<choice>
|
|
42
|
+
<value>:post</value>
|
|
43
|
+
<value>:get</value>
|
|
44
|
+
<value>:put</value>
|
|
45
|
+
<value>:delete</value>
|
|
46
|
+
</choice>
|
|
47
|
+
</element>
|
|
48
|
+
<element name="parameters">
|
|
49
|
+
<zeroOrMore>
|
|
50
|
+
<rngui:ui>
|
|
51
|
+
<rngui:heading>Label</rngui:heading>
|
|
52
|
+
</rngui:ui>
|
|
53
|
+
<element>
|
|
54
|
+
<anyName/>
|
|
55
|
+
<data type="string"/>
|
|
56
|
+
</element>
|
|
57
|
+
</zeroOrMore>
|
|
58
|
+
</element>
|
|
59
|
+
</element>
|
|
60
|
+
</element>
|
data/cockpit/rngtest.xml
ADDED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
<to>"Vienna"</to>
|
|
22
22
|
</parameters>
|
|
23
23
|
</parameters>
|
|
24
|
-
<
|
|
25
|
-
data.costs += result.value('costs').to_f</
|
|
24
|
+
<finalize output="result"> data.hotels << result.value('id')
|
|
25
|
+
data.costs += result.value('costs').to_f</finalize>
|
|
26
26
|
</call>
|
|
27
27
|
</parallel_branch>
|
|
28
28
|
<manipulate id="a3"> data.persons -= 1</manipulate>
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
<persons>data.persons</persons>
|
|
28
28
|
</parameters>
|
|
29
29
|
</parameters>
|
|
30
|
-
<
|
|
30
|
+
<finalize output="result"> data.airline = result.value('id')
|
|
31
31
|
data.costs += result.value('costs').to_f
|
|
32
|
-
status.update 1, 'Hotel'</
|
|
32
|
+
status.update 1, 'Hotel'</finalize>
|
|
33
33
|
</call>
|
|
34
34
|
<parallel>
|
|
35
35
|
<loop pre_test="data.persons > 0">
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
<to>data.to</to>
|
|
42
42
|
</parameters>
|
|
43
43
|
</parameters>
|
|
44
|
-
<
|
|
45
|
-
data.costs += result.value('costs').to_f</
|
|
44
|
+
<finalize output="result"> data.hotels << result.value('id')
|
|
45
|
+
data.costs += result.value('costs').to_f</finalize>
|
|
46
46
|
</call>
|
|
47
47
|
</parallel_branch>
|
|
48
48
|
<manipulate id="a3"> data.persons -= 1</manipulate>
|
data/cockpit/testsets/Linear.xml
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<timeout>2</timeout>
|
|
21
21
|
</parameters>
|
|
22
22
|
</parameters><!--}}}-->
|
|
23
|
-
<
|
|
23
|
+
<finalize output="result"> data.x += "a1,"</finalize>
|
|
24
24
|
</call>
|
|
25
25
|
<call id="a2" endpoint="timeout">
|
|
26
26
|
<parameters><!--{{{-->
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<timeout>4</timeout>
|
|
30
30
|
</parameters>
|
|
31
31
|
</parameters><!--}}}-->
|
|
32
|
-
<
|
|
32
|
+
<finalize output="result"> data.x += "a2,"</finalize>
|
|
33
33
|
</call>
|
|
34
34
|
<call id="a3" endpoint="timeout">
|
|
35
35
|
<parameters><!--{{{-->
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<timeout>4</timeout>
|
|
39
39
|
</parameters>
|
|
40
40
|
</parameters><!--}}}-->
|
|
41
|
-
<
|
|
41
|
+
<finalize output="result"> data.x += "a3,"</finalize>
|
|
42
42
|
</call>
|
|
43
43
|
</description><!--}}}-->
|
|
44
44
|
</description>
|