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 @@
|
|
1
|
+
../../default/rngs/choose.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/critical.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/escape.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/group.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/loop.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/manipulate.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/otherwise.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/parallel.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/parallel_branch.rng
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<element rngui:version="1.2" name="code" rngui:header="Implementation" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
|
2
|
+
<element name="prepare" rngui:header="Prepare" rngui:label="Code" rngui:fold='closed_conditional'>
|
3
|
+
<text rngui:label='Script that is executed, before a service call'/>
|
4
|
+
</element>
|
5
|
+
<element name="finalize" rngui:header="Finalize" rngui:label="Code" rngui:fold='closed_conditional'>
|
6
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
7
|
+
<data type="string" rngui:readonly="true"/>
|
8
|
+
</attribute>
|
9
|
+
<text rngui:label='Script that is executed, when a service returns data'/>
|
10
|
+
</element>
|
11
|
+
<element name="update" rngui:header="Update" rngui:label="Code" rngui:fold='closed_conditional'>
|
12
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
13
|
+
<data type="string" rngui:readonly="true"/>
|
14
|
+
</attribute>
|
15
|
+
<text rngui:label='Script that is executed, when a service sends intermediate data'/>
|
16
|
+
</element>
|
17
|
+
<element name="rescue" rngui:header="Rescue" rngui:label="Code" rngui:fold='closed_conditional'>
|
18
|
+
<attribute name="output" rngui:label="Access Variable" rngui:default="result">
|
19
|
+
<data type="string" rngui:readonly="true"/>
|
20
|
+
</attribute>
|
21
|
+
<text rngui:label='Script that is executed, if a service call fails'/>
|
22
|
+
</element>
|
23
|
+
</element>
|
24
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/stop.rng
|
@@ -0,0 +1 @@
|
|
1
|
+
../../default/rngs/terminate.rng
|
@@ -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,6 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<g class="replace">
|
3
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="hfill rfill cline stand"/>
|
4
|
+
<path class="normal" style="fill:#000000;" d="m 21.561187,10.184155 c 0,-0.03232 0,-0.03232 0,-0.03232 C 21.076371,9.5054099 20.494591,8.9559512 19.815848,8.4388133 l 0,0.032323 C 19.266389,8.891311 18.71693,9.3438064 18.199794,9.7963017 17.973545,9.6670167 17.779619,9.5700535 17.585693,9.4730903 17.327124,9.3438064 17.068556,9.2145213 16.777665,9.1498799 16.680695,9.1175569 16.583739,9.0852339 16.486775,9.0852339 16.422135,8.3741695 16.357491,7.6631063 16.260528,6.952042 15.937318,6.887396 15.614106,6.887396 15.258574,6.855073 c -0.09697,0 -0.193926,0 -0.258569,0 -0.09697,0 -0.193925,0 -0.258568,0 -0.323211,0.032323 -0.614101,0.032323 -0.90499,0.096969 -0.09697,0.6787425 -0.161606,1.3898068 -0.193927,2.1008712 -0.129284,0 -0.226248,0.032323 -0.355532,0.064646 -0.03232,0 -0.06465,0 -0.09697,0.032323 -0.258568,0.064646 -0.517136,0.1939264 -0.775704,0.3232103 -0.226249,0.096969 -0.420175,0.1939264 -0.614102,0.3232114 -0.549458,-0.4524953 -1.066595,-0.87267 -1.616054,-1.3251654 0,0 0,0 -0.03232,-0.032323 C 10.022552,8.5357845 9.8932693,8.6327419 9.7963053,8.7297051 9.5700583,8.8913109 9.3761314,9.0852373 9.2145262,9.2791637 8.9236366,9.5377327 8.6973883,9.8609431 8.4388194,10.184155 c 0,0 0,0 0.032323,0 0.4201747,0.549459 0.87267,1.066596 1.325166,1.616054 -0.129285,0.193927 -0.258569,0.420175 -0.355533,0.614101 -0.129285,0.258569 -0.226248,0.549459 -0.2908894,0.808028 -0.064646,0.129284 -0.096969,0.258568 -0.096969,0.355531 -0.7110644,0.06465 -1.4221288,0.129285 -2.1008713,0.226248 -0.064646,0.323211 -0.096969,0.646422 -0.096969,1.001954 0,0.484816 0.032323,0.969632 0.1292839,1.422128 0.6787437,0.06465 1.3574862,0.129284 2.0685505,0.193926 0,0.129284 0.032323,0.258569 0.096969,0.355532 0.064646,0.29089 0.1616049,0.549459 0.2908899,0.840349 0.129284,0.226247 0.2262471,0.452495 0.387853,0.646421 -0.452496,0.549459 -0.9049912,1.066596 -1.3251647,1.616054 0.484816,0.678744 1.0665957,1.260523 1.7453387,1.74534 l 0,-0.03232 c 0.517137,-0.420175 1.066596,-0.87267 1.583733,-1.325166 l 0.03232,0 c 0.161605,0.09697 0.355532,0.193928 0.517136,0.290891 0.290891,0.129284 0.614101,0.258568 0.904991,0.32321 0.129284,0.03232 0.226248,0.06465 0.32321,0.09697 0.06465,0.678743 0.129285,1.389807 0.226249,2.100871 0.290889,0.03232 0.581779,0.06465 0.90499,0.06465 0.06465,0 0.258568,0 0.484817,0 0.355532,0 0.711064,-0.03232 1.066595,-0.09697 0.06465,-0.678742 0.129285,-1.389807 0.193926,-2.10087 0.09697,-0.03232 0.193927,-0.06465 0.29089,-0.09697 l 0,0 c 0.290891,-0.06464 0.549459,-0.161605 0.808028,-0.290889 0.226248,-0.09697 0.452495,-0.226248 0.678743,-0.387854 0,0.03232 0,0.03232 0.03232,0.03232 0.517137,0.452495 1.066596,0.904989 1.616054,1.325164 0.09697,-0.06465 0.193927,-0.129284 0.323212,-0.226247 0.193926,-0.161606 0.387852,-0.355532 0.549458,-0.549459 0.29089,-0.290889 0.58178,-0.614101 0.840348,-0.969633 -0.452495,-0.549459 -0.90499,-1.098917 -1.357486,-1.616054 0,-0.03232 0,-0.03232 0,-0.03232 0.09697,-0.161605 0.193927,-0.355531 0.29089,-0.549457 0.09696,-0.258569 0.226248,-0.517138 0.29089,-0.775707 0,-0.03232 0,-0.06465 0.03232,-0.06465 0,-0.129285 0.03232,-0.226248 0.06465,-0.290891 0.711065,-0.06465 1.422129,-0.129284 2.100872,-0.193926 0.06464,-0.323211 0.06464,-0.646422 0.09697,-0.969632 0,-0.09697 0,-0.193927 0,-0.29089 0,-0.06465 0,-0.161606 0,-0.258569 -0.03232,-0.323212 -0.03232,-0.646422 -0.09697,-0.969633 -0.678743,-0.06465 -1.389807,-0.129284 -2.100872,-0.193927 -0.03232,-0.09697 -0.06465,-0.193926 -0.06465,-0.290889 -0.09697,-0.29089 -0.193927,-0.58178 -0.323212,-0.872669 -0.09697,-0.193927 -0.226247,-0.420175 -0.32321,-0.614102 0.420173,-0.517136 0.872669,-1.066595 1.325164,-1.616054 z m -8.629731,2.682651 c 0.581779,-0.614101 1.292844,-0.904991 2.100871,-0.87267 0.840348,-0.03232 1.519091,0.258569 2.133192,0.87267 0.581779,0.581779 0.872669,1.292843 0.872669,2.10087 0,0.840348 -0.29089,1.519092 -0.872669,2.133192 -0.614101,0.58178 -1.292844,0.87267 -2.133192,0.87267 -0.808027,0 -1.519092,-0.29089 -2.100871,-0.87267 -0.581779,-0.6141 -0.872669,-1.292844 -0.872669,-2.133192 0,-0.808027 0.29089,-1.519091 0.872669,-2.10087 z"/>
|
5
|
+
</g>
|
6
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<svg class="clickable" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<g class="replace">
|
3
|
+
<rect x="1" y="1" width="28" height="28" rx="4" class="cline hfill rfill stand"/>
|
4
|
+
<path class="normal" transform="translate(-2,-2)" style="fill:#000000;" d="m 21.561187,10.184155 c 0,-0.03232 0,-0.03232 0,-0.03232 C 21.076371,9.5054099 20.494591,8.9559512 19.815848,8.4388133 l 0,0.032323 C 19.266389,8.891311 18.71693,9.3438064 18.199794,9.7963017 17.973545,9.6670167 17.779619,9.5700535 17.585693,9.4730903 17.327124,9.3438064 17.068556,9.2145213 16.777665,9.1498799 16.680695,9.1175569 16.583739,9.0852339 16.486775,9.0852339 16.422135,8.3741695 16.357491,7.6631063 16.260528,6.952042 15.937318,6.887396 15.614106,6.887396 15.258574,6.855073 c -0.09697,0 -0.193926,0 -0.258569,0 -0.09697,0 -0.193925,0 -0.258568,0 -0.323211,0.032323 -0.614101,0.032323 -0.90499,0.096969 -0.09697,0.6787425 -0.161606,1.3898068 -0.193927,2.1008712 -0.129284,0 -0.226248,0.032323 -0.355532,0.064646 -0.03232,0 -0.06465,0 -0.09697,0.032323 -0.258568,0.064646 -0.517136,0.1939264 -0.775704,0.3232103 -0.226249,0.096969 -0.420175,0.1939264 -0.614102,0.3232114 -0.549458,-0.4524953 -1.066595,-0.87267 -1.616054,-1.3251654 0,0 0,0 -0.03232,-0.032323 C 10.022552,8.5357845 9.8932693,8.6327419 9.7963053,8.7297051 9.5700583,8.8913109 9.3761314,9.0852373 9.2145262,9.2791637 8.9236366,9.5377327 8.6973883,9.8609431 8.4388194,10.184155 c 0,0 0,0 0.032323,0 0.4201747,0.549459 0.87267,1.066596 1.325166,1.616054 -0.129285,0.193927 -0.258569,0.420175 -0.355533,0.614101 -0.129285,0.258569 -0.226248,0.549459 -0.2908894,0.808028 -0.064646,0.129284 -0.096969,0.258568 -0.096969,0.355531 -0.7110644,0.06465 -1.4221288,0.129285 -2.1008713,0.226248 -0.064646,0.323211 -0.096969,0.646422 -0.096969,1.001954 0,0.484816 0.032323,0.969632 0.1292839,1.422128 0.6787437,0.06465 1.3574862,0.129284 2.0685505,0.193926 0,0.129284 0.032323,0.258569 0.096969,0.355532 0.064646,0.29089 0.1616049,0.549459 0.2908899,0.840349 0.129284,0.226247 0.2262471,0.452495 0.387853,0.646421 -0.452496,0.549459 -0.9049912,1.066596 -1.3251647,1.616054 0.484816,0.678744 1.0665957,1.260523 1.7453387,1.74534 l 0,-0.03232 c 0.517137,-0.420175 1.066596,-0.87267 1.583733,-1.325166 l 0.03232,0 c 0.161605,0.09697 0.355532,0.193928 0.517136,0.290891 0.290891,0.129284 0.614101,0.258568 0.904991,0.32321 0.129284,0.03232 0.226248,0.06465 0.32321,0.09697 0.06465,0.678743 0.129285,1.389807 0.226249,2.100871 0.290889,0.03232 0.581779,0.06465 0.90499,0.06465 0.06465,0 0.258568,0 0.484817,0 0.355532,0 0.711064,-0.03232 1.066595,-0.09697 0.06465,-0.678742 0.129285,-1.389807 0.193926,-2.10087 0.09697,-0.03232 0.193927,-0.06465 0.29089,-0.09697 l 0,0 c 0.290891,-0.06464 0.549459,-0.161605 0.808028,-0.290889 0.226248,-0.09697 0.452495,-0.226248 0.678743,-0.387854 0,0.03232 0,0.03232 0.03232,0.03232 0.517137,0.452495 1.066596,0.904989 1.616054,1.325164 0.09697,-0.06465 0.193927,-0.129284 0.323212,-0.226247 0.193926,-0.161606 0.387852,-0.355532 0.549458,-0.549459 0.29089,-0.290889 0.58178,-0.614101 0.840348,-0.969633 -0.452495,-0.549459 -0.90499,-1.098917 -1.357486,-1.616054 0,-0.03232 0,-0.03232 0,-0.03232 0.09697,-0.161605 0.193927,-0.355531 0.29089,-0.549457 0.09696,-0.258569 0.226248,-0.517138 0.29089,-0.775707 0,-0.03232 0,-0.06465 0.03232,-0.06465 0,-0.129285 0.03232,-0.226248 0.06465,-0.290891 0.711065,-0.06465 1.422129,-0.129284 2.100872,-0.193926 0.06464,-0.323211 0.06464,-0.646422 0.09697,-0.969632 0,-0.09697 0,-0.193927 0,-0.29089 0,-0.06465 0,-0.161606 0,-0.258569 -0.03232,-0.323212 -0.03232,-0.646422 -0.09697,-0.969633 -0.678743,-0.06465 -1.389807,-0.129284 -2.100872,-0.193927 -0.03232,-0.09697 -0.06465,-0.193926 -0.06465,-0.290889 -0.09697,-0.29089 -0.193927,-0.58178 -0.323212,-0.872669 -0.09697,-0.193927 -0.226247,-0.420175 -0.32321,-0.614102 0.420173,-0.517136 0.872669,-1.066595 1.325164,-1.616054 z m -8.629731,2.682651 c 0.581779,-0.614101 1.292844,-0.904991 2.100871,-0.87267 0.840348,-0.03232 1.519091,0.258569 2.133192,0.87267 0.581779,0.581779 0.872669,1.292843 0.872669,2.10087 0,0.840348 -0.29089,1.519092 -0.872669,2.133192 -0.614101,0.58178 -1.292844,0.87267 -2.133192,0.87267 -0.808027,0 -1.519092,-0.29089 -2.100871,-0.87267 -0.581779,-0.6141 -0.872669,-1.292844 -0.872669,-2.133192 0,-0.808027 0.29089,-1.519091 0.872669,-2.10087 z"/>
|
5
|
+
</g>
|
6
|
+
<circle cx="28" cy="27" r="9" class="cline rfill stand"/>
|
7
|
+
<text transform="translate(28,31)" class="small">s</text>
|
8
|
+
</svg>
|
@@ -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 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,8 @@
|
|
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
|
+
<line x1="8.5" y1="15.5" x2="22.5" y2="15.5" class="stand"/>
|
6
|
+
<line x1="15.5" y1="8.5" x2="15.5" y2="22.5" class="stand"/>
|
7
|
+
</svg>
|
8
|
+
|
@@ -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") {
|
@@ -282,7 +296,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
282
296
|
},
|
283
297
|
'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
|
284
298
|
'resolve_symbol': function(node) {
|
285
|
-
if($('
|
299
|
+
if($('code', node).length > 0) {
|
286
300
|
return 'callmanipulate';
|
287
301
|
} else {
|
288
302
|
return 'call';
|
@@ -292,7 +306,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
292
306
|
},//}}}
|
293
307
|
'description': self.adaptor.theme_dir + 'rngs/call.rng',
|
294
308
|
'permissible_children': function(node,mode) { //{{{
|
295
|
-
if(node.children('
|
309
|
+
if(node.children('code').length < 1)
|
296
310
|
return [
|
297
311
|
{'label': 'Scripts',
|
298
312
|
'function_call': self.adaptor.description.insert_last_into,
|
@@ -578,7 +592,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
578
592
|
var childs = null;
|
579
593
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
580
594
|
else { func = self.adaptor.description.insert_after }
|
581
|
-
|
595
|
+
var childs = [
|
582
596
|
{'label': 'Service Call with Scripts',
|
583
597
|
'function_call': func,
|
584
598
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -618,13 +632,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
618
632
|
'function_call': func,
|
619
633
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
620
634
|
'type': 'stop',
|
621
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
622
|
-
{'label': 'Critical',
|
623
|
-
'function_call': func,
|
624
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
625
|
-
'type': 'critical',
|
626
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
635
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
627
636
|
];
|
637
|
+
if(node.parent('parallel_branch').length > 0) {
|
638
|
+
childs.push({
|
639
|
+
'label': 'Critical',
|
640
|
+
'function_call': func,
|
641
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
642
|
+
'type': 'critical',
|
643
|
+
'params': [self.adaptor.description.elements.critical, node]
|
644
|
+
});
|
645
|
+
}
|
646
|
+
return childs;
|
628
647
|
}, //}}}
|
629
648
|
'adaptor': {//{{{
|
630
649
|
'mousedown': function (node,e) {
|
@@ -669,7 +688,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
669
688
|
'type': 'parallel_branch',
|
670
689
|
'params': [self.adaptor.description.elements.parallel_branch, node]}];
|
671
690
|
}
|
672
|
-
|
691
|
+
var childs = [
|
673
692
|
{'label': 'Service Call with Scripts',
|
674
693
|
'function_call': func,
|
675
694
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -709,13 +728,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
709
728
|
'function_call': func,
|
710
729
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
711
730
|
'type': 'stop',
|
712
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
713
|
-
{'label': 'Critical',
|
714
|
-
'function_call': func,
|
715
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
716
|
-
'type': 'critical',
|
717
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
731
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
718
732
|
];
|
733
|
+
if(node.parent('parallel_branch').length > 0) {
|
734
|
+
childs.push({
|
735
|
+
'label': 'Critical',
|
736
|
+
'function_call': func,
|
737
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
738
|
+
'type': 'critical',
|
739
|
+
'params': [self.adaptor.description.elements.critical, node]
|
740
|
+
});
|
741
|
+
}
|
742
|
+
return childs;
|
719
743
|
}, //}}}
|
720
744
|
'adaptor': {//{{{
|
721
745
|
'mousedown': function (node,e) {
|
@@ -761,7 +785,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
761
785
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
762
786
|
'type': 'call',
|
763
787
|
'params': [self.adaptor.description.elements.call, node]},
|
764
|
-
{'label': '
|
788
|
+
{'label': 'Script',
|
765
789
|
'function_call': func,
|
766
790
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
767
791
|
'type': 'manipulate',
|
@@ -785,13 +809,17 @@ function WFAdaptorManifestation(adaptor) {
|
|
785
809
|
'function_call': func,
|
786
810
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
787
811
|
'type': 'stop',
|
788
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
789
|
-
{'label': 'Critical',
|
790
|
-
'function_call': func,
|
791
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
792
|
-
'type': 'critical',
|
793
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
812
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
794
813
|
];
|
814
|
+
if(node.parent('parallel_branch').length > 0) {
|
815
|
+
childs.push({
|
816
|
+
'label': 'Critical',
|
817
|
+
'function_call': func,
|
818
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
819
|
+
'type': 'critical',
|
820
|
+
'params': [self.adaptor.description.elements.critical, node]
|
821
|
+
});
|
822
|
+
}
|
795
823
|
if(node.parent('parallel').length > node.parent('parallel_branch').length) {
|
796
824
|
childs.push({'label': 'Parallel Branch',
|
797
825
|
'function_call': func,
|
@@ -840,6 +868,19 @@ function WFAdaptorManifestation(adaptor) {
|
|
840
868
|
var func = null;
|
841
869
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
842
870
|
else { func = self.adaptor.description.insert_after }
|
871
|
+
var childs = [
|
872
|
+
{'label': 'Parallel Branch',
|
873
|
+
'function_call': func,
|
874
|
+
'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
|
875
|
+
'type': 'parallel_branch',
|
876
|
+
'params': [self.adaptor.description.elements.parallel_branch, node]},
|
877
|
+
];
|
878
|
+
return childs;
|
879
|
+
}, //}}}
|
880
|
+
'permissible_children_expert': function(node,mode) { //{{{
|
881
|
+
var func = null;
|
882
|
+
if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
|
883
|
+
else { func = self.adaptor.description.insert_after }
|
843
884
|
var childs = [
|
844
885
|
{'label': 'Service Call with Scripts',
|
845
886
|
'function_call': func,
|
@@ -851,7 +892,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
851
892
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
852
893
|
'type': 'call',
|
853
894
|
'params': [self.adaptor.description.elements.call, node]},
|
854
|
-
{'label': '
|
895
|
+
{'label': 'Script',
|
855
896
|
'function_call': func,
|
856
897
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
857
898
|
'type': 'manipulate',
|
@@ -866,11 +907,11 @@ function WFAdaptorManifestation(adaptor) {
|
|
866
907
|
'menu_icon': self.elements.loop.illustrator.svg.clone(),
|
867
908
|
'type': 'loop',
|
868
909
|
'params': [self.adaptor.description.elements.loop, node]},
|
869
|
-
{'label': '
|
910
|
+
{'label': 'Stop',
|
870
911
|
'function_call': func,
|
871
|
-
'menu_icon': self.elements.
|
872
|
-
'type': '
|
873
|
-
'params': [self.adaptor.description.elements.
|
912
|
+
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
913
|
+
'type': 'stop',
|
914
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
874
915
|
];
|
875
916
|
if(node.get(0).tagName != 'parallel')
|
876
917
|
childs.push({'label': 'Parallel',
|
@@ -916,10 +957,9 @@ function WFAdaptorManifestation(adaptor) {
|
|
916
957
|
'description': self.adaptor.theme_dir + 'rngs/parallel_branch.rng',
|
917
958
|
'permissible_children': function(node,mode) { //{{{
|
918
959
|
var func = null;
|
919
|
-
var childs = null;
|
920
960
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
921
961
|
else { func = self.adaptor.description.insert_after }
|
922
|
-
childs =
|
962
|
+
var childs = [
|
923
963
|
{'label': 'Service Call with Scripts',
|
924
964
|
'function_call': func,
|
925
965
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -964,7 +1004,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
964
1004
|
'function_call': func,
|
965
1005
|
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
966
1006
|
'type': 'critical',
|
967
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
1007
|
+
'params': [self.adaptor.description.elements.critical, node]}
|
968
1008
|
];
|
969
1009
|
if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
|
970
1010
|
return [{'label': 'Alternative',
|
@@ -977,12 +1017,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
977
1017
|
}, //}}}
|
978
1018
|
'adaptor': {//{{{
|
979
1019
|
'mousedown': function (node,e) {
|
980
|
-
|
981
|
-
if(xml_node.get(0).parentNode.tagName == 'parallel') {
|
982
|
-
self.events.mousedown(node,e,true,false);
|
983
|
-
} else {
|
984
|
-
self.events.mousedown(node,e,true,true);
|
985
|
-
}
|
1020
|
+
self.events.mousedown(node,e,true,true);
|
986
1021
|
},
|
987
1022
|
'click': self.events.click,
|
988
1023
|
'dblclick': self.events.dblclick,
|
@@ -1009,7 +1044,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
1009
1044
|
var func = null;
|
1010
1045
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
1011
1046
|
else { func = self.adaptor.description.insert_after }
|
1012
|
-
|
1047
|
+
var childs = [
|
1013
1048
|
{'label': 'Service Call with Scripts',
|
1014
1049
|
'function_call': func,
|
1015
1050
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -1049,13 +1084,18 @@ function WFAdaptorManifestation(adaptor) {
|
|
1049
1084
|
'function_call': func,
|
1050
1085
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
1051
1086
|
'type': 'stop',
|
1052
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
1053
|
-
{'label': 'Critical',
|
1054
|
-
'function_call': func,
|
1055
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1056
|
-
'type': 'critical',
|
1057
|
-
'params': [self.adaptor.description.elements.critical, node]},
|
1087
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
1058
1088
|
];
|
1089
|
+
if(node.parent('parallel_branch').length > 0) {
|
1090
|
+
childs.push({
|
1091
|
+
'label': 'Critical',
|
1092
|
+
'function_call': func,
|
1093
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1094
|
+
'type': 'critical',
|
1095
|
+
'params': [self.adaptor.description.elements.critical, node]
|
1096
|
+
});
|
1097
|
+
}
|
1098
|
+
return childs;
|
1059
1099
|
}, //}}}
|
1060
1100
|
'adaptor': {//{{{
|
1061
1101
|
'mousedown': function (node,e) {
|
@@ -1120,7 +1160,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
1120
1160
|
var func = null;
|
1121
1161
|
if (mode == 'into') { func = self.adaptor.description.insert_first_into }
|
1122
1162
|
else { func = self.adaptor.description.insert_after }
|
1123
|
-
|
1163
|
+
var childs = [
|
1124
1164
|
{'label': 'Service Call with Scripts',
|
1125
1165
|
'function_call': func,
|
1126
1166
|
'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
|
@@ -1131,7 +1171,7 @@ function WFAdaptorManifestation(adaptor) {
|
|
1131
1171
|
'menu_icon': self.elements.call.illustrator.svg.clone(),
|
1132
1172
|
'type': 'call',
|
1133
1173
|
'params': [self.adaptor.description.elements.call, node]},
|
1134
|
-
{'label': 'Script
|
1174
|
+
{'label': 'Script',
|
1135
1175
|
'function_call': func,
|
1136
1176
|
'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
|
1137
1177
|
'type': 'manipulate',
|
@@ -1151,22 +1191,22 @@ function WFAdaptorManifestation(adaptor) {
|
|
1151
1191
|
'menu_icon': self.elements.loop.illustrator.svg.clone(),
|
1152
1192
|
'type': 'loop',
|
1153
1193
|
'params': [self.adaptor.description.elements.loop, node]},
|
1154
|
-
{'label': 'Terminate',
|
1155
|
-
'function_call': func,
|
1156
|
-
'menu_icon': self.elements.terminate.illustrator.svg.clone(),
|
1157
|
-
'type': 'terminate',
|
1158
|
-
'params': [self.adaptor.description.elements.terminate, node]},
|
1159
1194
|
{'label': 'Stop',
|
1160
1195
|
'function_call': func,
|
1161
1196
|
'menu_icon': self.elements.stop.illustrator.svg.clone(),
|
1162
1197
|
'type': 'stop',
|
1163
|
-
'params': [self.adaptor.description.elements.stop, node]}
|
1164
|
-
{'label': 'Critical',
|
1165
|
-
'function_call': func,
|
1166
|
-
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1167
|
-
'type': 'critical',
|
1168
|
-
'params': [self.adaptor.description.elements.critical, node]}
|
1198
|
+
'params': [self.adaptor.description.elements.stop, node]}
|
1169
1199
|
];
|
1200
|
+
if(node.parent('parallel_branch').length > 0) {
|
1201
|
+
childs.push({
|
1202
|
+
'label': 'Critical',
|
1203
|
+
'function_call': func,
|
1204
|
+
'menu_icon': self.elements.critical.illustrator.svg.clone(),
|
1205
|
+
'type': 'critical',
|
1206
|
+
'params': [self.adaptor.description.elements.critical, node]
|
1207
|
+
});
|
1208
|
+
}
|
1209
|
+
return childs;
|
1170
1210
|
}, //}}}
|
1171
1211
|
'adaptor': {//{{{
|
1172
1212
|
'mousedown': function (node,e) {
|