cpee 2.1.37 → 2.1.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9654b46b1dcea27433723db5fa3f56bc24feb6a925cf2116b98486a6325680c4
4
- data.tar.gz: 46c6c7ae69e908118f681b09f74ecffc34da9ba5fe9036cc2d52aafae50c8a08
3
+ metadata.gz: 82c31e73f84bfe9f3eb5c7ae191e09bef9c23cfa083b15456dde2c1c721d2183
4
+ data.tar.gz: da869857f15277251e01a029f0742c8bf3bcfe0b4ff559c494c591c527d71779
5
5
  SHA512:
6
- metadata.gz: 181b74293fb2e8a52121efb575ada47515a07050bcbfa23d0827bb5bc85ecc6ad76f4649d3ff2dcebb8b436bf29ef50b783f8e8b042a305475279750d36a2117
7
- data.tar.gz: 715abfa5b4b5522339f10d241cbaf793cd3b8fbb5a004578240ec670f658a34c995b7180a44361ec1c2ab9e3af6489b8d7e63bb2151341c1c9a9069a224a6920
6
+ metadata.gz: 1fc28bb8126fc56659b35f555b6fbe26e574c3bef17c119db289edd773b8d71652375a737487e6edcbfb1979d6e387818f5e96c2ae0854384d0e71d2ee4366c1
7
+ data.tar.gz: d8b13c8ebef1d3b2ec9f7fec522b2551a5a20b82cefba2349092caba5d3570e26aff7eae95cbd726590263a2738148393ac184ea8c301be0764b69a789ae2344
data/cockpit/edit.html CHANGED
@@ -253,7 +253,7 @@
253
253
  </ui-area>
254
254
  <ui-area data-belongs-to-tab="dsl" id="areadsl" class="inactive"></ui-area>
255
255
  <ui-area data-belongs-to-tab="log" id="arealog" class="inactive"> <!--{{{-->
256
- <div>Persistent Log: <a style='display:none' target='_blank' id='current-log'></a></div>
256
+ <div>Persistent Log: <a style='display:none' target='_blank' id='current-log'></a> [<a style='display:none' target='_blank' id='shifted-log'>S</a>]</div>
257
257
  <table id="dat_log" class="x-ui-layout"></table>
258
258
  </ui-area> <!--}}}-->
259
259
  </ui-content>
data/cockpit/index.html CHANGED
@@ -254,7 +254,7 @@
254
254
  </ui-area>
255
255
  <ui-area data-belongs-to-tab="dsl" id="areadsl" class="inactive"></ui-area>
256
256
  <ui-area data-belongs-to-tab="log" id="arealog" class="inactive"> <!--{{{-->
257
- <div>Persistent Log: <a style='display:none' target='_blank' id='current-log'></a></div>
257
+ <div>Persistent Log: <a style='display:none' target='_blank' id='current-log'></a> [<a style='display:none' target='_blank' id='shifted-log'>S</a>]</div>
258
258
  <table id="dat_log" class="x-ui-layout"></table>
259
259
  </ui-area> <!--}}}-->
260
260
  </ui-content>
@@ -458,10 +458,15 @@ function monitor_instance_values(val) {// {{{
458
458
  if ($('body').attr('current-logs')) {
459
459
  var uuid = $(" > attributes > uuid",res).text();
460
460
  $("#current-log").show();
461
+ $("#shifted-log").show();
461
462
  $("#current-log").attr('href',$('body').attr('current-logs') + uuid + '.xes.yaml');
463
+ $("#shifted-log").attr('href',$('body').attr('current-logs') + uuid + '.xes.shift.yaml');
462
464
  if ($("#current-log").text() == '') {
463
465
  $("#current-log").text(uuid + '.xes.yaml');
464
466
  }
467
+ if ($("#shifted-log").text() == '') {
468
+ $("#shifted-log").text(uuid + '.xes.shift.yaml');
469
+ }
465
470
  }
466
471
  }
467
472
  }
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -63,8 +63,20 @@
63
63
  </zeroOrMore>
64
64
  </element>
65
65
  </element>
66
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
67
+ <element name="_shifting_type" rngui:label="Type">
68
+ <choice>
69
+ <value>Duration</value>
70
+ <value>Ends</value>
71
+ </choice>
72
+ </element>
73
+ <optional>
74
+ <element name="_shifting_expression" rngui:label="Expression">
75
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
76
+ </element>
77
+ </optional>
78
+ </element>
66
79
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
67
-
68
80
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
69
81
  <zeroOrMore rngui:label="Add Probe">
70
82
  <element name="probe">
@@ -86,6 +86,19 @@
86
86
  </zeroOrMore>
87
87
  </element>
88
88
  </element>
89
+ <element name="_shifting" rngui:header="Log Time Shifting" rngui:fold="closed_conditional">
90
+ <element name="_shifting_type" rngui:label="Type">
91
+ <choice>
92
+ <value>Duration</value>
93
+ <value>Ends</value>
94
+ </choice>
95
+ </element>
96
+ <optional>
97
+ <element name="_shifting_expression" rngui:label="Expression">
98
+ <data type="string" rngui:label="e.g.: same day, 16:00; 2 and a half weeks"/>
99
+ </element>
100
+ </optional>
101
+ </element>
89
102
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
90
103
 
91
104
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
@@ -1,4 +1,21 @@
1
1
  <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="description" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <element name="_shifting" rngui:header="Log Time Shifting">
