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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 453366f3d93cb53a550570068fdf5247e1b53d0f2d43a16cf35302145b72f5fb
|
4
|
+
data.tar.gz: 8d5d89a1f03113e27b88fcf24c3f23fd44b5d3e5b65c0514a71a05ba443e30a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6079a6cbf45321f1870243373f28f45233c918113e6ae97c3e28dea23f972b5db7afd5041644673ef169b6a7f6bb1d6bc99b94f573cb119a4ca78b25b67f18e5
|
7
|
+
data.tar.gz: a12c1138fe1e58dd244b8e68b9988b0cde59702be03843ae06b09c3f84b4a2394117144783dac3fa9ffd8a4ea292e678c2034903d1957cb62b55f649b6a22b07
|
data/cockpit/css/wfadaptor.css
CHANGED
@@ -346,6 +346,23 @@ svg text.label {
|
|
346
346
|
font-family:Arial;
|
347
347
|
}
|
348
348
|
|
349
|
+
svg text.smaller {
|
350
|
+
font-size:12px;
|
351
|
+
font-style:normal;
|
352
|
+
font-variant:normal;
|
353
|
+
font-weight:bold;
|
354
|
+
font-stretch:normal;
|
355
|
+
text-align:center;
|
356
|
+
line-height:125%;
|
357
|
+
writing-mode:horizontal-tb;
|
358
|
+
text-anchor:middle;
|
359
|
+
color: var(--wfadaptor-base);
|
360
|
+
fill: var(--wfadaptor-base);
|
361
|
+
fill-opacity:1;
|
362
|
+
stroke:none;
|
363
|
+
font-family:Arial;
|
364
|
+
}
|
365
|
+
|
349
366
|
#arrow {
|
350
367
|
stroke: var(--wfadaptor-base);
|
351
368
|
stroke-width: 2;
|
data/cockpit/js/instance.js
CHANGED
@@ -837,6 +837,7 @@ function get_testset(deferred) {// {{{
|
|
837
837
|
$('testset > transformation',testset).remove();
|
838
838
|
$('testset > dsl',testset).remove();
|
839
839
|
$('testset > dslx',testset).remove();
|
840
|
+
$('testset > attributes > uuid',testset).remove();
|
840
841
|
testset.append($X('<transformation xmlns="http://cpee.org/ns/properties/2.0"><description type="copy"/><dataelements type="none"/><endpoints type="none"/></transformation>'));
|
841
842
|
var name = $('testset > attributes > info',testset).text();
|
842
843
|
$('[xmlns]',testset).each((idx,ele) => {
|
@@ -887,9 +888,7 @@ function save_svgfile() {// {{{
|
|
887
888
|
type: "GET",
|
888
889
|
url: url + "/properties/attributes/info/",
|
889
890
|
success: function(res){
|
890
|
-
|
891
|
-
|
892
|
-
$('#savesvgfile').attr('download',name + '.svg');
|
891
|
+
$('#savesvgfile').attr('download',res + '.svg');
|
893
892
|
$('#savesvgfile').attr('href','data:application/xml;charset=utf-8;base64,' + $B64(gc.serializeXML()));
|
894
893
|
document.getElementById('savesvgfile').click();
|
895
894
|
},
|
@@ -912,6 +911,7 @@ async function set_testset(testset,exec) {// {{{
|
|
912
911
|
tset.append($("testset > attributes",testset));
|
913
912
|
tset.append($("testset > description",testset));
|
914
913
|
tset.append($("testset > transformation",testset));
|
914
|
+
$('testset > attributes > info',tset).remove();
|
915
915
|
|
916
916
|
promises.push(
|
917
917
|
$.ajax({
|
data/cockpit/js_libs.zip
ADDED
Binary file
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -8,6 +8,11 @@
|
|
8
8
|
<value id="sensor">Read From Sensor</value>
|
9
9
|
<value id="human">Human Task</value>
|
10
10
|
<value id="subprocess">Subprocess</value>
|
11
|
+
<value id="robot">Robot Task</value>
|
12
|
+
<value id="robot_subprocess">Robot Subprocess</value>
|
13
|
+
<value id="plc">PLC</value>
|
14
|
+
<value id="send">Send Message</value>
|
15
|
+
<value id="receive">Receive Message</value>
|
11
16
|
</choice>
|
12
17
|
</attribute>
|
13
18
|
<element name="parameters" rngui:header="Properties">
|
@@ -59,4 +64,4 @@
|
|
59
64
|
</element>
|
60
65
|
</element>
|
61
66
|
</element>
|
62
|
-
</element>
|
67
|
+
</element>
|
@@ -8,6 +8,11 @@
|
|
8
8
|
<value id="sensor">Read From Sensor</value>
|
9
9
|
<value id="human">Human Task</value>
|
10
10
|
<value id="subprocess">Subprocess</value>
|
11
|
+
<value id="robot">Robot Task</value>
|
12
|
+
<value id="robot_subprocess">Robot Subprocess</value>
|
13
|
+
<value id="plc">PLC</value>
|
14
|
+
<value id="send">Send Message</value>
|
15
|
+
<value id="receive">Receive Message</value>
|
11
16
|
</choice>
|
12
17
|
</attribute>
|
13
18
|
<element name="parameters" rngui:header="Properties">
|
@@ -64,4 +69,4 @@
|
|
64
69
|
</element>
|
65
70
|
</element>
|
66
71
|
</element>
|
67
|
-
</element>
|
72
|
+
</element>
|
@@ -241,7 +241,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
241
241
|
'label': function(node){
|
242
242
|
var ret;
|
243
243
|
if ($('> url',$(node).children('parameters').children('arguments')).length > 0) {
|
244
|
-
ret = [ { column: 'Label', value: $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'') + ' <a target="
|
244
|
+
ret = [ { column: 'Label', value: $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'') + ' <a target="_blank" href="' + $('> url',$(node).children('parameters').children('arguments')).text() + '"></a>' } ];
|
245
245
|
} else {
|
246
246
|
ret = [ { column: 'Label', value: $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'') } ];
|
247
247
|
}
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="closed_loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
|
2
|
-
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
-
<data type="float" rngui:label="Hz"/>
|
4
|
-
</attribute>
|
5
2
|
<attribute name="overrun" rngui:label="Interval duration overrun">
|
6
3
|
<choice>
|
7
4
|
<value>wait</value>
|
@@ -26,6 +23,9 @@
|
|
26
23
|
</element>
|
27
24
|
</element>
|
28
25
|
<element rngui:ignore="true" name="closed_loop_measuring">
|
26
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
27
|
+
<data type="float" rngui:label="Hz"/>
|
28
|
+
</attribute>
|
29
29
|
<element name="_expected" rngui:header="Values Expected to Change">
|
30
30
|
<zeroOrMore rngui:label="Add Value">
|
31
31
|
<element name="value" rngui:label="Value">
|
@@ -35,6 +35,9 @@
|
|
35
35
|
</element>
|
36
36
|
</element>
|
37
37
|
<element rngui:ignore="true" name="closed_loop_control">
|
38
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
39
|
+
<data type="float" rngui:label="Hz"/>
|
40
|
+
</attribute>
|
38
41
|
<element name="_expected" rngui:header="Values Expected to Change">
|
39
42
|
<zeroOrMore rngui:label="Add Value">
|
40
43
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_control" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="change">
|
@@ -1,4 +1,7 @@
|
|
1
1
|
<element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" ns="http://cpee.org/ns/description/1.0" name="closed_loop_measuring" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
+
<attribute name="frequency" rngui:label="Interval frequency in Hz" rngui:default="0.1">
|
3
|
+
<data type="float" rngui:label="Hz"/>
|
4
|
+
</attribute>
|
2
5
|
<element name="_expected" rngui:header="Values Expected to Change">
|
3
6
|
<zeroOrMore rngui:label="Add Value">
|
4
7
|
<element name="value" rngui:label="Value">
|
@@ -217,7 +217,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
217
217
|
self.adaptor.illustrator.get_elements().removeClass('selected');
|
218
218
|
self.adaptor.illustrator.get_labels().removeClass('selected');
|
219
219
|
|
220
|
-
if (e && e.ctrlKey) {
|
220
|
+
if (e && (e.ctrlKey || e.metaKey)) {
|
221
221
|
if (save['state'] != "ready" && save['state'] != "stopped") { return false; }
|
222
222
|
var tab = $('#dat_details');
|
223
223
|
tab.empty();
|
data/cpee.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "2.0.
|
3
|
+
s.version = "2.0.21"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|
7
7
|
|
8
8
|
s.description = "see http://cpee.org"
|
9
9
|
|
10
|
-
s.files = Dir['{example/**/*,server/**/*,tools/**/*,tools/archive,lib/**/*,cockpit/**/*,cockpit/themes/*/*/*,contrib/logo*,contrib/Screen*}'] - Dir['{server/instances/**/*,cockpit/js_libs
|
10
|
+
s.files = Dir['{example/**/*,server/**/*,tools/**/*,tools/archive,lib/**/*,cockpit/**/*,cockpit/themes/*/*/*,contrib/logo*,contrib/Screen*}'] - Dir['{server/instances/**/*,cockpit/js_libs/**/*,server/redis*}'] + %w(COPYING FEATURES.md INSTALL.md Rakefile cpee.gemspec README.md AUTHORS)
|
11
11
|
s.require_path = 'lib'
|
12
12
|
s.extra_rdoc_files = ['README.md']
|
13
13
|
s.bindir = 'tools'
|
data/lib/cpee/controller.rb
CHANGED
@@ -20,6 +20,7 @@ require 'riddl/client'
|
|
20
20
|
require_relative 'value_helper'
|
21
21
|
require_relative 'attributes_helper'
|
22
22
|
require_relative 'message'
|
23
|
+
require_relative 'redis'
|
23
24
|
|
24
25
|
require 'ostruct'
|
25
26
|
class ParaStruct < OpenStruct
|
@@ -34,7 +35,9 @@ module CPEE
|
|
34
35
|
|
35
36
|
class Controller
|
36
37
|
def initialize(id,dir,opts)
|
37
|
-
|
38
|
+
CPEE::redis_connect(opts)
|
39
|
+
|
40
|
+
@redis = opts[:redis]
|
38
41
|
@votes = []
|
39
42
|
|
40
43
|
@id = id
|
@@ -134,7 +137,7 @@ module CPEE
|
|
134
137
|
|
135
138
|
if votes.length > 0
|
136
139
|
@votes += votes
|
137
|
-
psredis =
|
140
|
+
psredis = @opts[:redis_dyn].call
|
138
141
|
collect = []
|
139
142
|
psredis.subscribe(votes.map{|e| ['vote-response:' + e.to_s, 'vote-end:' + e.to_s] }.flatten) do |on|
|
140
143
|
on.message do |what, message|
|
@@ -158,7 +161,7 @@ module CPEE
|
|
158
161
|
def callback(hw,key,content)
|
159
162
|
CPEE::Message::send(:callback,'activity/content',base,@id,uuid,info,content.merge(:key => key),@redis)
|
160
163
|
|
161
|
-
psredis =
|
164
|
+
psredis = @opts[:redis_dyn].call
|
162
165
|
response = nil
|
163
166
|
Thread.new do
|
164
167
|
psredis.subscribe('callback-response:' + key, 'callback-end:' + key) do |on|
|