cpee 2.1.71 → 2.1.73
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 +1 -1
- data/cockpit/js/instance.js +45 -27
- data/cockpit/js/modifiers.js +3 -0
- data/cockpit/templates/ML-pipe-multi.xml +635 -0
- data/cockpit/templates/Track Test Local.xml +19 -13
- data/cockpit/themes/base.js +14 -5
- data/cpee.gemspec +2 -2
- data/lib/cpee/implementation_callbacks.rb +15 -1
- data/lib/cpee/implementation_properties.rb +14 -1
- data/lib/cpee/message.rb +1 -1
- data/server/executionhandlers/eval/controller.rb +11 -1
- data/server/executionhandlers/ruby/controller.rb +1 -1
- data/server/executionhandlers/ruby/execution.rb +0 -1
- data/server/routing/end.pid +1 -1
- data/server/routing/forward-events-00.pid +1 -1
- data/server/routing/forward-votes.pid +1 -1
- data/server/routing/persist.pid +1 -1
- metadata +3 -7
- data/cockpit/templates/Coopis 2010 Eval.xml +0 -192
- data/server/executionhandlers/rust/backend/README.md +0 -17
- data/server/executionhandlers/rust/backend/compile.sh +0 -5
- data/server/executionhandlers/rust/backend/opts.yaml +0 -6
- data/server/executionhandlers/rust/execution.rb +0 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c21127d24cf9f2a171afb51a060e0ebe7670733f57b60ecc726a4680092c6968
|
4
|
+
data.tar.gz: 5c412f66e52ca5e982cb7e1c36c4ee7f3c92287d0d025445d5aa6f0f0a07c0d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77f4006dd5a11a5d7c84723544b9e10b0080c9e71af653914b0f2442d8996300c7612ba7f4f7289117fef5ee48241ed1b15a7d9d784d4c123805afe86934c1fd
|
7
|
+
data.tar.gz: 6ebd11566d148d05ccfdf3c02a0e404f6b76dbdda37d1ffc38b48feefb4b6ab8a7321a8e9c0750a08a371e865fa9290ba1c1a7db99875bc2c5a039adbb610f04
|
data/cockpit/css/wfadaptor.css
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
--wfadaptor-exec-passive: #729fcf;
|
19
19
|
--wfadaptor-exec-active: #ef2929;
|
20
20
|
--wfadaptor-exec-active-text: #cc0000;
|
21
|
-
--wfadaptor-exec-vote: #
|
21
|
+
--wfadaptor-exec-vote: #8de5bcff;
|
22
22
|
--wfadaptor-exec-vote-text: #73d216;
|
23
23
|
--wfadaptor-highlight: #0081c7;
|
24
24
|
--wfadaptor-base: #000000;
|
data/cockpit/js/instance.js
CHANGED
@@ -9,6 +9,9 @@ var subscription_state = 'less';
|
|
9
9
|
var graph_changed = new Event("graph:changed", {"bubbles":true, "cancelable":false});
|
10
10
|
var graph_theme = null;
|
11
11
|
var graph_position = null;
|
12
|
+
var graph_highlight = null;
|
13
|
+
var graph_highlight_tasks = []
|
14
|
+
var graph_highlight_color = null;
|
12
15
|
var model_loaded = new Event("model:loaded", {"bubbles":true, "cancelable":false});
|
13
16
|
var save = {};
|
14
17
|
save['endpoints'] = undefined;
|
@@ -25,7 +28,6 @@ function global_init() {
|
|
25
28
|
save['state']= undefined;
|
26
29
|
save['dsl'] = undefined;
|
27
30
|
save['activity_red_states'] = {}
|
28
|
-
save['activity_blue_states'] = {}
|
29
31
|
save['graph'] = undefined;
|
30
32
|
save['graph_theme'] = undefined;
|
31
33
|
save['graph_adaptor'] = undefined;
|
@@ -128,7 +130,16 @@ function cockpit() { //{{{
|
|
128
130
|
uidash_toggle_vis_tab($('#parameters'));
|
129
131
|
}
|
130
132
|
if (q.theme) { graph_theme = q.theme; }
|
131
|
-
if (q.position) { graph_position = q.position; }
|
133
|
+
if (q.position) { graph_position = q.position == 'false' ? 'false' : 'true'; }
|
134
|
+
if (q.highlight) {
|
135
|
+
graph_highlight = q.highlight.match(/((a\d+,)+)([a-z0-9]{6,8})$/);
|
136
|
+
if (graph_highlight.length > 0) {
|
137
|
+
graph_highlight_color = graph_highlight[3];
|
138
|
+
graph_highlight_tasks = graph_highlight[1].split(',');
|
139
|
+
graph_highlight_tasks.pop();
|
140
|
+
graph_highlight = graph_highlight[0];
|
141
|
+
}
|
142
|
+
}
|
132
143
|
if (q.monitor && q.load) {
|
133
144
|
if (q.load.match(/https?:\/\//)) {
|
134
145
|
$('body').attr('load-testset',q.load);
|
@@ -295,7 +306,7 @@ async function sse() { //{{{
|
|
295
306
|
} else {
|
296
307
|
monitor_instance_values("attributes");
|
297
308
|
}
|
298
|
-
if (save['graph_theme'] != data.content.values.theme) {
|
309
|
+
if (typeof data.content.values.theme !== "undefined" && save['graph_theme'] != data.content.values.theme) {
|
299
310
|
monitor_graph_change(true);
|
300
311
|
}
|
301
312
|
break;
|
@@ -348,6 +359,8 @@ function monitor_instance(cin,rep,load,exec) {// {{{
|
|
348
359
|
$('#parameters ui-content ui-area > button').attr('disabled','disabled');
|
349
360
|
$('#dat_details').empty();
|
350
361
|
|
362
|
+
$('#modifiers > div').remove();
|
363
|
+
|
351
364
|
url = $("body").attr('current-instance');
|
352
365
|
|
353
366
|
$.ajax({
|
@@ -375,7 +388,7 @@ function monitor_instance(cin,rep,load,exec) {// {{{
|
|
375
388
|
$("#current-track").show();
|
376
389
|
$("#current-track").attr('href','track.html?monitor=' + url);
|
377
390
|
var q = $.parseQuerySimple();
|
378
|
-
history.replaceState({}, '', '?' + (graph_position ? "position=" + graph_position + "&" : "") + (graph_theme ? "theme=" + graph_theme + "&" : "") + (q.min || q.min=="" ? "min&" : "") + 'monitor='+url);
|
391
|
+
history.replaceState({}, '', '?' + (graph_position ? "position=" + graph_position + "&" : "") + (graph_highlight ? "highlight=" + graph_highlight + "&" : "") + (graph_theme ? "theme=" + graph_theme + "&" : "") + (q.min || q.min=="" ? "min&" : "") + 'monitor='+url);
|
379
392
|
|
380
393
|
// Change url to return to current instance when reloading (because new subscription is made)
|
381
394
|
$("input[name=votecontinue]").prop( "checked", false );
|
@@ -564,6 +577,18 @@ function adaptor_init(url,theme,dslx) { //{{{
|
|
564
577
|
save['graph_adaptor'] = new WfAdaptor($('body').data('theme-base') + '/' + theme + '/theme.js',function(graphrealization){
|
565
578
|
manifestation.endpoints = save.endpoints_list;
|
566
579
|
graphrealization.draw_labels = function(max,labels,dimensions,striped) {
|
580
|
+
// highlight
|
581
|
+
|
582
|
+
if (graph_highlight) {
|
583
|
+
graph_highlight_tasks.forEach((ele) => {
|
584
|
+
let er = $('g[element-id=' + ele + ']').attr('element-row');
|
585
|
+
styletext = 'svg rect[element-row="'+ er + '"], div.graphlast[element-row="'+ er + '"] { fill: #' + graph_highlight_color + ' !important; background-color: #' + graph_highlight_color + ' !important; } ';
|
586
|
+
$('head').append('<style type="text/css">' + styletext + '</style>');
|
587
|
+
scroll_into_view(ele);
|
588
|
+
})
|
589
|
+
}
|
590
|
+
|
591
|
+
// labels
|
567
592
|
$('#graphcanvas').css('grid-row', '1/span ' + (max.row + 2));
|
568
593
|
if (striped == true) {
|
569
594
|
if (!$('#graphgrid').hasClass('striped')) {
|
@@ -787,6 +812,7 @@ function adaptor_init(url,theme,dslx) { //{{{
|
|
787
812
|
}
|
788
813
|
};
|
789
814
|
adaptor_update();
|
815
|
+
|
790
816
|
monitor_instance_pos();
|
791
817
|
$('#dat_details').empty();
|
792
818
|
|
@@ -862,8 +888,8 @@ function monitor_instance_state() {// {{{
|
|
862
888
|
}// }}}
|
863
889
|
|
864
890
|
function monitor_instance_pos() {// {{{
|
865
|
-
if (graph_position) {
|
866
|
-
save['instance_pos'] =
|
891
|
+
if (graph_position && graph_position == 'false') {
|
892
|
+
save['instance_pos'] = [];
|
867
893
|
format_visual_clear();
|
868
894
|
format_instance_pos();
|
869
895
|
return;
|
@@ -896,34 +922,24 @@ function monitor_instance_running(content,event) {// {{{
|
|
896
922
|
format_visual_remove(content.activity,"active");
|
897
923
|
}
|
898
924
|
save['activity_red_states'][content['activity-uuid']] = true
|
899
|
-
setTimeout(() => {delete save['activity_red_states'][content['activity-uuid']]},
|
925
|
+
setTimeout(() => {delete save['activity_red_states'][content['activity-uuid']]},1);
|
900
926
|
}
|
901
927
|
} // }}}
|
902
928
|
function monitor_instance_pos_change(content) {// {{{
|
903
|
-
if (graph_position) { return }
|
929
|
+
if (graph_position && graph_position == 'false') { return; }
|
904
930
|
if (content['at']) {
|
905
931
|
$.each(content['at'],function(a,b){
|
906
|
-
|
907
|
-
save['activity_blue_states'][b.uuid] = true
|
908
|
-
format_visual_add(b.position,"passive");
|
909
|
-
}
|
932
|
+
format_visual_add(b.position,"passive",false);
|
910
933
|
});
|
911
934
|
}
|
912
935
|
if (content['after']) {
|
913
936
|
$.each(content['after'],function(a,b){
|
914
|
-
|
915
|
-
save['activity_blue_states'][b.uuid] = true
|
916
|
-
format_visual_add(b.position,"passive");
|
917
|
-
}
|
937
|
+
format_visual_add(b.position,"passive",false);
|
918
938
|
});
|
919
939
|
}
|
920
940
|
if (content['unmark']) {
|
921
941
|
$.each(content['unmark'],function(a,b){
|
922
|
-
|
923
|
-
format_visual_remove(b.position,"passive")
|
924
|
-
}
|
925
|
-
save['activity_blue_states'][b.uuid] = true
|
926
|
-
setTimeout(() => {delete save['activity_blue_states'][b.uuid]},5000);
|
942
|
+
format_visual_remove(b.position,"passive",false)
|
927
943
|
});
|
928
944
|
}
|
929
945
|
if (!content['at'] && !content['unmark'] && !content['after'] && !content['wait']) {
|
@@ -956,15 +972,11 @@ function monitor_instance_state_change(notification) { //{{{
|
|
956
972
|
monitor_instance_pos();
|
957
973
|
}
|
958
974
|
if (notification == "running") {
|
959
|
-
// // we cant do that, because the events might not be ordered. so jus remove all the blue ones.
|
960
|
-
// format_visual_clear();
|
961
|
-
|
962
975
|
for (const [key, ele] of Object.entries(node_state)) {
|
963
976
|
for (i=0; i<ele.passive; i++) {
|
964
977
|
format_visual_remove(key,'passive');
|
965
978
|
}
|
966
979
|
}
|
967
|
-
// save_blue_states has to be left alone, because we dont know the uuid
|
968
980
|
}
|
969
981
|
|
970
982
|
var but = "";
|
@@ -1436,15 +1448,18 @@ async function load_testset_handlers(url,testset,vals) {// {{{
|
|
1436
1448
|
return Promise.all(promises);
|
1437
1449
|
}// }}}
|
1438
1450
|
|
1439
|
-
function format_visual_add(what,cls) {//{{{
|
1451
|
+
function format_visual_add(what,cls,sum=true) {//{{{
|
1440
1452
|
if (node_state[what] == undefined)
|
1441
1453
|
node_state[what] = {};
|
1442
1454
|
if (node_state[what][cls] == undefined)
|
1443
1455
|
node_state[what][cls] = 0;
|
1444
1456
|
node_state[what][cls] += 1;
|
1457
|
+
if (sum == false && node_state[what][cls] > 1) {
|
1458
|
+
node_state[what][cls] = 1;
|
1459
|
+
}
|
1445
1460
|
format_visual_set(what);
|
1446
1461
|
}//}}}
|
1447
|
-
function format_visual_remove(what,cls) {//{{{
|
1462
|
+
function format_visual_remove(what,cls,sum=true) {//{{{
|
1448
1463
|
if (node_state[what] == undefined)
|
1449
1464
|
node_state[what] = {};
|
1450
1465
|
if (node_state[what][cls] == undefined)
|
@@ -1452,6 +1467,9 @@ function format_visual_remove(what,cls) {//{{{
|
|
1452
1467
|
node_state[what][cls] -= 1;
|
1453
1468
|
if (node_state[what][cls] < 0)
|
1454
1469
|
node_state[what][cls] = 0;
|
1470
|
+
if (sum == false && node_state[what][cls] < 0) {
|
1471
|
+
node_state[what][cls] = 0;
|
1472
|
+
}
|
1455
1473
|
format_visual_set(what);
|
1456
1474
|
}//}}}
|
1457
1475
|
|
data/cockpit/js/modifiers.js
CHANGED
@@ -144,6 +144,9 @@ function modifiers_select() {
|
|
144
144
|
let it = $(s).attr('value');
|
145
145
|
$('select',r).val(it);
|
146
146
|
modifiers_display_ui(rep + 'modifiers/',top,it,save['modifiers_active'][top] == it);
|
147
|
+
if (save['modifiers_active'][top] != it) {
|
148
|
+
modifiers_update({"target": $('select',r)});
|
149
|
+
}
|
147
150
|
save['modifiers_active'][top] = it;
|
148
151
|
}
|
149
152
|
});
|