3
+ <optional>
4
+ <element name="_shifting_factor" rngui:label="Multiplication Factor">
5
+ <data type="string" rngui:label="e.g.: 2 hours"/>
6
+ </element>
7
+ </optional>
8
+ <optional>
9
+ <element name="_shifting_start" rngui:label="Starting Point">
10
+ <data type="string" rngui:label="e.g.: monday, 5pm"/>
11
+ </element>
12
+ </optional>
13
+ <optional>
14
+ <element name="_shifting_modifier" rngui:label="Random +/- Starting Shift">
15
+ <data type="float" rngui:label="in seconds"/>
16
+ </element>
17
+ </optional>
18
+ </element>
2
19
  <element name="_context_data_analysis" rngui:header="Context Data Analysis" rngui:hint="All data returned from the endpoint implementing this task as well as arbitray external data streams can be consumed and transformed in data probes. All probes can be the basis for impact factors. Please go to start to define instance data probes.">
3
20
 
4
21
  <element name="probes" rngui:header="Data Probes - Context Data Extraction" rngui:fold="closed_conditional">
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.37"
3
+ s.version = "2.1.38"
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."
@@ -242,7 +242,6 @@ module CPEE
242
242
  PutState::set id, opts, 'stopped'
243
243
  end
244
244
  else
245
- ### Most probably this is never needed. Lets see.
246
245
  PutState::set id, opts, state
247
246
  end
248
247
  end
data/lib/cpee/message.rb CHANGED
@@ -40,23 +40,27 @@ module CPEE
40
40
  end
41
41
 
42
42
  def self::send_url(type, event, cpee, content={}, backend)
43
- topic = ::File::dirname(event)
44
- name = ::File::basename(event)
45
- payload = {
46
- WHO => cpee,
47
- 'topic' => topic,
48
- 'type' => type,
49
- 'name' => name,
50
- 'timestamp' => Time.now.xmlschema(3),
51
- 'content' => content
52
- }
53
- client = Riddl::Client.new(backend)
54
- client.post [
55
- Riddl::Parameter::Simple::new('type',type),
56
- Riddl::Parameter::Simple::new('topic',topic),
57
- Riddl::Parameter::Simple::new('event',name),
58
- Riddl::Parameter::Complex::new('notification','application/json',JSON::generate(payload))
59
- ]
43
+ EM.defer do
44
+ topic = ::File::dirname(event)
45
+ name = ::File::basename(event)
46
+ payload = {
47
+ WHO => cpee,
48
+ 'topic' => topic,
49
+ 'type' => type,
50
+ 'name' => name,
51
+ 'timestamp' => Time.now.xmlschema(3),
52
+ 'content' => content
53
+ }
54
+ client = Riddl::Client.new(backend)
55
+ p backend
56
+ client.post [
57
+ Riddl::Parameter::Simple::new('type',type),
58
+ Riddl::Parameter::Simple::new('topic',topic),
59
+ Riddl::Parameter::Simple::new('event',name),
60
+ Riddl::Parameter::Complex::new('notification','application/json',JSON::generate(payload))
61
+ ]
62
+ p backend + '------'
63
+ end
60
64
  end
61
65
  end
62
66
 
data/lib/cpee.xml CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
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.
10
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
11
 
12
12
  You should have received a copy of the GNU General Public License along with
13
13
  CPEE (file COPYING in the main directory). If not, see
@@ -32,8 +32,12 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
32
32
  controller.notify("state/change", :state => newstate)
33
33
  end # }}}
34
34
  def self::inform_syntax_error(arguments,err,code)# {{{
35
+ # TODO extract spot (code) where error happened for better error handling (ruby 3.1 only)
36
+ # https://github.com/rails/rails/pull/45818/commits/3beb2aff3be712e44c34a588fbf35b79c0246ca5
35
37
  controller = arguments[0]
36
- controller.notify("description/error", :message => err.backtrace[0].gsub(/([\w -_]+):(\d+):in.*/,'\\1, Line \2: ') + err.message)
38
+ mess = err.backtrace ? err.backtrace[0].gsub(/([\w -_]+):(\d+):in.*/,'\\1, Line \2: ') : ''
39
+ mess += err.message
40
+ controller.notify("description/error", :message => mess)
37
41
  end# }}}
38
42
  def self::inform_connectionwrapper_error(arguments,err) # {{{
39
43
  controller = arguments[0]
@@ -363,10 +367,14 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
363
367
 
364
368
  def test_condition(mr,code)
365
369
  res = mr.instance_eval(code,'Condition',1)
366
- @controller.notify("condition/eval", :instance_uuid => @controller.uuid, :code => code, :condition => (res ? "true" : "false"))
370
+ @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => code, :condition => (res ? "true" : "false"))
367
371
  res
368
372
  end
369
373
 
374
+ def join_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]
375
+ @controller.notify("gateway/join", :instance_uuid => @controller.uuid, :branches => branches)
376
+ end
377
+
370
378
  def simulate(type,nesting,tid,parent,parameters={}) #{{{
371
379
  @controller.vote("simulating/step",
372
380
  :'activity-uuid' => @handler_activity_uuid,
@@ -25,8 +25,9 @@
25
25
  <vote>syncing_before</vote>
26
26
  <vote>syncing_after</vote>
27
27
  </topic>
28
- <topic id='condition'>
29
- <event>eval</event>
28
+ <topic id='gateway'>
29
+ <event>decide</event>
30
+ <event>join</event>
30
31
  </topic>
31
32
  <topic id='position'>
32
33
  <event>change</event>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.37
4
+ version: 2.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2022-11-08 00:00:00.000000000 Z
13
+ date: 2022-12-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl