cpee 1.5.16 → 1.5.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/model.css +24 -0
- data/cockpit/css/ui.css +25 -0
- data/cockpit/index.html +6 -6
- data/cockpit/js/details.js +70 -52
- data/cockpit/js/instance.js +62 -18
- data/cockpit/js/model.js +41 -0
- data/cockpit/js/ui.js +3 -0
- data/cockpit/js/wfadaptor.js +1 -1
- data/cockpit/model.html +191 -0
- data/cockpit/testsets/BCO.xml +2 -2
- data/cockpit/testsets/BCS.xml +2 -2
- data/cockpit/testsets/Lego Full.xml +142 -0
- data/cockpit/testsets/Lego Liddy.xml +40 -0
- data/cockpit/testsets/Lego_Part_1.xml +85 -0
- data/cockpit/testsets/Linear.xml +2 -2
- data/cockpit/testsets/Syncing P34 1.xml +2 -2
- data/cockpit/testsets/Syncing P34 2.xml +2 -2
- data/cockpit/testsets/Syncing P34 3.xml +2 -2
- data/cockpit/testsets/Syncing P34.xml +2 -2
- data/cockpit/testsets/testsets.xml +3 -1
- data/cockpit/themes/compact/rngs/alternative.rng +1 -0
- data/cockpit/themes/compact/rngs/call.rng +111 -0
- data/cockpit/themes/compact/rngs/callmanipulate.rng +134 -0
- data/cockpit/themes/compact/rngs/choose.rng +1 -0
- data/cockpit/themes/compact/rngs/critical.rng +1 -0
- data/cockpit/themes/compact/rngs/escape.rng +1 -0
- data/cockpit/themes/compact/rngs/group.rng +1 -0
- data/cockpit/themes/compact/rngs/loop.rng +1 -0
- data/cockpit/themes/compact/rngs/manipulate.rng +1 -0
- data/cockpit/themes/compact/rngs/otherwise.rng +1 -0
- data/cockpit/themes/compact/rngs/parallel.rng +1 -0
- data/cockpit/themes/compact/rngs/parallel_branch.rng +1 -0
- data/cockpit/themes/compact/rngs/scripts.rng +24 -0
- data/cockpit/themes/compact/rngs/stop.rng +1 -0
- data/cockpit/themes/compact/rngs/terminate.rng +1 -0
- data/cockpit/themes/compact/symbols/alternative.svg +5 -0
- data/cockpit/themes/compact/symbols/arrow.svg +3 -0
- data/cockpit/themes/compact/symbols/call.svg +6 -0
- data/cockpit/themes/compact/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/compact/symbols/choose.svg +5 -0
- data/cockpit/themes/compact/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/compact/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/compact/symbols/complex.svg +8 -0
- data/cockpit/themes/compact/symbols/critical.svg +4 -0
- data/cockpit/themes/compact/symbols/end.svg +3 -0
- data/cockpit/themes/compact/symbols/escape.svg +5 -0
- data/cockpit/themes/compact/symbols/event_end.svg +3 -0
- data/cockpit/themes/compact/symbols/loop.svg +5 -0
- data/cockpit/themes/compact/symbols/manipulate.svg +4 -0
- data/cockpit/themes/compact/symbols/otherwise.svg +5 -0
- data/cockpit/themes/compact/symbols/parallel.svg +5 -0
- data/cockpit/themes/compact/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/compact/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/compact/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/compact/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/compact/symbols/scripts.svg +4 -0
- data/cockpit/themes/compact/symbols/start.svg +3 -0
- data/cockpit/themes/compact/symbols/stop.svg +5 -0
- data/cockpit/themes/compact/symbols/terminate.svg +4 -0
- data/cockpit/themes/compact/theme.js +101 -61
- data/cockpit/themes/default/rngs/callmanipulate.rng +5 -0
- data/cockpit/themes/default/theme.js +97 -57
- data/cockpit/themes/extended/rngs/alternative.rng +1 -0
- data/cockpit/themes/extended/rngs/call.rng +111 -0
- data/cockpit/themes/extended/rngs/callmanipulate.rng +134 -0
- data/cockpit/themes/extended/rngs/choose.rng +1 -0
- data/cockpit/themes/extended/rngs/critical.rng +1 -0
- data/cockpit/themes/extended/rngs/escape.rng +1 -0
- data/cockpit/themes/extended/rngs/group.rng +1 -0
- data/cockpit/themes/extended/rngs/loop.rng +1 -0
- data/cockpit/themes/extended/rngs/manipulate.rng +1 -0
- data/cockpit/themes/extended/rngs/otherwise.rng +1 -0
- data/cockpit/themes/extended/rngs/parallel.rng +1 -0
- data/cockpit/themes/extended/rngs/parallel_branch.rng +1 -0
- data/cockpit/themes/extended/rngs/scripts.rng +24 -0
- data/cockpit/themes/extended/rngs/stop.rng +1 -0
- data/cockpit/themes/extended/rngs/terminate.rng +1 -0
- data/cockpit/themes/extended/symbols/alternative.svg +5 -0
- data/cockpit/themes/extended/symbols/arrow.svg +3 -0
- data/cockpit/themes/extended/symbols/call.svg +6 -0
- data/cockpit/themes/extended/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/extended/symbols/choose.svg +5 -0
- data/cockpit/themes/extended/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/extended/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/extended/symbols/complex.svg +8 -0
- data/cockpit/themes/extended/symbols/critical.svg +4 -0
- data/cockpit/themes/extended/symbols/end.svg +3 -0
- data/cockpit/themes/extended/symbols/escape.svg +5 -0
- data/cockpit/themes/extended/symbols/event_end.svg +3 -0
- data/cockpit/themes/extended/symbols/loop.svg +5 -0
- data/cockpit/themes/extended/symbols/manipulate.svg +4 -0
- data/cockpit/themes/extended/symbols/otherwise.svg +5 -0
- data/cockpit/themes/extended/symbols/parallel.svg +5 -0
- data/cockpit/themes/extended/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/extended/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/extended/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/extended/symbols/scripts.svg +4 -0
- data/cockpit/themes/extended/symbols/start.svg +3 -0
- data/cockpit/themes/extended/symbols/stop.svg +5 -0
- data/cockpit/themes/extended/symbols/terminate.svg +4 -0
- data/cockpit/themes/extended/theme.js +101 -61
- data/cockpit/themes/labels/rngs/alternative.rng +25 -0
- data/cockpit/themes/labels/rngs/call.rng +81 -0
- data/cockpit/themes/labels/rngs/callmanipulate.rng +101 -0
- data/cockpit/themes/labels/rngs/choose.rng +12 -0
- data/cockpit/themes/labels/rngs/critical.rng +5 -0
- data/cockpit/themes/labels/rngs/escape.rng +1 -0
- data/cockpit/themes/labels/rngs/finalize.rng +6 -0
- data/cockpit/themes/labels/rngs/group.rng +3 -0
- data/cockpit/themes/labels/rngs/loop.rng +22 -0
- data/cockpit/themes/labels/rngs/manipulate.rng +9 -0
- data/cockpit/themes/labels/rngs/otherwise.rng +22 -0
- data/cockpit/themes/labels/rngs/parallel.rng +13 -0
- data/cockpit/themes/labels/rngs/parallel_branch.rng +8 -0
- data/cockpit/themes/labels/rngs/stop.rng +5 -0
- data/cockpit/themes/labels/rngs/terminate.rng +1 -0
- data/cockpit/themes/labels/rngs/update.rng +6 -0
- data/cockpit/themes/labels/symbols/alternative.svg +5 -0
- data/cockpit/themes/labels/symbols/arrow.svg +3 -0
- data/cockpit/themes/labels/symbols/call.svg +6 -0
- data/cockpit/themes/labels/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/labels/symbols/choose.svg +5 -0
- data/cockpit/themes/labels/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/labels/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/labels/symbols/complex.svg +8 -0
- data/cockpit/themes/labels/symbols/critical.svg +4 -0
- data/cockpit/themes/labels/symbols/end.svg +3 -0
- data/cockpit/themes/labels/symbols/escape.svg +5 -0
- data/cockpit/themes/labels/symbols/event_end.svg +3 -0
- data/cockpit/themes/labels/symbols/loop.svg +5 -0
- data/cockpit/themes/labels/symbols/manipulate.svg +4 -0
- data/cockpit/themes/labels/symbols/otherwise.svg +5 -0
- data/cockpit/themes/labels/symbols/parallel.svg +5 -0
- data/cockpit/themes/labels/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/labels/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/labels/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/labels/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/labels/symbols/scripts.svg +4 -0
- data/cockpit/themes/labels/symbols/start.svg +3 -0
- data/cockpit/themes/labels/symbols/stop.svg +5 -0
- data/cockpit/themes/labels/symbols/terminate.svg +4 -0
- data/cockpit/themes/model/rngs/alternative.rng +1 -0
- data/cockpit/themes/model/rngs/call.rng +62 -0
- data/cockpit/themes/model/rngs/callmanipulate.rng +67 -0
- data/cockpit/themes/model/rngs/choose.rng +1 -0
- data/cockpit/themes/model/rngs/critical.rng +1 -0
- data/cockpit/themes/model/rngs/escape.rng +1 -0
- data/cockpit/themes/model/rngs/group.rng +1 -0
- data/cockpit/themes/model/rngs/loop.rng +1 -0
- data/cockpit/themes/model/rngs/manipulate.rng +1 -0
- data/cockpit/themes/model/rngs/otherwise.rng +1 -0
- data/cockpit/themes/model/rngs/parallel.rng +1 -0
- data/cockpit/themes/model/rngs/parallel_branch.rng +1 -0
- data/cockpit/themes/model/rngs/scripts.rng +8 -0
- data/cockpit/themes/model/rngs/stop.rng +1 -0
- data/cockpit/themes/model/rngs/terminate.rng +1 -0
- data/cockpit/themes/model/symbols/alternative.svg +5 -0
- data/cockpit/themes/model/symbols/arrow.svg +3 -0
- data/cockpit/themes/model/symbols/call.svg +6 -0
- data/cockpit/themes/model/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/model/symbols/choose.svg +5 -0
- data/cockpit/themes/model/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/model/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/model/symbols/complex.svg +8 -0
- data/cockpit/themes/model/symbols/critical.svg +4 -0
- data/cockpit/themes/model/symbols/end.svg +3 -0
- data/cockpit/themes/model/symbols/escape.svg +5 -0
- data/cockpit/themes/model/symbols/event_end.svg +3 -0
- data/cockpit/themes/model/symbols/loop.svg +5 -0
- data/cockpit/themes/model/symbols/manipulate.svg +4 -0
- data/cockpit/themes/model/symbols/otherwise.svg +5 -0
- data/cockpit/themes/model/symbols/parallel.svg +5 -0
- data/cockpit/themes/model/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/model/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/model/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/model/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/model/symbols/scripts.svg +4 -0
- data/cockpit/themes/model/symbols/start.svg +3 -0
- data/cockpit/themes/model/symbols/stop.svg +5 -0
- data/cockpit/themes/model/symbols/terminate.svg +4 -0
- data/cockpit/themes/model/theme.js +1267 -0
- data/cockpit/themes/packed/rngs/alternative.rng +1 -0
- data/cockpit/themes/packed/rngs/call.rng +111 -0
- data/cockpit/themes/packed/rngs/callmanipulate.rng +134 -0
- data/cockpit/themes/packed/rngs/choose.rng +1 -0
- data/cockpit/themes/packed/rngs/critical.rng +1 -0
- data/cockpit/themes/packed/rngs/escape.rng +1 -0
- data/cockpit/themes/packed/rngs/group.rng +1 -0
- data/cockpit/themes/packed/rngs/loop.rng +1 -0
- data/cockpit/themes/packed/rngs/manipulate.rng +1 -0
- data/cockpit/themes/packed/rngs/otherwise.rng +1 -0
- data/cockpit/themes/packed/rngs/parallel.rng +1 -0
- data/cockpit/themes/packed/rngs/parallel_branch.rng +1 -0
- data/cockpit/themes/packed/rngs/scripts.rng +24 -0
- data/cockpit/themes/packed/rngs/stop.rng +1 -0
- data/cockpit/themes/packed/rngs/terminate.rng +1 -0
- data/cockpit/themes/packed/symbols/alternative.svg +5 -0
- data/cockpit/themes/packed/symbols/arrow.svg +3 -0
- data/cockpit/themes/packed/symbols/call.svg +6 -0
- data/cockpit/themes/packed/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/packed/symbols/choose.svg +5 -0
- data/cockpit/themes/packed/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/packed/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/packed/symbols/complex.svg +8 -0
- data/cockpit/themes/packed/symbols/critical.svg +4 -0
- data/cockpit/themes/packed/symbols/end.svg +3 -0
- data/cockpit/themes/packed/symbols/escape.svg +5 -0
- data/cockpit/themes/packed/symbols/event_end.svg +3 -0
- data/cockpit/themes/packed/symbols/loop.svg +5 -0
- data/cockpit/themes/packed/symbols/manipulate.svg +4 -0
- data/cockpit/themes/packed/symbols/otherwise.svg +5 -0
- data/cockpit/themes/packed/symbols/parallel.svg +5 -0
- data/cockpit/themes/packed/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/packed/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/packed/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/packed/symbols/scripts.svg +4 -0
- data/cockpit/themes/packed/symbols/start.svg +3 -0
- data/cockpit/themes/packed/symbols/stop.svg +5 -0
- data/cockpit/themes/packed/symbols/terminate.svg +4 -0
- data/cockpit/themes/packed/theme.js +101 -61
- data/cockpit/themes/preset/rngs/call.rng +0 -10
- data/cockpit/themes/preset/rngs/callmanipulate.rng +0 -13
- data/cockpit/themes/preset/symbols/alternative.svg +5 -0
- data/cockpit/themes/preset/symbols/arrow.svg +3 -0
- data/cockpit/themes/preset/symbols/call.svg +6 -0
- data/cockpit/themes/preset/symbols/callmanipulate.svg +8 -0
- data/cockpit/themes/preset/symbols/choose.svg +5 -0
- data/cockpit/themes/preset/symbols/choose_exclusive.svg +5 -0
- data/cockpit/themes/preset/symbols/choose_inclusive.svg +4 -0
- data/cockpit/themes/preset/symbols/complex.svg +8 -0
- data/cockpit/themes/preset/symbols/critical.svg +4 -0
- data/cockpit/themes/preset/symbols/end.svg +3 -0
- data/cockpit/themes/preset/symbols/escape.svg +5 -0
- data/cockpit/themes/preset/symbols/event_end.svg +3 -0
- data/cockpit/themes/preset/symbols/loop.svg +5 -0
- data/cockpit/themes/preset/symbols/manipulate.svg +4 -0
- data/cockpit/themes/preset/symbols/otherwise.svg +5 -0
- data/cockpit/themes/preset/symbols/parallel.svg +5 -0
- data/cockpit/themes/preset/symbols/parallel_branch.svg +5 -0
- data/cockpit/themes/preset/symbols/parallel_branch_compact.svg +4 -0
- data/cockpit/themes/preset/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/preset/symbols/scripts.svg +4 -0
- data/cockpit/themes/preset/symbols/start.svg +3 -0
- data/cockpit/themes/preset/symbols/stop.svg +5 -0
- data/cockpit/themes/preset/symbols/terminate.svg +4 -0
- data/cockpit/themes/preset/theme.js +101 -61
- data/cpee.gemspec +3 -2
- data/lib/cpee/implementation.rb +28 -0
- data/lib/cpee/instantiation.rb +22 -5
- data/lib/engine.xml +4 -0
- data/lib/instantiation.xml +9 -0
- data/log/azure.rb +10 -0
- data/log/azure_logger.rb +136 -0
- data/server/handlerwrappers/default.rb +12 -12
- data/server/resources/transformation_dslx.xsl +29 -5
- data/server/server.pid +1 -0
- metadata +253 -3
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="cline hfill stand"/>
|
3
|
+
<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
|
4
|
+
<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="11" y="6" width="9" height="18" rx="0" class="hline white"/>
|
3
|
+
<path class="cline hfill stand" d="M 11,5 C 2,9 2,21 11,25 M 20,5 C 29,9 29,21 20,25" style="stroke-dasharray:1,4;"/>
|
4
|
+
<line x1="15.6" y1="4" x2="15.6" y2="27" class="ourline"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="1" y="3" width="24" height="24" rx="4" class="hfill rfill cline stand"/>
|
3
|
+
|
4
|
+
<circle cx="24" cy="15" r="10" class="cline rfill stand" style="stroke-dasharray: 1,3"/>
|
5
|
+
<circle cx="24" cy="15" r="7" class="cline rfill stand" style="stroke-dasharray: 1,3"/>
|
6
|
+
<line x1="24" y1="11" x2="20" y2="18" class="stand"/>
|
7
|
+
<line x1="20" y1="18" x2="28" y2="18" class="stand"/>
|
8
|
+
<line x1="28" y1="18" x2="24" y2="11" class="stand"/>
|
9
|
+
|
10
|
+
<circle cx="55.5" cy="15" r="14" class="cline hfill rfill stand"/>
|
11
|
+
<line x1="55.5" y1="11" x2="51.5" y2="18" class="stand"/>
|
12
|
+
<line x1="51.5" y1="18" x2="59.5" y2="18" class="stand"/>
|
13
|
+
<line x1="59.5" y1="18" x2="55.5" y2="11" class="stand"/>
|
14
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<rect x="11" y="6" width="9" height="18" rx="0" class="hline white"/>
|
3
|
+
<path class="cline hfill stand" d="M 11,5 C 2,9 2,21 11,25 M 20,5 C 29,9 29,21 20,25" style="stroke-dasharray:1,4;"/>
|
4
|
+
<line x1="15.6" y1="4" x2="15.6" y2="27" class="ourline"/>
|
5
|
+
</svg>
|
@@ -132,6 +132,13 @@ function WFAdaptorManifestation(adaptor) {
|
|
132
132
|
menu['Insert into'] = group;
|
133
133
|
copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
|
134
134
|
}
|
135
|
+
if (self.elements[xml_node.get(0).tagName].permissible_children_expert) {
|
136
|
+
group = self.elements[xml_node.get(0).tagName].permissible_children_expert(xml_node,'into');
|
137
|
+
if(group.length > 0) {
|
138
|
+
menu['Insert into (Experts Only!)'] = group;
|
139
|
+
copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
|
140
|
+
}
|
141
|
+
}
|
135
142
|
}
|
136
143
|
if (sibling) {
|
137
144
|
group = self.elements[xml_node.parent().get(0).tagName].permissible_children(xml_node,'after');
|
@@ -139,6 +146,13 @@ function WFAdaptorManifestation(adaptor) {
|
|
139
146
|
menu['Insert after'] = group;
|
140
147
|
copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
|
141
148
|
}
|
149
|
+
if (self.elements[xml_node.parent().get(0).tagName].permissible_children_expert) {
|
150
|
+
group = self.elements[xml_node.parent().get(0).tagName].permissible_children_expert(xml_node,'after');
|
151
|
+
if(group.length > 0) {
|
152
|
+
menu['Insert after (Experts Only!)'] = group;
|
153
|
+
copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
|
154
|
+
}
|
155
|
+
}
|
142
156
|
}
|
143
157
|
|
144
158
|
if(xml_node.get(0).tagName != 'description' && !self.elements[xml_node.get(0).tagName].neverdelete) {
|
@@ -146,13 +160,13 @@ function WFAdaptorManifestation(adaptor) {
|
|
146
160
|
icon.children('.rfill').addClass('menu');
|
147
161
|
menu['Delete'] = [{
|
148
162
|
'label': 'Remove Element',
|
149
|
-
'function_call': self.adaptor.description.remove,
|
163
|
+
'function_call': function(selector,target,selected){ self.adaptor.description.remove(selector,target); self.adaptor.illustrator.get_label_by_svg_id(selected).addClass('selected'); },
|
150
164
|
'menu_icon': icon,
|
151
165
|
'type': undefined,
|
152
|
-
'params': [null, xml_node]
|
166
|
+
'params': [null, xml_node, self.selected()]
|
153
167
|
}];
|
154
168
|
}
|
155
|
-
if($('>
|
169
|
+
if($('> code', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
|
156
170
|
var icon = self.elements.callmanipulate.illustrator.svg.clone();
|
157
171
|
icon.children('.rfill:last').addClass('menu');
|
158
172
|
menu['Delete'].push({
|
@@ -160,7 +174,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
160
174
|
'function_call': self.adaptor.description.remove,
|
161
175
|
'menu_icon': icon,
|
162
176
|
'type': undefined,
|
163
|
-
'params': ['>
|
177
|
+
'params': ['> code', xml_node]
|
164
178
|
});
|
165
179
|
}
|
166
180
|
if (xml_node.get(0).tagName == "call" || xml_node.get(0).tagName == "manipulate" || xml_node.get(0).tagName == "stop") {
|
@@ -253,7 +267,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
253
267
|
},
|
254
268
|
'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
|
255
269
|
'resolve_symbol': function(node) {
|
256
|
-
if($('
|
270
|
+
if($('code', node).length > 0) {
|
257
271
|
return 'callmanipulate';
|
258
272
|
} else {
|
259
273
|
return 'call';
|
@@ -263,7 +277,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
263
277
|
},//}}}
|
264
278
|
'description': self.adaptor.theme_dir + 'rngs/call.rng',
|
265
279
|
'permissible_children': function(node,mode) { //{{{
|
266
|
-
if(node.children('
|
280
|
+
if(node.children('code').length < 1)
|
267
281
|
return [
|
268
282
|
{'label': 'Scripts',
|
269
283
|
'function_call': self.adaptor.description.insert_last_into,
|
@@ -537,7 +551,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
537
551
|
var childs = null;
|
538
552
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
539
553
|
else { func = self.adaptor.description.insert_after }
|
540
|
-
|
554
|
+
var childs = [
|
541
555
|
{'label': 'Service Call with Scripts',
|
542
556
|
'function_call': func,
|
543
557
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -577,13 +591,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
577
591
|
'function_call': func,
|
578
592
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
579
593
|
'type': 'stop',
|
580
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
581
|
-
{'label': 'Critical',
|
582
|
-
'function_call': func,
|
583
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
584
|
-
'type': 'critical',
|
585
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
594
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
586
595
|
];
|
596
|
+
if(node.parent('parallel_branch').length > 0) {
|
597
|
+
childs.push({
|
598
|
+
'label': 'Critical',
|
599
|
+
'function_call': func,
|
600
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
601
|
+
'type': 'critical',
|
602
|
+
'params': [self.adaptor.description.elements.critical, node]
|
603
|
+
});
|
604
|
+
}
|
605
|
+
return childs;
|
587
606
|
}, //}}}
|
588
607
|
'adaptor': {//{{{
|
589
608
|
'mousedown': function (node,e) {
|
@@ -624,7 +643,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
624
643
|
'type': 'parallel_branch',
|
625
644
|
'params': [self.adaptor.description.elements.parallel_branch, node]}];
|
626
645
|
}
|
627
|
-
|
646
|
+
var childs = [
|
628
647
|
{'label': 'Service Call with Scripts',
|
629
648
|
'function_call': func,
|
630
649
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -664,13 +683,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
664
683
|
'function_call': func,
|
665
684
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
666
685
|
'type': 'stop',
|
667
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
668
|
-
{'label': 'Critical',
|
669
|
-
'function_call': func,
|
670
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
671
|
-
'type': 'critical',
|
672
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
686
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
673
687
|
];
|
688
|
+
if(node.parent('parallel_branch').length > 0) {
|
689
|
+
childs.push({
|
690
|
+
'label': 'Critical',
|
691
|
+
'function_call': func,
|
692
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
693
|
+
'type': 'critical',
|
694
|
+
'params': [self.adaptor.description.elements.critical, node]
|
695
|
+
});
|
696
|
+
}
|
697
|
+
return childs;
|
674
698
|
}, //}}}
|
675
699
|
'adaptor': {//{{{
|
676
700
|
'mousedown': function (node,e) {
|
@@ -716,7 +740,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
716
740
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
717
741
|
'type': 'call',
|
718
742
|
'params': [self.adaptor.description.elements.call, node]},
|
719
|
-
{'label': '
|
743
|
+
{'label': 'Script',
|
720
744
|
'function_call': func,
|
721
745
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
722
746
|
'type': 'manipulate',
|
@@ -740,13 +764,17 @@ function WFAdaptorManifestation(adaptor) {
|
|
740
764
|
'function_call': func,
|
741
765
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
742
766
|
'type': 'stop',
|
743
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
744
|
-
{'label': 'Critical',
|
745
|
-
'function_call': func,
|
746
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
747
|
-
'type': 'critical',
|
748
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
767
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
749
768
|
];
|
769
|
+
if(node.parent('parallel_branch').length > 0) {
|
770
|
+
childs.push({
|
771
|
+
'label': 'Critical',
|
772
|
+
'function_call': func,
|
773
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
774
|
+
'type': 'critical',
|
775
|
+
'params': [self.adaptor.description.elements.critical, node]
|
776
|
+
});
|
777
|
+
}
|
750
778
|
if(node.parent('parallel').length > node.parent('parallel_branch').length) {
|
751
779
|
childs.push({'label': 'Parallel Branch',
|
752
780
|
'function_call': func,
|
@@ -795,6 +823,19 @@ function WFAdaptorManifestation(adaptor) {
|
|
795
823
|
var func = null;
|
796
824
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
797
825
|
else { func = self.adaptor.description.insert_after }
|
826
|
+
var childs = [
|
827
|
+
{'label': 'Parallel Branch',
|
828
|
+
'function_call': func,
|
829
|
+
'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
|
830
|
+
'type': 'parallel_branch',
|
831
|
+
'params': [self.adaptor.description.elements.parallel_branch, node]},
|
832
|
+
];
|
833
|
+
return childs;
|
834
|
+
}, //}}}
|
835
|
+
'permissible_children_expert': function(node,mode) { //{{{
|
836
|
+
var func = null;
|
837
|
+
if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
|
838
|
+
else { func = self.adaptor.description.insert_after }
|
798
839
|
var childs = [
|
799
840
|
{'label': 'Service Call with Scripts',
|
800
841
|
'function_call': func,
|
@@ -806,7 +847,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
806
847
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
807
848
|
'type': 'call',
|
808
849
|
'params': [self.adaptor.description.elements.call, node]},
|
809
|
-
{'label': '
|
850
|
+
{'label': 'Script',
|
810
851
|
'function_call': func,
|
811
852
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
812
853
|
'type': 'manipulate',
|
@@ -821,11 +862,11 @@ function WFAdaptorManifestation(adaptor) {
|
|
821
862
|
'menu_icon': self.elements.loop.illustrator.svg.clone(),
|
822
863
|
'type': 'loop',
|
823
864
|
'params': [self.adaptor.description.elements.loop, node]},
|
824
|
-
{'label': '
|
865
|
+
{'label': 'Stop',
|
825
866
|
'function_call': func,
|
826
|
-
'menu_icon': self.elements.
|
827
|
-
'type': '
|
828
|
-
'params': [self.adaptor.description.elements.
|
867
|
+
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
868
|
+
'type': 'stop',
|
869
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
829
870
|
];
|
830
871
|
if(node.get(0).tagName != 'parallel')
|
831
872
|
childs.push({'label': 'Parallel',
|
@@ -871,10 +912,9 @@ function WFAdaptorManifestation(adaptor) {
|
|
871
912
|
'description': self.adaptor.theme_dir + 'rngs/parallel_branch.rng',
|
872
913
|
'permissible_children': function(node,mode) { //{{{
|
873
914
|
var func = null;
|
874
|
-
var childs = null;
|
875
915
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
876
916
|
else { func = self.adaptor.description.insert_after }
|
877
|
-
childs =
|
917
|
+
var childs = [
|
878
918
|
{'label': 'Service Call with Scripts',
|
879
919
|
'function_call': func,
|
880
920
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -919,7 +959,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
919
959
|
'function_call': func,
|
920
960
|
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
921
961
|
'type': 'critical',
|
922
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
962
|
+
'params': [self.adaptor.description.elements.critical, node]}
|
923
963
|
];
|
924
964
|
if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
|
925
965
|
return [{'label': 'Alternative',
|
@@ -932,12 +972,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
932
972
|
}, //}}}
|
933
973
|
'adaptor': {//{{{
|
934
974
|
'mousedown': function (node,e) {
|
935
|
-
|
936
|
-
if(xml_node.get(0).parentNode.tagName == 'parallel') {
|
937
|
-
self.events.mousedown(node,e,true,false);
|
938
|
-
} else {
|
939
|
-
self.events.mousedown(node,e,true,true);
|
940
|
-
}
|
975
|
+
self.events.mousedown(node,e,true,true);
|
941
976
|
},
|
942
977
|
'click': self.events.click,
|
943
978
|
'dblclick': self.events.dblclick,
|
@@ -964,7 +999,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
964
999
|
var func = null;
|
965
1000
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
966
1001
|
else { func = self.adaptor.description.insert_after }
|
967
|
-
|
1002
|
+
var childs = [
|
968
1003
|
{'label': 'Service Call with Scripts',
|
969
1004
|
'function_call': func,
|
970
1005
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -1004,13 +1039,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
1004
1039
|
'function_call': func,
|
1005
1040
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
1006
1041
|
'type': 'stop',
|
1007
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
1008
|
-
{'label': 'Critical',
|
1009
|
-
'function_call': func,
|
1010
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1011
|
-
'type': 'critical',
|
1012
|
-
'params': [self.adaptor.description.elements.critical, node]},
|
1042
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
1013
1043
|
];
|
1044
|
+
if(node.parent('parallel_branch').length > 0) {
|
1045
|
+
childs.push({
|
1046
|
+
'label': 'Critical',
|
1047
|
+
'function_call': func,
|
1048
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1049
|
+
'type': 'critical',
|
1050
|
+
'params': [self.adaptor.description.elements.critical, node]
|
1051
|
+
});
|
1052
|
+
}
|
1053
|
+
return childs;
|
1014
1054
|
}, //}}}
|
1015
1055
|
'adaptor': {//{{{
|
1016
1056
|
'mousedown': function (node,e) {
|
@@ -1074,7 +1114,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
1074
1114
|
var func = null;
|
1075
1115
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
1076
1116
|
else { func = self.adaptor.description.insert_after }
|
1077
|
-
|
1117
|
+
var childs = [
|
1078
1118
|
{'label': 'Service Call with Scripts',
|
1079
1119
|
'function_call': func,
|
1080
1120
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -1085,7 +1125,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
1085
1125
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
1086
1126
|
'type': 'call',
|
1087
1127
|
'params': [self.adaptor.description.elements.call, node]},
|
1088
|
-
{'label': 'Script
|
1128
|
+
{'label': 'Script',
|
1089
1129
|
'function_call': func,
|
1090
1130
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
1091
1131
|
'type': 'manipulate',
|
@@ -1105,22 +1145,22 @@ function WFAdaptorManifestation(adaptor) {
|
|
1105
1145
|
'menu_icon': self.elements.loop.illustrator.svg.clone(),
|
1106
1146
|
'type': 'loop',
|
1107
1147
|
'params': [self.adaptor.description.elements.loop, node]},
|
1108
|
-
{'label': 'Terminate',
|
1109
|
-
'function_call': func,
|
1110
|
-
'menu_icon': self.elements.terminate.illustrator.svg.clone(),
|
1111
|
-
'type': 'terminate',
|
1112
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
1113
1148
|
{'label': 'Stop',
|
1114
1149
|
'function_call': func,
|
1115
1150
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
1116
1151
|
'type': 'stop',
|
1117
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
1118
|
-
{'label': 'Critical',
|
1119
|
-
'function_call': func,
|
1120
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1121
|
-
'type': 'critical',
|
1122
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
1152
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
1123
1153
|
];
|
1154
|
+
if(node.parent('parallel_branch').length > 0) {
|
1155
|
+
childs.push({
|
1156
|
+
'label': 'Critical',
|
1157
|
+
'function_call': func,
|
1158
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1159
|
+
'type': 'critical',
|
1160
|
+
'params': [self.adaptor.description.elements.critical, node]
|
1161
|
+
});
|
1162
|
+
}
|
1163
|
+
return childs;
|
1124
1164
|
}, //}}}
|
1125
1165
|
'adaptor': {//{{{
|
1126
1166
|
'mousedown': function (node,e) {
|
@@ -51,6 +51,11 @@
|
|
51
51
|
</element>
|
52
52
|
</zeroOrMore>
|
53
53
|
</element>
|
54
|
+
<element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
|
55
|
+
<element name="url" rngui:label='HTML Snippet'>
|
56
|
+
<data type="string" rngui:label="url to report snippet"/>
|
57
|
+
</element>
|
58
|
+
</element>
|
54
59
|
</element>
|
55
60
|
<element name="finalize" rngui:header="Finalize" rngui:label="Code">
|
56
61
|
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|