cpee 2.0.20 → 2.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/CPEE.xml +8 -0
- data/cockpit/Signavio.xml +8 -0
- data/cockpit/css/model.css +2 -0
- data/cockpit/css/replay.css +55 -0
- data/cockpit/css/ui.css +3 -1
- data/cockpit/edit.html +260 -0
- data/cockpit/index.html +2 -2
- data/cockpit/js/edit.js +32 -0
- data/cockpit/js/instance.js +34 -36
- data/cockpit/js/model.js +0 -25
- data/cockpit/js/parameters.js +3 -0
- data/cockpit/js/replay.js +40 -0
- data/cockpit/js/ui.js +7 -0
- data/cockpit/model.html +4 -1
- data/cockpit/replay.html +52 -0
- data/cockpit/templates/instantiate.local/Take_Sub.xml +1 -1
- data/cockpit/themes/compact/rngs/call.rng +93 -41
- data/cockpit/themes/compact/rngs/callmanipulate.rng +113 -40
- data/cockpit/themes/compact/theme.js +57 -25
- data/cockpit/themes/{diana → control}/rngs/alternative.rng +0 -0
- data/cockpit/themes/control/rngs/call.rng +174 -0
- data/cockpit/themes/control/rngs/callmanipulate.rng +218 -0
- data/cockpit/themes/{diana → control}/rngs/choose.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/closed_loop.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/closed_loop_cancel.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/closed_loop_control.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/closed_loop_measuring.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/critical.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/escape.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/group.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/loop.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/manipulate.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/otherwise.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/parallel.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/parallel_branch.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/scripts.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/stop.rng +0 -0
- data/cockpit/themes/{diana → control}/rngs/terminate.rng +0 -0
- data/cockpit/themes/{diana → control}/symbols/alternative.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/arrow.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/call.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/callmanipulate.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/choose.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/choose_exclusive.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/choose_inclusive.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/closed_loop.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/closed_loop_cancel.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/closed_loop_control.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/closed_loop_measuring.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/complex.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/critical.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/end.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/escape.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/event_end.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/loop.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/manipulate.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/otherwise.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/parallel.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/parallel_branch.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/parallel_branch_compact.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/parallel_branch_event.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/parallel_branch_normal.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/scripts.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/start.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/stop.svg +0 -0
- data/cockpit/themes/{diana → control}/symbols/terminate.svg +0 -0
- data/cockpit/themes/{diana → control}/theme.js +74 -28
- data/cockpit/themes/default/rngs/call.rng +93 -41
- data/cockpit/themes/default/rngs/callmanipulate.rng +113 -40
- data/cockpit/themes/default/theme.js +1318 -0
- data/cockpit/themes/extended/rngs/call.rng +93 -41
- data/cockpit/themes/extended/rngs/callmanipulate.rng +113 -40
- data/cockpit/themes/extended/theme.js +50 -19
- data/cockpit/themes/model/rngs/call.rng +21 -20
- data/cockpit/themes/model/rngs/callmanipulate.rng +23 -22
- data/cockpit/themes/model/theme.js +51 -20
- data/cockpit/themes/packed/rngs/call.rng +93 -41
- data/cockpit/themes/packed/rngs/callmanipulate.rng +113 -40
- data/cockpit/themes/packed/theme.js +50 -19
- data/cockpit/themes/preset/rngs/call.rng +93 -41
- data/cockpit/themes/preset/rngs/callmanipulate.rng +113 -40
- data/cockpit/themes/preset/theme.js +49 -18
- data/cockpit/track.html +0 -7
- data/cockpit/transformations.xml +4 -0
- data/cpee.gemspec +2 -2
- data/lib/callbacks.xml +5 -0
- data/lib/cpee/controller.rb +29 -27
- data/lib/cpee/implementation_callbacks.rb +53 -0
- data/server/handlerwrappers/default.rb +17 -5
- data/server/resources/notifications/logging/subscription.xml +6 -0
- data/server/resources/transformation_dslx.xsl +1 -1
- data/server/routing/end.pid +1 -0
- data/server/routing/forward-events.pid +1 -0
- data/server/routing/forward-votes.pid +1 -0
- data/server/routing/persist.pid +1 -0
- data/server/routing/persist.rb +3 -3
- data/server/server.pid +1 -0
- metadata +63 -50
- data/cockpit/edit.html +0 -1
- data/cockpit/themes/diana/rngs/call.rng +0 -122
- data/cockpit/themes/diana/rngs/callmanipulate.rng +0 -145
data/cockpit/edit.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
cockpit/index.html
|
@@ -1,122 +0,0 @@
|
|
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="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
-
<attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
|
3
|
-
<data type="string" rngui:readonly="true"/>
|
4
|
-
</attribute>
|
5
|
-
<attribute name="endpoint" rngui:label="Endpoint">
|
6
|
-
<data type="string"/>
|
7
|
-
</attribute>
|
8
|
-
<element name="parameters" rngui:header="Properties">
|
9
|
-
<element name="label" rngui:label="Label">
|
10
|
-
<data type="string" rngui:label="Short description of the task"/>
|
11
|
-
</element>
|
12
|
-
<element name="method" rngui:label="Method">
|
13
|
-
<choice>
|
14
|
-
<value>:post</value>
|
15
|
-
<value>:get</value>
|
16
|
-
<value>:put</value>
|
17
|
-
<value>:delete</value>
|
18
|
-
</choice>
|
19
|
-
</element>
|
20
|
-
<element name="arguments" rngui:header="Arguments">
|
21
|
-
<zeroOrMore rngui:label="Create Argument Pair">
|
22
|
-
<element rngui:label="Name" rngui:labeltype="xml">
|
23
|
-
<anyName/>
|
24
|
-
<data type="string" rngui:label="Value"/>
|
25
|
-
</element>
|
26
|
-
</zeroOrMore>
|
27
|
-
</element>
|
28
|
-
<element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
|
29
|
-
<element name="sensors" rngui:header="Sensors" rngui:fold="closed">
|
30
|
-
<zeroOrMore rngui:label="Add Sensor">
|
31
|
-
<element name="sensor">
|
32
|
-
<element name="name" rngui:label="Label">
|
33
|
-
<data type="string" rngui:label="Label"/>
|
34
|
-
</element>
|
35
|
-
<element name="extractor_url" rngui:label="Extractor Url">
|
36
|
-
<data type="string" rngui:label="Service Url"/>
|
37
|
-
</element>
|
38
|
-
<element name="extractor_arg" rngui:label="Extractor Argument">
|
39
|
-
<data type="string" rngui:label="Value / Json"/>
|
40
|
-
</element>
|
41
|
-
<element name="visualizer_url" rngui:label="Visualizer Url">
|
42
|
-
<data type="string" rngui:label="Service Url"/>
|
43
|
-
</element>
|
44
|
-
<element name="visualizer_params" rngui:header="Visualizer Arguments">
|
45
|
-
<zeroOrMore rngui:label="Create Visualizer Argument Pairs">
|
46
|
-
<element rngui:label="Name">
|
47
|
-
<anyName/>
|
48
|
-
<data type="string" rngui:label="Value / Json"/>
|
49
|
-
</element>
|
50
|
-
</zeroOrMore>
|
51
|
-
</element>
|
52
|
-
</element>
|
53
|
-
</zeroOrMore>
|
54
|
-
</element>
|
55
|
-
<element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
|
56
|
-
<zeroOrMore rngui:label="Add Aggregator">
|
57
|
-
<element name="aggregator">
|
58
|
-
<element name="name" rngui:label="Label">
|
59
|
-
<data type="string" rngui:label="Label"/>
|
60
|
-
</element>
|
61
|
-
<element name="aggregator_url" rngui:label="Aggregator Url">
|
62
|
-
<data type="string" rngui:label="Service Url"/>
|
63
|
-
</element>
|
64
|
-
<element name="aggregator_arg" rngui:label="Aggregator Argument">
|
65
|
-
<data type="string" rngui:label="Value / Json"/>
|
66
|
-
</element>
|
67
|
-
</element>
|
68
|
-
</zeroOrMore>
|
69
|
-
</element>
|
70
|
-
<element name="costs" rngui:header="Costs" rngui:fold="closed">
|
71
|
-
<zeroOrMore rngui:label="Create Cost Factor">
|
72
|
-
<element name="cost_factor">
|
73
|
-
<element name="name" rngui:label="Label">
|
74
|
-
<data type="string" rngui:label="Label"/>
|
75
|
-
</element>
|
76
|
-
<element name="target" rngui:label="Target Value">
|
77
|
-
<data type="string" rngui:label="Value"/>
|
78
|
-
</element>
|
79
|
-
<element name="vfunc_url" rngui:label="Violation Function Url">
|
80
|
-
<data type="string" rngui:label="Service Url"/>
|
81
|
-
</element>
|
82
|
-
<element name="vfunc_arg" rngui:label="Violation Function Argument">
|
83
|
-
<data type="string" rngui:label="Service Url"/>
|
84
|
-
</element>
|
85
|
-
<element name="vcost" rngui:label="Violation Cost">
|
86
|
-
<data type="string" rngui:label="Value"/>
|
87
|
-
</element>
|
88
|
-
</element>
|
89
|
-
</zeroOrMore>
|
90
|
-
</element>
|
91
|
-
</element>
|
92
|
-
<element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
|
93
|
-
<element name="url" rngui:label='HTML Snippet'>
|
94
|
-
<data type="string" rngui:label="url to report snippet"/>
|
95
|
-
</element>
|
96
|
-
</element>
|
97
|
-
</element>
|
98
|
-
<element name="annotations" rngui:header="Annotations">
|
99
|
-
<element name="_timing" rngui:header="Timing" rngui:fold="closed">
|
100
|
-
<element name="_timing_wait" rngui:label="ω - Wait">
|
101
|
-
<data type="float" rngui:label="[0,1]" rngui:default="0.5"/>
|
102
|
-
</element>
|
103
|
-
<element name="_timing_threshold" rngui:label="κ - Threshold">
|
104
|
-
<data type="float" rngui:label="[0,3,n]" rngui:default="3"/>
|
105
|
-
</element>
|
106
|
-
<element name="_timing_min" rngui:label="Min in min">
|
107
|
-
<data type="float" rngui:label="Minutes"/>
|
108
|
-
</element>
|
109
|
-
<element name="_timing_max" rngui:label="Max in min">
|
110
|
-
<data type="float" rngui:label="Minutes"/>
|
111
|
-
</element>
|
112
|
-
<element name="_timing_avg" rngui:label="Avg in min">
|
113
|
-
<data type="float" rngui:label="Minutes"/>
|
114
|
-
</element>
|
115
|
-
</element>
|
116
|
-
<element name="_notes" rngui:header="Notes" rngui:fold="closed">
|
117
|
-
<element name="_notes_general" rngui:label="General">
|
118
|
-
<text rngui:wrap="true" rngui:label="Notes"/>
|
119
|
-
</element>
|
120
|
-
</element>
|
121
|
-
</element>
|
122
|
-
</element>
|
@@ -1,145 +0,0 @@
|
|
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="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2
|
-
<attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
|
3
|
-
<data type="string" rngui:readonly="true"/>
|
4
|
-
</attribute>
|
5
|
-
<attribute name="endpoint" rngui:label="Endpoint">
|
6
|
-
<data type="string"/>
|
7
|
-
</attribute>
|
8
|
-
<element name="parameters" rngui:header="Properties">
|
9
|
-
<element name="label" rngui:label="Label">
|
10
|
-
<data type="string" rngui:label="Short description of the task"/>
|
11
|
-
</element>
|
12
|
-
<element name="method" rngui:label="Method">
|
13
|
-
<choice>
|
14
|
-
<value>:post</value>
|
15
|
-
<value>:get</value>
|
16
|
-
<value>:put</value>
|
17
|
-
<value>:delete</value>
|
18
|
-
</choice>
|
19
|
-
</element>
|
20
|
-
<element name="arguments" rngui:header="Arguments">
|
21
|
-
<zeroOrMore rngui:label="Create Argument Pair">
|
22
|
-
<element rngui:label="Name" rngui:labeltype="xml">
|
23
|
-
<anyName/>
|
24
|
-
<data type="string" rngui:label="Value"/>
|
25
|
-
</element>
|
26
|
-
</zeroOrMore>
|
27
|
-
</element>
|
28
|
-
<element name="stream" rngui:header="Data Stream Handling" rngui:fold="closed">
|
29
|
-
<element name="sensors" rngui:header="Sensors" rngui:fold="closed">
|
30
|
-
<zeroOrMore rngui:label="Add Sensor">
|
31
|
-
<element name="sensor">
|
32
|
-
<element name="name" rngui:label="Label">
|
33
|
-
<data type="string" rngui:label="Label"/>
|
34
|
-
</element>
|
35
|
-
<element name="extractor_url" rngui:label="Extractor Url">
|
36
|
-
<data type="string" rngui:label="Service Url"/>
|
37
|
-
</element>
|
38
|
-
<element name="extractor_arg" rngui:label="Extractor Argument">
|
39
|
-
<data type="string" rngui:label="Value / Json"/>
|
40
|
-
</element>
|
41
|
-
<element name="visualizer_url" rngui:label="Visualizer Url">
|
42
|
-
<data type="string" rngui:label="Service Url"/>
|
43
|
-
</element>
|
44
|
-
<element name="visualizer_params" rngui:header="Visualizer Arguments">
|
45
|
-
<zeroOrMore rngui:label="Create Visualizer Argument Pairs">
|
46
|
-
<element rngui:label="Name">
|
47
|
-
<anyName/>
|
48
|
-
<data type="string" rngui:label="Value / Json"/>
|
49
|
-
</element>
|
50
|
-
</zeroOrMore>
|
51
|
-
</element>
|
52
|
-
</element>
|
53
|
-
</zeroOrMore>
|
54
|
-
</element>
|
55
|
-
<element name="aggregators" rngui:header="Aggregators" rngui:fold="closed">
|
56
|
-
<zeroOrMore rngui:label="Add Aggregator">
|
57
|
-
<element name="aggregator">
|
58
|
-
<element name="name" rngui:label="Label">
|
59
|
-
<data type="string" rngui:label="Label"/>
|
60
|
-
</element>
|
61
|
-
<element name="aggregator_url" rngui:label="Aggregator Url">
|
62
|
-
<data type="string" rngui:label="Service Url"/>
|
63
|
-
</element>
|
64
|
-
<element name="aggregator_arg" rngui:label="Aggregator Argument">
|
65
|
-
<data type="string" rngui:label="Value / Json"/>
|
66
|
-
</element>
|
67
|
-
</element>
|
68
|
-
</zeroOrMore>
|
69
|
-
</element>
|
70
|
-
<element name="costs" rngui:header="Costs" rngui:fold="closed">
|
71
|
-
<zeroOrMore rngui:label="Create Cost Factor">
|
72
|
-
<element name="cost_factor">
|
73
|
-
<element name="name" rngui:label="Label">
|
74
|
-
<data type="string" rngui:label="Label"/>
|
75
|
-
</element>
|
76
|
-
<element name="target" rngui:label="Target Value">
|
77
|
-
<data type="string" rngui:label="Value"/>
|
78
|
-
</element>
|
79
|
-
<element name="vfunc_url" rngui:label="Violation Function Url">
|
80
|
-
<data type="string" rngui:label="Service Url"/>
|
81
|
-
</element>
|
82
|
-
<element name="vfunc_arg" rngui:label="Violation Function Argument">
|
83
|
-
<data type="string" rngui:label="Service Url"/>
|
84
|
-
</element>
|
85
|
-
<element name="vcost" rngui:label="Violation Cost">
|
86
|
-
<data type="string" rngui:label="Value"/>
|
87
|
-
</element>
|
88
|
-
</element>
|
89
|
-
</zeroOrMore>
|
90
|
-
</element>
|
91
|
-
</element>
|
92
|
-
<element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
|
93
|
-
<element name="url" rngui:label='HTML Snippet'>
|
94
|
-
<data type="string" rngui:label="url to report snippet"/>
|
95
|
-
</element>
|
96
|
-
</element>
|
97
|
-
</element>
|
98
|
-
<element name="code" rngui:header="Implementation">
|
99
|
-
<element name="prepare" rngui:header="Prepare" rngui:label="Code" rngui:fold="closed_conditional">
|
100
|
-
<text rngui:label="Script that is executed, before a service call"/>
|
101
|
-
</element>
|
102
|
-
<element name="finalize" rngui:header="Finalize" rngui:label="Code" rngui:fold="closed_conditional">
|
103
|
-
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
104
|
-
<data type="string" rngui:readonly="true"/>
|
105
|
-
</attribute>
|
106
|
-
<text rngui:label="Script that is executed, when a service returns data"/>
|
107
|
-
</element>
|
108
|
-
<element name="update" rngui:header="Update" rngui:label="Code" rngui:fold="closed_conditional">
|
109
|
-
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
110
|
-
<data type="string" rngui:readonly="true"/>
|
111
|
-
</attribute>
|
112
|
-
<text rngui:label="Script that is executed, when a service sends intermediate data"/>
|
113
|
-
</element>
|
114
|
-
<element name="rescue" rngui:header="Rescue" rngui:label="Code" rngui:fold="closed_conditional">
|
115
|
-
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
116
|
-
<data type="string" rngui:readonly="true"/>
|
117
|
-
</attribute>
|
118
|
-
<text rngui:label="Script that is executed, if a service call fails"/>
|
119
|
-
</element>
|
120
|
-
</element>
|
121
|
-
<element name="annotations" rngui:header="Annotations">
|
122
|
-
<element name="_timing" rngui:header="Timing" rngui:fold="closed">
|
123
|
-
<element name="_timing_wait" rngui:label="ω - Wait">
|
124
|
-
<data type="float" rngui:label="[0,1]"/>
|
125
|
-
</element>
|
126
|
-
<element name="_timing_threshold" rngui:label="κ - Threshold">
|
127
|
-
<data type="float" rngui:label="[0,3,n]"/>
|
128
|
-
</element>
|
129
|
-
<element name="_timing_min" rngui:label="Min in min">
|
130
|
-
<data type="float" rngui:label="Minutes"/>
|
131
|
-
</element>
|
132
|
-
<element name="_timing_max" rngui:label="Max in min">
|
133
|
-
<data type="float" rngui:label="Minutes"/>
|
134
|
-
</element>
|
135
|
-
<element name="_timing_avg" rngui:label="Avg in min">
|
136
|
-
<data type="float" rngui:label="Minutes"/>
|
137
|
-
</element>
|
138
|
-
</element>
|
139
|
-
<element name="_notes" rngui:header="Notes" rngui:fold="closed">
|
140
|
-
<element name="_notes_general" rngui:label="General">
|
141
|
-
<text rngui:wrap="true" rngui:label="Notes"/>
|
142
|
-
</element>
|
143
|
-
</element>
|
144
|
-
</element>
|
145
|
-
</element>
|