cpee 2.1.141 → 2.1.144
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/compliance-view.html +8 -11
- data/cockpit/compliance.html +8 -11
- data/cockpit/conformance.html +299 -0
- data/cockpit/css/compliance.css +3 -64
- data/cockpit/css/llmmodel.css +17 -22
- data/cockpit/css/ui.css +9 -14
- data/cockpit/edit.html +7 -10
- data/cockpit/graph.html +3 -6
- data/cockpit/index.html +7 -10
- data/cockpit/js/compliance.js +85 -396
- data/cockpit/js/extended_columns.js +8 -7
- data/cockpit/js/instance.js +3 -4
- data/cockpit/js/llmmodel.js +32 -0
- data/cockpit/js/mp-conformance.js +84 -0
- data/cockpit/js/parameters.js +3 -1
- data/cockpit/js/ui.js +2 -2
- data/cockpit/llm.html +58 -48
- data/cockpit/llmmodel.html +41 -36
- data/cockpit/model.html +6 -9
- data/cockpit/only_llm.html +5 -8
- data/cockpit/rngs/aggregations.rng +15 -0
- data/cockpit/rngs/intervals.rng +12 -0
- data/cockpit/rngs/nlrequirements.rng +8 -0
- data/cockpit/rngs/requirements.rng +2 -2
- data/cockpit/rngs/rules.rng +30 -0
- data/cockpit/templates/Coopis 2010 Replay.xml +7 -7
- data/cockpit/templates/Coopis 2010.xml +7 -7
- data/cockpit/templates/Frames.xml +1 -1
- data/cockpit/templates/Frames1.xml +527 -0
- data/cockpit/templates/ML-pipe-multi.xml +9 -9
- data/cockpit/templates/Readonly Local.xml +4 -4
- data/cockpit/templates/Track Test Local.xml +6 -6
- data/cockpit/templates/Track Test.xml +5 -5
- data/cockpit/templates/UR-VUE 2020 Solution Baseline.xml +6 -6
- data/cockpit/templates/UR-VUE 2020 Solution NN.xml +5 -5
- data/cockpit/templates/UR-VUE 2020 Solution View.xml +1 -1
- data/cockpit/templates/UR-VUE 2020.xml +1 -1
- data/cockpit/templates/Wait.xml +1 -1
- data/cockpit/templates/Worklist Vote.xml +2 -2
- data/cockpit/templates/Worklist.xml +1 -1
- data/cockpit/templates/instantiate/Take_Sub.xml +1 -1
- data/cockpit/templates/instantiate.local/Take_Sub.xml +1 -1
- data/cockpit/themes/base.js +18 -10
- data/cockpit/themes/presetlr/theme.js +1 -0
- data/cockpit/track.html +3 -6
- data/cpee.gemspec +2 -2
- data/lib/cpee/implementation.rb +2 -1
- data/lib/cpee/implementation_callbacks.rb +4 -2
- data/lib/cpee/implementation_notifications.rb +2 -2
- data/lib/cpee/persistence.rb +1 -0
- data/lib/engine/instances.rng +5 -0
- data/lib/properties/description.rng +0 -1
- data/lib/properties/dslx.rng +0 -1
- data/lib/properties/properties.rng +1 -0
- data/lib/properties/set-properties.rng +1 -0
- data/lib/properties/set-some-properties.rng +1 -0
- data/lib/properties/set-testset.rng +1 -0
- data/lib/properties/state.rng +0 -2
- data/lib/properties.xml +0 -1
- data/server/executionhandlers/eval/connection.rb +3 -6
- data/server/executionhandlers/ruby/connection.rb +3 -6
- data/server/executionhandlers/ruby/controller.rb +22 -16
- data/server/resources/states.dot +0 -4
- data/server/resources/states.xml +2 -8
- data/server/resources/topics.xml +0 -3
- data/tools/cpee +115 -2
- metadata +11 -5
- data/cockpit/css/wfadaptor.css +0 -401
- data/cockpit/js/wfadaptor.js +0 -1680
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<user>https-post://cpee.org/services/timeout-user.php</user>
|
|
11
11
|
<auto>https-post://cpee.org/services/timeout-auto.php</auto>
|
|
12
12
|
<timeout>https-post://cpee.org/services/timeout.php</timeout>
|
|
13
|
-
<subprocess>https-post://cpee.org/flow/start/url/</subprocess>
|
|
13
|
+
<subprocess>https-post://{cpee.org}/flow/start/url/</subprocess>
|
|
14
14
|
<send>https-post://cpee.org/ing/correlators/message/send/</send>
|
|
15
15
|
<receive>https-get://cpee.org/ing/correlators/message/receive/</receive>
|
|
16
16
|
</endpoints>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</annotations>
|
|
42
42
|
</manipulate>
|
|
43
43
|
<parallel eid="e1" wait="-1" cancel="last">
|
|
44
|
-
<parallel_branch>
|
|
44
|
+
<parallel_branch eid="e4">
|
|
45
45
|
<call id="a3" endpoint="timeout">
|
|
46
46
|
<parameters>
|
|
47
47
|
<label>Wait 2</label>
|
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
<_probability_avg/>
|
|
148
148
|
</_probability>
|
|
149
149
|
</alternative>
|
|
150
|
-
<otherwise/>
|
|
150
|
+
<otherwise eid="e5"/>
|
|
151
151
|
</choose>
|
|
152
152
|
</parallel_branch>
|
|
153
|
-
<parallel_branch>
|
|
153
|
+
<parallel_branch eid="e6">
|
|
154
154
|
<manipulate id="a4" label="Set local.a to 1">
|
|
155
155
|
<code>local.a = 1</code>
|
|
156
156
|
<annotations>
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<i>0</i>
|
|
6
6
|
</dataelements>
|
|
7
7
|
<endpoints>
|
|
8
|
-
<start_url>https://cpee.org/flow/start/url/</start_url>
|
|
8
|
+
<start_url>https://{cpee.org}/flow/start/url/</start_url>
|
|
9
9
|
<user>https-post://cpee.org/services/timeout-user.php</user>
|
|
10
10
|
<auto>https-post://cpee.org/services/timeout-auto.php</auto>
|
|
11
|
-
<subprocess>https-post://cpee.org/flow/start/url/</subprocess>
|
|
11
|
+
<subprocess>https-post://{cpee.org}/flow/start/url/</subprocess>
|
|
12
12
|
<timeout>https-post://cpee.org/services/timeout.php</timeout>
|
|
13
13
|
<send>https-post://cpee.org/ing/correlators/message/send/</send>
|
|
14
14
|
<receive>https-get://cpee.org/ing/correlators/message/receive/</receive>
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
</attributes>
|
|
27
27
|
<description>
|
|
28
28
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
29
|
-
<loop mode="pre_test" condition="true">
|
|
30
|
-
<parallel wait="-1">
|
|
31
|
-
<loop mode="pre_test" condition="data.i < 4">
|
|
29
|
+
<loop eid="e1" mode="pre_test" condition="true">
|
|
30
|
+
<parallel eid="e2" wait="-1">
|
|
31
|
+
<loop eid="e3" mode="pre_test" condition="data.i < 4">
|
|
32
32
|
<_probability>
|
|
33
33
|
<_probability_min/>
|
|
34
34
|
<_probability_max/>
|
|
35
35
|
<_probability_avg/>
|
|
36
36
|
</_probability>
|
|
37
|
-
<parallel_branch>
|
|
37
|
+
<parallel_branch eid="e4">
|
|
38
38
|
<call id="a1" endpoint="start_url">
|
|
39
39
|
<parameters>
|
|
40
40
|
<label>Start</label>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<i>0</i>
|
|
6
6
|
</dataelements>
|
|
7
7
|
<endpoints>
|
|
8
|
-
<start_url>https://cpee.org/flow/start/url/</start_url>
|
|
8
|
+
<start_url>https://{cpee.org}/flow/start/url/</start_url>
|
|
9
9
|
</endpoints>
|
|
10
10
|
<attributes>
|
|
11
11
|
<info>Track Test</info>
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
</attributes>
|
|
21
21
|
<description>
|
|
22
22
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
23
|
-
<loop mode="pre_test" condition="true">
|
|
24
|
-
<parallel wait="-1" cancel="last">
|
|
25
|
-
<loop mode="pre_test" condition="data.i < 4">
|
|
23
|
+
<loop eid="e1" mode="pre_test" condition="true">
|
|
24
|
+
<parallel eid="e2" wait="-1" cancel="last">
|
|
25
|
+
<loop eid="e3" mode="pre_test" condition="data.i < 4">
|
|
26
26
|
<_probability>
|
|
27
27
|
<_probability_min/>
|
|
28
28
|
<_probability_max/>
|
|
29
29
|
<_probability_avg/>
|
|
30
30
|
</_probability>
|
|
31
|
-
<parallel_branch>
|
|
31
|
+
<parallel_branch eid="e4">
|
|
32
32
|
<call id="a1" endpoint="start_url">
|
|
33
33
|
<parameters>
|
|
34
34
|
<label>Start</label>
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
<get_offset_base>http-get://ryloth.wst.univie.ac.at:9329/view/details</get_offset_base>
|
|
13
13
|
<get_offset_neural>http-get://ryloth.wst.univie.ac.at:9330/view/details</get_offset_neural>
|
|
14
14
|
<grip_and_place>http-put://ryloth.wst.univie.ac.at:9329/move/grip_and_place</grip_and_place>
|
|
15
|
-
<subprocess>https://cpee.org/flow/start/url/</subprocess>
|
|
15
|
+
<subprocess>https://{cpee.org}/flow/start/url/</subprocess>
|
|
16
16
|
</endpoints>
|
|
17
17
|
<description>
|
|
18
18
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
19
|
-
<loop mode="pre_test" condition="data.places.length > 0">
|
|
19
|
+
<loop eid="e1" mode="pre_test" condition="data.places.length > 0">
|
|
20
20
|
<_probability>
|
|
21
21
|
<_probability_min/>
|
|
22
22
|
<_probability_max/>
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
</annotations>
|
|
77
77
|
<documentation/>
|
|
78
78
|
</call>
|
|
79
|
-
<choose mode="exclusive">
|
|
80
|
-
<alternative condition="data.items.length > 0">
|
|
79
|
+
<choose eid="e2" mode="exclusive">
|
|
80
|
+
<alternative eid="e3" condition="data.items.length > 0">
|
|
81
81
|
<call id="a5" endpoint="move_camera">
|
|
82
82
|
<parameters>
|
|
83
83
|
<label>Inspect first item</label>
|
|
@@ -180,8 +180,8 @@ data.item['y'] = data.items.first['y'] + data.item['adjust_y']</finalize>
|
|
|
180
180
|
<_probability_avg/>
|
|
181
181
|
</_probability>
|
|
182
182
|
</alternative>
|
|
183
|
-
<otherwise>
|
|
184
|
-
<terminate/>
|
|
183
|
+
<otherwise eid="e4">
|
|
184
|
+
<terminate eid="e5"/>
|
|
185
185
|
</otherwise>
|
|
186
186
|
</choose>
|
|
187
187
|
</loop>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</endpoints>
|
|
16
16
|
<description>
|
|
17
17
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
18
|
-
<loop mode="pre_test" condition="data.places.length > 0">
|
|
18
|
+
<loop eid="e1" mode="pre_test" condition="data.places.length > 0">
|
|
19
19
|
<_probability>
|
|
20
20
|
<_probability_min/>
|
|
21
21
|
<_probability_max/>
|
|
@@ -77,8 +77,8 @@ data.item = result[0]</finalize>
|
|
|
77
77
|
</annotations>
|
|
78
78
|
<documentation/>
|
|
79
79
|
</call>
|
|
80
|
-
<choose mode="exclusive">
|
|
81
|
-
<alternative condition="data.items.length > 0">
|
|
80
|
+
<choose eid="e2" mode="exclusive">
|
|
81
|
+
<alternative eid="e3" condition="data.items.length > 0">
|
|
82
82
|
<call id="a5" endpoint="move_camera">
|
|
83
83
|
<parameters>
|
|
84
84
|
<label>Inspect first item</label>
|
|
@@ -174,8 +174,8 @@ data.item = result[0]</finalize>
|
|
|
174
174
|
<_probability_avg/>
|
|
175
175
|
</_probability>
|
|
176
176
|
</alternative>
|
|
177
|
-
<otherwise>
|
|
178
|
-
<terminate/>
|
|
177
|
+
<otherwise eid="e4">
|
|
178
|
+
<terminate eid="e5"/>
|
|
179
179
|
</otherwise>
|
|
180
180
|
</choose>
|
|
181
181
|
</loop>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<get_offset_base>http-get://ryloth.wst.univie.ac.at:9329/view/details</get_offset_base>
|
|
10
10
|
<get_offset_neural>http-get://ryloth.wst.univie.ac.at:9330/view/details</get_offset_neural>
|
|
11
11
|
<grip_and_place>http-put://ryloth.wst.univie.ac.at:9329/move/grip_and_place</grip_and_place>
|
|
12
|
-
<subprocess>https://cpee.org/flow/start/url/</subprocess>
|
|
12
|
+
<subprocess>https://{cpee.org}/flow/start/url/</subprocess>
|
|
13
13
|
<wait>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</wait>
|
|
14
14
|
<adjust>https://cpee.org/flow/templates/UR-VUE%202020%20Manual%20Adjust.xml</adjust>
|
|
15
15
|
</endpoints>
|
data/cockpit/templates/Wait.xml
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</dataelements>
|
|
9
9
|
<endpoints>
|
|
10
10
|
<timeout>https://cpee.org/services/timeout.php</timeout>
|
|
11
|
-
<subprocess>https://cpee.org/flow/start/url/</subprocess>
|
|
11
|
+
<subprocess>https://{cpee.org}/flow/start/url/</subprocess>
|
|
12
12
|
<orgmodel>http://localhost/data/ideas_phase1/zt.xml</orgmodel>
|
|
13
13
|
</endpoints>
|
|
14
14
|
<attributes>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<results>[{"user":"manglej6","raw":[{"name":"ok","value":"ok"}],"data":{"ok":"ok"}},{"user":"weissh9","raw":[{"name":"ok","value":"ok"}],"data":{"ok":"ok"}}]</results>
|
|
7
7
|
</dataelements>
|
|
8
8
|
<endpoints>
|
|
9
|
-
<worklist>https-post://cpee.org/worklist/server/</worklist>
|
|
9
|
+
<worklist>https-post://{cpee.org}/worklist/server/</worklist>
|
|
10
10
|
</endpoints>
|
|
11
11
|
<attributes>
|
|
12
12
|
<info>Worklist Vote</info>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</attributes>
|
|
21
21
|
<description>
|
|
22
22
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
|
23
|
-
<loop mode="pre_test" condition="true">
|
|
23
|
+
<loop eid="e1" mode="pre_test" condition="true">
|
|
24
24
|
<call id="a1" endpoint="worklist">
|
|
25
25
|
<parameters>
|
|
26
26
|
<label>OK OR NOT OK</label>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<executionhandler>ruby</executionhandler>
|
|
3
3
|
<dataelements/>
|
|
4
4
|
<endpoints>
|
|
5
|
-
<start_url>https://cpee.org/flow/start/url/</start_url>
|
|
5
|
+
<start_url>https://{cpee.org}/flow/start/url/</start_url>
|
|
6
6
|
<timeout>https://cpee.org/services/timeout.php</timeout>
|
|
7
7
|
</endpoints>
|
|
8
8
|
<positions/>
|
data/cockpit/themes/base.js
CHANGED
|
@@ -34,7 +34,7 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
34
34
|
//{{{ Return the svgid for the selected task
|
|
35
35
|
this.selected = function(){
|
|
36
36
|
var svgid = 'unknown';
|
|
37
|
-
|
|
37
|
+
self.adaptor.illustrator.get_elements().each(function(key,value) {
|
|
38
38
|
if ($(value).hasClass('selected')) {
|
|
39
39
|
svgid = $(value).attr('element-id');
|
|
40
40
|
}
|
|
@@ -44,7 +44,7 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
44
44
|
//{{{ Return the svgids for all marked tasks
|
|
45
45
|
this.marked = function(){
|
|
46
46
|
var svgid = [];
|
|
47
|
-
|
|
47
|
+
self.adaptor.illustrator.get_elements().each(function(key,value) {
|
|
48
48
|
if ($(value).hasClass('marked')) {
|
|
49
49
|
svgid.push($(value).attr('element-id'));
|
|
50
50
|
}
|
|
@@ -54,7 +54,7 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
54
54
|
//{{{ Return the json for all marked tasks
|
|
55
55
|
this.marked_text = function(){
|
|
56
56
|
var nodes = [];
|
|
57
|
-
var markymark =
|
|
57
|
+
var markymark = self.marked().uniq();
|
|
58
58
|
$(markymark).each(function(key,svgid){
|
|
59
59
|
var node = self.adaptor.description.get_node_by_svg_id(svgid);
|
|
60
60
|
nodes.push($(node).serializePrettyXML());
|
|
@@ -110,7 +110,8 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
110
110
|
check2.push(value.type);
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
// all types of the copied nodes are allowed in the group
|
|
114
|
+
if (nodes.length > 0 && check1.uniq().length == check1.intersection(check2).length) {
|
|
114
115
|
if (myid == localStorage.getItem('marked_from')) {
|
|
115
116
|
$(nodes).each(function(key,node){
|
|
116
117
|
nodes[key] = self.adaptor.description.get_node_by_svg_id($(node).attr('svg-id'));
|
|
@@ -177,6 +178,7 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
177
178
|
return icon;
|
|
178
179
|
} //}}}
|
|
179
180
|
var contextMenuHandling = this.contextMenuHandling = function(svgid,e,child,sibling) { //{{{
|
|
181
|
+
if (self.adaptor.description.get_node_by_svg_id(svgid).length == 0) { return false; }
|
|
180
182
|
if (save['state'] != "ready" && save['state'] != "stopped") { return false; }
|
|
181
183
|
|
|
182
184
|
var xml_node = self.adaptor.description.get_node_by_svg_id(svgid);
|
|
@@ -381,15 +383,21 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
|
381
383
|
this.events.dblclick = function(svgid, e) { // {{{
|
|
382
384
|
} // }}}
|
|
383
385
|
this.events.mouseover = function(svgid, e) { // {{{
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
386
|
+
let con = e ? $(e.currentTarget).closest('svg') : self.adaptor.illustrator.svg.container;
|
|
387
|
+
con.find('.tile[element-id = "' + svgid + '"]').css('display','block');
|
|
388
|
+
con.find('[element-id = "' + svgid + '"]').addClass('hover');
|
|
389
|
+
if (self.adaptor.illustrator.svg.label_container) {
|
|
390
|
+
self.adaptor.illustrator.svg.label_container.find('[element-id = "' + svgid + '"]').addClass('hover');
|
|
391
|
+
}
|
|
387
392
|
return false;
|
|
388
393
|
} // }}}
|
|
389
394
|
this.events.mouseout = function(svgid, e) { // {{{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
395
|
+
let con = e ? $(e.currentTarget).closest('svg') : self.adaptor.illustrator.svg.container;
|
|
396
|
+
con.find('.tile[element-id = "' + svgid + '"]').css('display','none');
|
|
397
|
+
con.find('[element-id = "' + svgid + '"]').removeClass('hover');
|
|
398
|
+
if (self.adaptor.illustrator.svg.label_container) {
|
|
399
|
+
self.adaptor.illustrator.svg.label_container.find('[element-id = "' + svgid + '"]').removeClass('hover');
|
|
400
|
+
}
|
|
393
401
|
return false;
|
|
394
402
|
} // }}}
|
|
395
403
|
this.events.dragstart = function (svgid, e) { //{{{
|
|
@@ -4,6 +4,7 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
|
|
|
4
4
|
this.compact = true;
|
|
5
5
|
this.rotated_labels = false;
|
|
6
6
|
this.lr = true;
|
|
7
|
+
this.top_gap = 20.8; // space from the top of the svg to the first symbol, more than the default
|
|
7
8
|
this.wellformed_pre_test = true;
|
|
8
9
|
this.elements.alternative.illustrator.noindent = true;
|
|
9
10
|
this.elements.parallel_branch.illustrator.noindent = true;
|
data/cockpit/track.html
CHANGED
|
@@ -24,11 +24,8 @@
|
|
|
24
24
|
<!-- libs, do not modify. When local than load local libs. -->
|
|
25
25
|
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
26
26
|
<script type="text/javascript" src="/js_libs/uidash_util.js"></script>
|
|
27
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
28
27
|
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
29
|
-
<script type="text/javascript" src="/js_libs/
|
|
30
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
28
|
+
<script type="text/javascript" src="/js_libs/js.cookie.min.js"></script>
|
|
32
29
|
|
|
33
30
|
<script type="text/javascript" src="/js_libs/relaxngui.js"></script>
|
|
34
31
|
|
|
@@ -41,8 +38,8 @@
|
|
|
41
38
|
<link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
|
|
42
39
|
|
|
43
40
|
<!-- modelling ui -->
|
|
44
|
-
<script type="text/javascript" src="
|
|
45
|
-
<link rel="stylesheet" href="
|
|
41
|
+
<script type="text/javascript" src="/js_libs/wfadaptor.js"></script>
|
|
42
|
+
<link rel="stylesheet" href="/js_libs/wfadaptor.css" type="text/css"/>
|
|
46
43
|
|
|
47
44
|
<!-- custom stuff, play arround -->
|
|
48
45
|
<script type="text/javascript" src="js/ui.js"></script>
|
data/cpee.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "cpee"
|
|
3
|
-
s.version = "2.1.
|
|
3
|
+
s.version = "2.1.144"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
|
6
6
|
s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
|
22
22
|
s.homepage = 'http://cpee.org/'
|
|
23
23
|
|
|
24
24
|
s.add_runtime_dependency 'riddl', '~> 1.0', '>= 1.0.21'
|
|
25
|
-
s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.
|
|
25
|
+
s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.161'
|
|
26
26
|
s.add_runtime_dependency 'highline', '~> 2.0'
|
|
27
27
|
s.add_runtime_dependency 'redis', '~> 5.4'
|
|
28
28
|
s.add_runtime_dependency 'net-ssh', '~> 7.3'
|
data/lib/cpee/implementation.rb
CHANGED
|
@@ -307,7 +307,8 @@ module CPEE
|
|
|
307
307
|
uuid = CPEE::Persistence::extract_item(instance,opts,'attributes/uuid')
|
|
308
308
|
state = CPEE::Persistence::extract_item(instance,opts,'state')
|
|
309
309
|
state_changed = CPEE::Persistence::extract_item(instance,opts,'state/@changed')
|
|
310
|
-
|
|
310
|
+
highlander = CPEE::Persistence::extract_item(instance,opts,'attributes/highlander') || ''
|
|
311
|
+
ins.root.add('instance', info, 'uuid' => uuid, 'id' => instance, 'state' => state, 'state_changed' => state_changed, 'highlander' => highlander )
|
|
311
312
|
end
|
|
312
313
|
ins.to_s
|
|
313
314
|
end
|
|
@@ -102,7 +102,8 @@ module CPEE
|
|
|
102
102
|
{},
|
|
103
103
|
{},
|
|
104
104
|
'true',
|
|
105
|
-
opts[:redis]
|
|
105
|
+
opts[:redis],
|
|
106
|
+
0
|
|
106
107
|
)
|
|
107
108
|
else
|
|
108
109
|
@status = 404
|
|
@@ -169,7 +170,8 @@ module CPEE
|
|
|
169
170
|
{},
|
|
170
171
|
{},
|
|
171
172
|
@p[0].class == Riddl::Parameter::Simple ? @p[0].value : @p[0].value.read,
|
|
172
|
-
opts[:redis]
|
|
173
|
+
opts[:redis],
|
|
174
|
+
0
|
|
173
175
|
)
|
|
174
176
|
else
|
|
175
177
|
@status = 400
|
|
@@ -196,7 +196,7 @@ module CPEE
|
|
|
196
196
|
|
|
197
197
|
def self::sse_distributor(opts) #{{{
|
|
198
198
|
conn = opts[:redis_dyn].call "Server SSE"
|
|
199
|
-
conn.psubscribe('forward:*','event
|
|
199
|
+
conn.psubscribe('forward:*','event:*:state/change') do |on|
|
|
200
200
|
on.pmessage do |pat, what, message|
|
|
201
201
|
if pat == 'forward:*'
|
|
202
202
|
id, key = what.match(/forward:([^\/]+)\/(.+)/).captures
|
|
@@ -208,7 +208,7 @@ module CPEE
|
|
|
208
208
|
else
|
|
209
209
|
DeleteSubscription::set(id,opts,key)
|
|
210
210
|
end
|
|
211
|
-
elsif pat == 'event
|
|
211
|
+
elsif pat == 'event:*:state/change'
|
|
212
212
|
mess = JSON.parse(message[message.index(' ')+1..-1])
|
|
213
213
|
state = mess.dig('content','state')
|
|
214
214
|
if state == 'finished' || state == 'abandoned'
|
data/lib/cpee/persistence.rb
CHANGED
|
@@ -215,6 +215,7 @@ module CPEE
|
|
|
215
215
|
res += Persistence::keys_extract_name(opts,id,'transformation','dataelements','@type')
|
|
216
216
|
res += Persistence::keys_extract_name(opts,id,'transformation','dslx')
|
|
217
217
|
res += Persistence::keys_extract_name(opts,id,'transformation','dslx','@type')
|
|
218
|
+
res += Persistence::keys_extract_name(opts,id,'transformation','dslx','@extension')
|
|
218
219
|
res
|
|
219
220
|
end
|
|
220
221
|
|
data/lib/engine/instances.rng
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
2
|
-
<include href="arbitrary.rng"/>
|
|
3
2
|
<define name="description">
|
|
4
3
|
<element name="description" ns="http://cpee.org/ns/properties/2.0">
|
|
5
4
|
<ref name="arbitrary"/>
|
data/lib/properties/dslx.rng
CHANGED
data/lib/properties/state.rng
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
<choice>
|
|
8
8
|
<value>ready</value>
|
|
9
9
|
<value>running</value>
|
|
10
|
-
<value>simulating</value>
|
|
11
10
|
<value>stopping</value>
|
|
12
11
|
<value>stopped</value>
|
|
13
12
|
<value>abandoned</value>
|
|
@@ -20,7 +19,6 @@
|
|
|
20
19
|
<choice>
|
|
21
20
|
<value>ready</value>
|
|
22
21
|
<value>running</value>
|
|
23
|
-
<value>simulating</value>
|
|
24
22
|
<value>stopping</value>
|
|
25
23
|
<value>stopped</value>
|
|
26
24
|
<value>abandoned</value>
|
data/lib/properties.xml
CHANGED
|
@@ -30,11 +30,12 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
30
30
|
tso + 2 > tsn && count > 100
|
|
31
31
|
end # }}}
|
|
32
32
|
|
|
33
|
-
def self::inform_state_change(arguments,newstate
|
|
33
|
+
def self::inform_state_change(arguments,newstate) # {{{
|
|
34
34
|
controller = arguments[0]
|
|
35
35
|
controller.notify('state/change', :state => newstate)
|
|
36
36
|
if newstate == :stopped || newstate == :finished
|
|
37
|
-
controller.notify('dataelements/modify', :eid => 'ex-post', :values =>
|
|
37
|
+
controller.notify('dataelements/modify', :eid => 'ex-post', :values => controller.dataelements)
|
|
38
|
+
controller.notify('endpoints/modify', :eid => 'ex-post', :values => controller.endpoints)
|
|
38
39
|
end
|
|
39
40
|
end # }}}
|
|
40
41
|
def self::inform_syntax_error(arguments,err,code)# {{{
|
|
@@ -252,10 +253,6 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
252
253
|
@handler_passthrough
|
|
253
254
|
end # }}}
|
|
254
255
|
|
|
255
|
-
def activity_no_longer_necessary # {{{
|
|
256
|
-
true
|
|
257
|
-
end # }}}
|
|
258
|
-
|
|
259
256
|
def activity_uuid #{{{
|
|
260
257
|
@handler_activity_uuid
|
|
261
258
|
end #}}}
|
|
@@ -30,11 +30,12 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
30
30
|
tso + 2 > tsn && count > 100
|
|
31
31
|
end # }}}
|
|
32
32
|
|
|
33
|
-
def self::inform_state_change(arguments,newstate
|
|
33
|
+
def self::inform_state_change(arguments,newstate) # {{{
|
|
34
34
|
controller = arguments[0]
|
|
35
35
|
controller.notify('state/change', :state => newstate)
|
|
36
36
|
if newstate == :stopped || newstate == :finished
|
|
37
|
-
controller.notify('dataelements/modify', :eid => 'ex-post', :values =>
|
|
37
|
+
controller.notify('dataelements/modify', :eid => 'ex-post', :values => controller.dataelements)
|
|
38
|
+
controller.notify('endpoints/modify', :eid => 'ex-post', :values => controller.endpoints)
|
|
38
39
|
end
|
|
39
40
|
end # }}}
|
|
40
41
|
def self::inform_syntax_error(arguments,err,code)# {{{
|
|
@@ -252,10 +253,6 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
252
253
|
@handler_passthrough
|
|
253
254
|
end # }}}
|
|
254
255
|
|
|
255
|
-
def activity_no_longer_necessary # {{{
|
|
256
|
-
true
|
|
257
|
-
end # }}}
|
|
258
|
-
|
|
259
256
|
def activity_uuid #{{{
|
|
260
257
|
@handler_activity_uuid
|
|
261
258
|
end #}}}
|