cpee 1.3.181 → 1.3.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +19 -60
  3. data/cockpit/css/wfadaptor.css +11 -0
  4. data/cockpit/index.html +45 -71
  5. data/cockpit/js/details.js +50 -139
  6. data/cockpit/js/instance.js +133 -185
  7. data/cockpit/js/parameters.js +57 -55
  8. data/cockpit/js/ui.js +4 -29
  9. data/cockpit/js/wfadaptor.js +190 -108
  10. data/cockpit/rngs/attributes.rng +8 -0
  11. data/cockpit/rngs/dataelements.rng +8 -0
  12. data/cockpit/rngs/endpoints.rng +8 -0
  13. data/cockpit/testsets/Concurrent.xml +6 -6
  14. data/cockpit/testsets/Coopis Testset.xml +12 -12
  15. data/cockpit/testsets/ICSOC Testset.xml +27 -27
  16. data/cockpit/testsets/Infinity.xml +4 -4
  17. data/cockpit/testsets/Linear.xml +10 -10
  18. data/cockpit/testsets/Mangler 1.xml +20 -20
  19. data/cockpit/testsets/Mangler 2.xml +18 -18
  20. data/cockpit/testsets/Promise.xml +258 -0
  21. data/cockpit/testsets/SOPROMO Test Sonification.xml +11 -11
  22. data/cockpit/testsets/Syncing P34 1.xml +12 -12
  23. data/cockpit/testsets/Syncing P34 2.xml +12 -12
  24. data/cockpit/testsets/Syncing P34 3.xml +12 -12
  25. data/cockpit/testsets/Syncing P34.xml +12 -12
  26. data/cockpit/testsets/TEST - Bad Loop.xml +39 -39
  27. data/cockpit/testsets/Update.xml +1 -1
  28. data/cockpit/testsets/Worklist Parallel.xml +8 -8
  29. data/cockpit/testsets/Worklist Test CPEE.xml +2 -2
  30. data/cockpit/testsets/Worklist Test.xml +2 -2
  31. data/cockpit/testsets/testsets.xml +2 -0
  32. data/cockpit/themes/adventure/rngs/alternative.rng +5 -0
  33. data/cockpit/themes/adventure/rngs/call.rng +29 -0
  34. data/cockpit/{rngtest2.rng → themes/adventure/rngs/callmanipulate.rng} +9 -9
  35. data/cockpit/themes/adventure/rngs/choose.rng +8 -0
  36. data/cockpit/themes/adventure/rngs/critical.rng +5 -0
  37. data/cockpit/themes/adventure/rngs/escape.rng +1 -0
  38. data/cockpit/themes/adventure/rngs/finalize.rng +6 -0
  39. data/cockpit/themes/adventure/rngs/group.rng +3 -0
  40. data/cockpit/themes/adventure/rngs/loop.rng +11 -0
  41. data/cockpit/themes/adventure/rngs/manipulate.rng +6 -0
  42. data/cockpit/themes/adventure/rngs/otherwise.rng +1 -0
  43. data/cockpit/themes/adventure/rngs/parallel.rng +5 -0
  44. data/cockpit/themes/adventure/rngs/parallel_branch.rng +8 -0
  45. data/cockpit/themes/adventure/rngs/update.rng +6 -0
  46. data/cockpit/themes/adventure/symbols/alternative.svg +4 -0
  47. data/cockpit/themes/adventure/symbols/call.svg +4 -0
  48. data/cockpit/themes/adventure/symbols/callmanipulate.svg +6 -0
  49. data/cockpit/themes/adventure/symbols/choose.svg +5 -0
  50. data/cockpit/themes/adventure/symbols/choose_exclusive.svg +5 -0
  51. data/cockpit/themes/adventure/symbols/choose_inclusive.svg +4 -0
  52. data/cockpit/themes/adventure/symbols/critical.svg +4 -0
  53. data/cockpit/themes/adventure/symbols/escape.svg +5 -0
  54. data/cockpit/themes/adventure/symbols/loop.svg +5 -0
  55. data/cockpit/themes/adventure/symbols/manipulate.svg +4 -0
  56. data/cockpit/themes/adventure/symbols/otherwise.svg +4 -0
  57. data/cockpit/themes/adventure/symbols/parallel.svg +5 -0
  58. data/cockpit/themes/adventure/symbols/parallel_branch.svg +4 -0
  59. data/cockpit/themes/adventure/symbols/scripts.svg +4 -0
  60. data/cockpit/themes/adventure/symbols/start.svg +3 -0
  61. data/cockpit/themes/adventure/theme.js +729 -0
  62. data/cockpit/themes/default/rngs/alternative.rng +5 -0
  63. data/cockpit/themes/default/rngs/call.rng +29 -0
  64. data/cockpit/themes/default/rngs/callmanipulate.rng +41 -0
  65. data/cockpit/themes/default/rngs/choose.rng +8 -0
  66. data/cockpit/themes/default/rngs/critical.rng +5 -0
  67. data/cockpit/themes/default/rngs/escape.rng +1 -0
  68. data/cockpit/themes/default/rngs/finalize.rng +6 -0
  69. data/cockpit/themes/default/rngs/group.rng +3 -0
  70. data/cockpit/themes/default/rngs/loop.rng +11 -0
  71. data/cockpit/themes/default/rngs/manipulate.rng +6 -0
  72. data/cockpit/themes/default/rngs/otherwise.rng +1 -0
  73. data/cockpit/themes/default/rngs/parallel.rng +5 -0
  74. data/cockpit/themes/default/rngs/parallel_branch.rng +8 -0
  75. data/cockpit/themes/default/rngs/update.rng +6 -0
  76. data/cockpit/themes/default/symbols/alternative.svg +4 -0
  77. data/cockpit/themes/default/symbols/call.svg +4 -0
  78. data/cockpit/themes/default/symbols/callmanipulate.svg +6 -0
  79. data/cockpit/themes/default/symbols/choose.svg +5 -0
  80. data/cockpit/themes/default/symbols/choose_exclusive.svg +5 -0
  81. data/cockpit/themes/default/symbols/choose_inclusive.svg +4 -0
  82. data/cockpit/themes/default/symbols/critical.svg +4 -0
  83. data/cockpit/themes/default/symbols/escape.svg +5 -0
  84. data/cockpit/themes/default/symbols/loop.svg +5 -0
  85. data/cockpit/themes/default/symbols/manipulate.svg +4 -0
  86. data/cockpit/themes/default/symbols/otherwise.svg +4 -0
  87. data/cockpit/themes/default/symbols/parallel.svg +5 -0
  88. data/cockpit/themes/default/symbols/parallel_branch.svg +4 -0
  89. data/cockpit/themes/default/symbols/scripts.svg +4 -0
  90. data/cockpit/themes/default/symbols/start.svg +3 -0
  91. data/cockpit/themes/default/theme.js +729 -0
  92. data/cockpit/themes/lego/rngs/alternative.rng +5 -0
  93. data/cockpit/themes/lego/rngs/call.rng +41 -0
  94. data/cockpit/themes/lego/rngs/choose.rng +8 -0
  95. data/cockpit/themes/lego/rngs/critical.rng +5 -0
  96. data/cockpit/themes/lego/rngs/loop.rng +11 -0
  97. data/cockpit/themes/lego/rngs/manipulate.rng +6 -0
  98. data/cockpit/themes/lego/rngs/parallel.rng +5 -0
  99. data/cockpit/themes/lego/rngs/parallel_branch.rng +8 -0
  100. data/cockpit/themes/lego/symbols/alternative.svg +4 -0
  101. data/cockpit/themes/lego/symbols/call.svg +4 -0
  102. data/cockpit/themes/lego/symbols/callmanipulate.svg +6 -0
  103. data/cockpit/themes/lego/symbols/callori.svg +4 -0
  104. data/cockpit/themes/lego/symbols/choose.svg +4 -0
  105. data/cockpit/themes/lego/symbols/choose_exclusive.svg +5 -0
  106. data/cockpit/themes/lego/symbols/choose_inclusive.svg +4 -0
  107. data/cockpit/themes/lego/symbols/critical.svg +4 -0
  108. data/cockpit/themes/lego/symbols/escape.svg +5 -0
  109. data/cockpit/themes/lego/symbols/lego.svg +72 -0
  110. data/cockpit/themes/lego/symbols/loop.svg +5 -0
  111. data/cockpit/themes/lego/symbols/manipulate.svg +4 -0
  112. data/cockpit/themes/lego/symbols/otherwise.svg +4 -0
  113. data/cockpit/themes/lego/symbols/parallel.svg +6 -0
  114. data/cockpit/themes/lego/symbols/parallel_branch.svg +4 -0
  115. data/cockpit/themes/lego/symbols/scripts.svg +4 -0
  116. data/cockpit/themes/lego/symbols/start.svg +3 -0
  117. data/cockpit/themes/lego/theme.js +742 -0
  118. data/cockpit/themes/promise/rngs/alternative.rng +5 -0
  119. data/cockpit/themes/promise/rngs/call.rng +41 -0
  120. data/cockpit/themes/promise/rngs/choose.rng +8 -0
  121. data/cockpit/themes/promise/rngs/critical.rng +5 -0
  122. data/cockpit/themes/promise/rngs/loop.rng +11 -0
  123. data/cockpit/themes/promise/rngs/manipulate.rng +6 -0
  124. data/cockpit/themes/promise/rngs/parallel.rng +5 -0
  125. data/cockpit/themes/promise/rngs/parallel_branch.rng +8 -0
  126. data/cockpit/themes/promise/symbols/alternative.svg +4 -0
  127. data/cockpit/themes/promise/symbols/call.svg +4 -0
  128. data/cockpit/themes/promise/symbols/callmanipulate.svg +6 -0
  129. data/cockpit/themes/promise/symbols/choose.svg +4 -0
  130. data/cockpit/themes/promise/symbols/choose_exclusive.svg +5 -0
  131. data/cockpit/themes/promise/symbols/choose_inclusive.svg +4 -0
  132. data/cockpit/themes/promise/symbols/critical.svg +4 -0
  133. data/cockpit/themes/promise/symbols/escape.svg +5 -0
  134. data/cockpit/themes/promise/symbols/loop.svg +5 -0
  135. data/cockpit/themes/promise/symbols/manipulate.svg +4 -0
  136. data/cockpit/themes/promise/symbols/otherwise.svg +4 -0
  137. data/cockpit/themes/promise/symbols/parallel.svg +6 -0
  138. data/cockpit/themes/promise/symbols/parallel_branch.svg +4 -0
  139. data/cockpit/themes/promise/symbols/preminder.svg +6 -0
  140. data/cockpit/themes/promise/symbols/scripts.svg +4 -0
  141. data/cockpit/themes/promise/symbols/start.svg +3 -0
  142. data/cockpit/themes/promise/theme.js +742 -0
  143. data/cpee.gemspec +2 -2
  144. data/lib/cpee/implementation.rb +15 -15
  145. data/server/handlerwrappers/default.rb +19 -19
  146. data/server/handlerwrappers/log.rb +264 -0
  147. data/server/instances/10/properties.xml +148 -0
  148. data/server/instances/11/properties.xml +149 -0
  149. data/server/instances/12/properties.xml +149 -0
  150. data/server/instances/13/properties.xml +149 -0
  151. data/server/instances/14/properties.xml +111 -0
  152. data/server/instances/15/properties.xml +113 -0
  153. data/server/instances/16/properties.xml +113 -0
  154. data/server/instances/17/properties.xml +149 -0
  155. data/server/instances/18/properties.xml +149 -0
  156. data/server/instances/19/properties.xml +114 -0
  157. data/server/instances/2/properties.xml +1 -1
  158. data/server/instances/20/properties.xml +113 -0
  159. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +1 -0
  160. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +1 -0
  161. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +6 -0
  162. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +1 -0
  163. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +1 -0
  164. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +23 -0
  165. data/server/instances/21/properties.xml +149 -0
  166. data/server/instances/22/properties.xml +113 -0
  167. data/server/instances/23/properties.xml +88 -0
  168. data/server/instances/24/properties.xml +168 -0
  169. data/server/instances/25/properties.xml +149 -0
  170. data/server/instances/26/properties.xml +113 -0
  171. data/server/instances/27/properties.xml +141 -0
  172. data/server/instances/3/properties.xml +46 -0
  173. data/server/instances/4/properties.xml +148 -0
  174. data/server/instances/5/properties.xml +148 -0
  175. data/server/instances/6/properties.xml +148 -0
  176. data/server/instances/7/properties.xml +148 -0
  177. data/server/instances/8/properties.xml +148 -0
  178. data/server/instances/9/properties.xml +46 -0
  179. data/server/resources/properties.init +2 -1
  180. data/server/resources/transformation_dslx.xsl +12 -12
  181. data/server/server.pid +1 -0
  182. data/server/server.rb +2 -0
  183. metadata +152 -12
  184. data/cockpit/js/wfadaptor.cpee.js +0 -936
  185. data/cockpit/rngtest1.html +0 -53
  186. data/cockpit/rngtest1.rng +0 -38
  187. data/cockpit/rngtest1.xml +0 -16
  188. data/cockpit/rngtest2.html +0 -53
  189. data/cockpit/rngtest2.xml +0 -11
  190. data/cockpit/test.html +0 -46
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ This file is part of CPEE.
4
+
5
+ CPEE is free software: you can redistribute it and/or modify it under the terms
6
+ of the GNU General Public License as published by the Free Software Foundation,
7
+ either version 3 of the License, or (at your option) any later version.
8
+
9
+ CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
+ PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ CPEE (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
+ <attributes>
20
+ <info/>
21
+ <modeltype>CPEE</modeltype>
22
+ </attributes>
23
+ <state>ready</state>
24
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
25
+ <positions/>
26
+ <dataelements/>
27
+ <endpoints>
28
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
29
+ </endpoints>
30
+ <dsl/>
31
+ <dslx>
32
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
33
+ </dslx>
34
+ <status>
35
+ <id>0</id>
36
+ <message>undefined</message>
37
+ </status>
38
+ <description>
39
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
40
+ </description>
41
+ <transformation>
42
+ <description type='copy'/>
43
+ <dataelements type='none'/>
44
+ <endpoints type='none'/>
45
+ </transformation>
46
+ </properties>
@@ -19,6 +19,7 @@
19
19
  <attributes>
20
20
  <info/>
21
21
  <modeltype>CPEE</modeltype>
22
+ <theme>default</theme>
22
23
  </attributes>
23
24
  <state>ready</state>
24
25
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
@@ -30,7 +31,7 @@
30
31
  <dsl/>
31
32
  <dslx>
32
33
  <description xmlns="http://cpee.org/ns/description/1.0"/>
33
- </dslx>
34
+ </dslx>
34
35
  <status>
35
36
  <id>0</id>
36
37
  <message>undefined</message>
@@ -108,41 +108,41 @@
108
108
  </xsl:if>
109
109
  <xsl:if test="name()='loop'">
110
110
  <xsl:text>loop </xsl:text>
111
- <xsl:if test="@pre_test">
111
+ <xsl:if test="@mode='pre_test'">
112
112
  <xsl:choose>
113
113
  <xsl:when test="not(@language) or @language='application/x-ruby'">
114
114
  <xsl:text>pre_test{</xsl:text>
115
- <xsl:value-of select="@pre_test"/>
115
+ <xsl:value-of select="@condition"/>
116
116
  <xsl:text>} </xsl:text>
117
117
  </xsl:when>
118
118
  <xsl:otherwise>
119
119
  <xsl:text>pre_test("</xsl:text>
120
- <xsl:value-of select="@pre_test"/>
120
+ <xsl:value-of select="@condition"/>
121
121
  <xsl:text>")</xsl:text>
122
122
  </xsl:otherwise>
123
123
  </xsl:choose>
124
124
  </xsl:if>
125
- <xsl:if test="@post_test">
125
+ <xsl:if test="@mode='post_test'">
126
126
  <xsl:choose>
127
127
  <xsl:when test="not(@language) or @language='application/x-ruby'">
128
128
  <xsl:text>post_test{</xsl:text>
129
- <xsl:value-of select="@post_test"/>
129
+ <xsl:value-of select="@condition"/>
130
130
  <xsl:text>} </xsl:text>
131
131
  </xsl:when>
132
132
  <xsl:otherwise>
133
133
  <xsl:text>post_test("</xsl:text>
134
- <xsl:value-of select="@post_test"/>
134
+ <xsl:value-of select="@condition"/>
135
135
  <xsl:text>")</xsl:text>
136
136
  </xsl:otherwise>
137
137
  </xsl:choose>
138
138
  </xsl:if>
139
- <xsl:for-each select="@*[not(name()='language' or name()='pre_test' or name()='post_test' or name()='svg-label')]">
139
+ <xsl:for-each select="@*[not(name()='language' or name()='mode' or name()='condition' or name()='svg-label')]">
140
140
  <xsl:text>, :</xsl:text>
141
141
  <xsl:value-of select="name(.)"/>
142
142
  <xsl:text> => "</xsl:text>
143
143
  <xsl:value-of select="."/>
144
144
  <xsl:text>"</xsl:text>
145
- </xsl:for-each>
145
+ </xsl:for-each>
146
146
  <xsl:text> do</xsl:text>
147
147
  <xsl:call-template name="print-newline"/>
148
148
  <xsl:apply-templates>
@@ -240,7 +240,7 @@
240
240
  <xsl:text> => "</xsl:text>
241
241
  <xsl:value-of select="."/>
242
242
  <xsl:text>"</xsl:text>
243
- </xsl:for-each>
243
+ </xsl:for-each>
244
244
  <xsl:text> do</xsl:text>
245
245
  <xsl:call-template name="print-newline"/>
246
246
  <xsl:apply-templates>
@@ -273,7 +273,7 @@
273
273
  <xsl:text> => "</xsl:text>
274
274
  <xsl:value-of select="."/>
275
275
  <xsl:text>"</xsl:text>
276
- </xsl:for-each>
276
+ </xsl:for-each>
277
277
  <xsl:text> do</xsl:text>
278
278
  <xsl:call-template name="print-newline"/>
279
279
  <xsl:apply-templates>
@@ -345,7 +345,7 @@
345
345
  <xsl:if test="position() &gt;1">, </xsl:if>
346
346
  <xsl:text>:</xsl:text>
347
347
  <xsl:value-of select="name(.)"/>
348
- </xsl:for-each>
348
+ </xsl:for-each>
349
349
  <xsl:text>).new(</xsl:text>
350
350
  <xsl:text></xsl:text>
351
351
  <xsl:choose>
@@ -362,7 +362,7 @@
362
362
  <xsl:text>"</xsl:text>
363
363
  <xsl:value-of select="string(.)"/>
364
364
  <xsl:text>"</xsl:text>
365
- </xsl:for-each>
365
+ </xsl:for-each>
366
366
  <xsl:text>)</xsl:text>
367
367
  </xsl:when>
368
368
  <xsl:when test="not(node())">
@@ -0,0 +1 @@
1
+ 16784
@@ -14,6 +14,8 @@
14
14
  # CPEE (file COPYING in the main directory). If not, see
15
15
  # <http://www.gnu.org/licenses/>.
16
16
 
17
+ require 'rubygems'
18
+ gem 'nokogiri', '~> 1.6.6'
17
19
  require File.expand_path(File.dirname(__FILE__) + '/../lib/cpee/implementation')
18
20
 
19
21
  Riddl::Server.new(CPEE::SERVER, :port => 9298) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.181
4
+ version: 1.3.183
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-24 00:00:00.000000000 Z
14
+ date: 2016-11-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -96,15 +96,10 @@ files:
96
96
  - cockpit/js/instance.js
97
97
  - cockpit/js/parameters.js
98
98
  - cockpit/js/ui.js
99
- - cockpit/js/wfadaptor.cpee.js
100
99
  - cockpit/js/wfadaptor.js
101
- - cockpit/rngtest1.html
102
- - cockpit/rngtest1.rng
103
- - cockpit/rngtest1.xml
104
- - cockpit/rngtest2.html
105
- - cockpit/rngtest2.rng
106
- - cockpit/rngtest2.xml
107
- - cockpit/test.html
100
+ - cockpit/rngs/attributes.rng
101
+ - cockpit/rngs/dataelements.rng
102
+ - cockpit/rngs/endpoints.rng
108
103
  - cockpit/testsets/CPEE.xml
109
104
  - cockpit/testsets/Concurrent.xml
110
105
  - cockpit/testsets/Coopis Testset.xml
@@ -114,6 +109,7 @@ files:
114
109
  - cockpit/testsets/Linear.xml
115
110
  - cockpit/testsets/Mangler 1.xml
116
111
  - cockpit/testsets/Mangler 2.xml
112
+ - cockpit/testsets/Promise.xml
117
113
  - cockpit/testsets/SOPROMO Test Sonification.xml
118
114
  - cockpit/testsets/Signavio.xml
119
115
  - cockpit/testsets/Syncing P34 1.xml
@@ -128,6 +124,117 @@ files:
128
124
  - cockpit/testsets/Worklist Test.xml
129
125
  - cockpit/testsets/testsets.xml
130
126
  - cockpit/testsets/transformations.xml
127
+ - cockpit/themes/adventure/rngs/alternative.rng
128
+ - cockpit/themes/adventure/rngs/call.rng
129
+ - cockpit/themes/adventure/rngs/callmanipulate.rng
130
+ - cockpit/themes/adventure/rngs/choose.rng
131
+ - cockpit/themes/adventure/rngs/critical.rng
132
+ - cockpit/themes/adventure/rngs/escape.rng
133
+ - cockpit/themes/adventure/rngs/finalize.rng
134
+ - cockpit/themes/adventure/rngs/group.rng
135
+ - cockpit/themes/adventure/rngs/loop.rng
136
+ - cockpit/themes/adventure/rngs/manipulate.rng
137
+ - cockpit/themes/adventure/rngs/otherwise.rng
138
+ - cockpit/themes/adventure/rngs/parallel.rng
139
+ - cockpit/themes/adventure/rngs/parallel_branch.rng
140
+ - cockpit/themes/adventure/rngs/update.rng
141
+ - cockpit/themes/adventure/symbols/alternative.svg
142
+ - cockpit/themes/adventure/symbols/call.svg
143
+ - cockpit/themes/adventure/symbols/callmanipulate.svg
144
+ - cockpit/themes/adventure/symbols/choose.svg
145
+ - cockpit/themes/adventure/symbols/choose_exclusive.svg
146
+ - cockpit/themes/adventure/symbols/choose_inclusive.svg
147
+ - cockpit/themes/adventure/symbols/critical.svg
148
+ - cockpit/themes/adventure/symbols/escape.svg
149
+ - cockpit/themes/adventure/symbols/loop.svg
150
+ - cockpit/themes/adventure/symbols/manipulate.svg
151
+ - cockpit/themes/adventure/symbols/otherwise.svg
152
+ - cockpit/themes/adventure/symbols/parallel.svg
153
+ - cockpit/themes/adventure/symbols/parallel_branch.svg
154
+ - cockpit/themes/adventure/symbols/scripts.svg
155
+ - cockpit/themes/adventure/symbols/start.svg
156
+ - cockpit/themes/adventure/theme.js
157
+ - cockpit/themes/default/rngs/alternative.rng
158
+ - cockpit/themes/default/rngs/call.rng
159
+ - cockpit/themes/default/rngs/callmanipulate.rng
160
+ - cockpit/themes/default/rngs/choose.rng
161
+ - cockpit/themes/default/rngs/critical.rng
162
+ - cockpit/themes/default/rngs/escape.rng
163
+ - cockpit/themes/default/rngs/finalize.rng
164
+ - cockpit/themes/default/rngs/group.rng
165
+ - cockpit/themes/default/rngs/loop.rng
166
+ - cockpit/themes/default/rngs/manipulate.rng
167
+ - cockpit/themes/default/rngs/otherwise.rng
168
+ - cockpit/themes/default/rngs/parallel.rng
169
+ - cockpit/themes/default/rngs/parallel_branch.rng
170
+ - cockpit/themes/default/rngs/update.rng
171
+ - cockpit/themes/default/symbols/alternative.svg
172
+ - cockpit/themes/default/symbols/call.svg
173
+ - cockpit/themes/default/symbols/callmanipulate.svg
174
+ - cockpit/themes/default/symbols/choose.svg
175
+ - cockpit/themes/default/symbols/choose_exclusive.svg
176
+ - cockpit/themes/default/symbols/choose_inclusive.svg
177
+ - cockpit/themes/default/symbols/critical.svg
178
+ - cockpit/themes/default/symbols/escape.svg
179
+ - cockpit/themes/default/symbols/loop.svg
180
+ - cockpit/themes/default/symbols/manipulate.svg
181
+ - cockpit/themes/default/symbols/otherwise.svg
182
+ - cockpit/themes/default/symbols/parallel.svg
183
+ - cockpit/themes/default/symbols/parallel_branch.svg
184
+ - cockpit/themes/default/symbols/scripts.svg
185
+ - cockpit/themes/default/symbols/start.svg
186
+ - cockpit/themes/default/theme.js
187
+ - cockpit/themes/lego/rngs/alternative.rng
188
+ - cockpit/themes/lego/rngs/call.rng
189
+ - cockpit/themes/lego/rngs/choose.rng
190
+ - cockpit/themes/lego/rngs/critical.rng
191
+ - cockpit/themes/lego/rngs/loop.rng
192
+ - cockpit/themes/lego/rngs/manipulate.rng
193
+ - cockpit/themes/lego/rngs/parallel.rng
194
+ - cockpit/themes/lego/rngs/parallel_branch.rng
195
+ - cockpit/themes/lego/symbols/alternative.svg
196
+ - cockpit/themes/lego/symbols/call.svg
197
+ - cockpit/themes/lego/symbols/callmanipulate.svg
198
+ - cockpit/themes/lego/symbols/callori.svg
199
+ - cockpit/themes/lego/symbols/choose.svg
200
+ - cockpit/themes/lego/symbols/choose_exclusive.svg
201
+ - cockpit/themes/lego/symbols/choose_inclusive.svg
202
+ - cockpit/themes/lego/symbols/critical.svg
203
+ - cockpit/themes/lego/symbols/escape.svg
204
+ - cockpit/themes/lego/symbols/lego.svg
205
+ - cockpit/themes/lego/symbols/loop.svg
206
+ - cockpit/themes/lego/symbols/manipulate.svg
207
+ - cockpit/themes/lego/symbols/otherwise.svg
208
+ - cockpit/themes/lego/symbols/parallel.svg
209
+ - cockpit/themes/lego/symbols/parallel_branch.svg
210
+ - cockpit/themes/lego/symbols/scripts.svg
211
+ - cockpit/themes/lego/symbols/start.svg
212
+ - cockpit/themes/lego/theme.js
213
+ - cockpit/themes/promise/rngs/alternative.rng
214
+ - cockpit/themes/promise/rngs/call.rng
215
+ - cockpit/themes/promise/rngs/choose.rng
216
+ - cockpit/themes/promise/rngs/critical.rng
217
+ - cockpit/themes/promise/rngs/loop.rng
218
+ - cockpit/themes/promise/rngs/manipulate.rng
219
+ - cockpit/themes/promise/rngs/parallel.rng
220
+ - cockpit/themes/promise/rngs/parallel_branch.rng
221
+ - cockpit/themes/promise/symbols/alternative.svg
222
+ - cockpit/themes/promise/symbols/call.svg
223
+ - cockpit/themes/promise/symbols/callmanipulate.svg
224
+ - cockpit/themes/promise/symbols/choose.svg
225
+ - cockpit/themes/promise/symbols/choose_exclusive.svg
226
+ - cockpit/themes/promise/symbols/choose_inclusive.svg
227
+ - cockpit/themes/promise/symbols/critical.svg
228
+ - cockpit/themes/promise/symbols/escape.svg
229
+ - cockpit/themes/promise/symbols/loop.svg
230
+ - cockpit/themes/promise/symbols/manipulate.svg
231
+ - cockpit/themes/promise/symbols/otherwise.svg
232
+ - cockpit/themes/promise/symbols/parallel.svg
233
+ - cockpit/themes/promise/symbols/parallel_branch.svg
234
+ - cockpit/themes/promise/symbols/preminder.svg
235
+ - cockpit/themes/promise/symbols/scripts.svg
236
+ - cockpit/themes/promise/symbols/start.svg
237
+ - cockpit/themes/promise/theme.js
131
238
  - contrib/Screenshot at 2011-09-28 02:38:11.png
132
239
  - contrib/logo2-small.png
133
240
  - contrib/logo2.png
@@ -160,9 +267,41 @@ files:
160
267
  - lib/engine/instance-info.rng
161
268
  - lib/engine/instances.rng
162
269
  - server/handlerwrappers/default.rb
270
+ - server/handlerwrappers/log.rb
163
271
  - server/handlerwrappers/soap.rb
164
272
  - server/instances/1/properties.xml
273
+ - server/instances/10/properties.xml
274
+ - server/instances/11/properties.xml
275
+ - server/instances/12/properties.xml
276
+ - server/instances/13/properties.xml
277
+ - server/instances/14/properties.xml
278
+ - server/instances/15/properties.xml
279
+ - server/instances/16/properties.xml
280
+ - server/instances/17/properties.xml
281
+ - server/instances/18/properties.xml
282
+ - server/instances/19/properties.xml
165
283
  - server/instances/2/properties.xml
284
+ - server/instances/20/properties.xml
285
+ - server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret
286
+ - server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret
287
+ - server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml
288
+ - server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret
289
+ - server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret
290
+ - server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml
291
+ - server/instances/21/properties.xml
292
+ - server/instances/22/properties.xml
293
+ - server/instances/23/properties.xml
294
+ - server/instances/24/properties.xml
295
+ - server/instances/25/properties.xml
296
+ - server/instances/26/properties.xml
297
+ - server/instances/27/properties.xml
298
+ - server/instances/3/properties.xml
299
+ - server/instances/4/properties.xml
300
+ - server/instances/5/properties.xml
301
+ - server/instances/6/properties.xml
302
+ - server/instances/7/properties.xml
303
+ - server/instances/8/properties.xml
304
+ - server/instances/9/properties.xml
166
305
  - server/resources/empty_dslx.xml
167
306
  - server/resources/properties.init
168
307
  - server/resources/properties.schema.active
@@ -171,11 +310,12 @@ files:
171
310
  - server/resources/topics.xml
172
311
  - server/resources/transformation.xml
173
312
  - server/resources/transformation_dslx.xsl
313
+ - server/server.pid
174
314
  - server/server.rb
175
315
  - test/callback.rb
176
316
  homepage: http://cpee.org/
177
317
  licenses:
178
- - LGPL-3
318
+ - LGPL-3.0
179
319
  metadata: {}
180
320
  post_install_message:
181
321
  rdoc_options: []
@@ -193,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
333
  version: '0'
194
334
  requirements: []
195
335
  rubyforge_project:
196
- rubygems_version: 2.4.8
336
+ rubygems_version: 2.6.6
197
337
  signing_key:
198
338
  specification_version: 4
199
339
  summary: Preliminary release of cloud process execution engine (cpee). If you just
@@ -1,936 +0,0 @@
1
- function create_header(value){ //{{{
2
- var tmp = $("#prop_template_header tr").clone();
3
- $('.header_value',tmp).text(value);
4
- return tmp;
5
- } //}}}
6
- function create_sizer(){ //{{{
7
- var tmp = $("#prop_template_sizer tr").clone();
8
- return tmp;
9
- } //}}}
10
- function create_line(main,text){ //{{{
11
- var tmp = $("#prop_template_line tr").clone();
12
- $('.line_main',tmp).text(main);
13
- $('.line_text',tmp).text(text);
14
- return tmp;
15
- } //}}}
16
- function create_element(content,svgid){ //{{{
17
- var tmp = $("#prop_template_readonly tr").clone();
18
- $('.prop_name',tmp).text('Element');
19
- $('.prop_value',tmp).val(content);
20
- $('.prop_value',tmp).addClass('pname_element');
21
- $('.prop_value',tmp).parent().append($("<input type='hidden' class='pname_svgid' value='" + svgid + "'>"));
22
- return tmp;
23
- } //}}}
24
- function create_readonly_property(name,content){ //{{{
25
- var tmp = $("#prop_template_readonly tr").clone();
26
- $('.prop_name',tmp).text(name);
27
- $('.prop_value',tmp).val(content);
28
- $('.prop_value',tmp).addClass('pname_' + name.toLowerCase());
29
- return tmp;
30
- } //}}}
31
- function create_input_property(name,cls,content){ //{{{
32
- var tmp = $("#prop_template_input tr").clone();
33
- tmp.addClass(cls);
34
- $('.prop_name',tmp).text(name);
35
- $('.prop_value',tmp).val(content);
36
- $('.prop_value',tmp).addClass('pname_' + name.toLowerCase());
37
- return tmp;
38
- } //}}}
39
- function create_select_property(name,cls,content,alts){ //{{{
40
- var tmp = $("#prop_template_select tr").clone();
41
- tmp.addClass(cls);
42
- $('.prop_name',tmp).text(name);
43
- $('.prop_value',tmp).addClass('pname_' + name.toLowerCase());
44
- $.each(alts,function(a,b){
45
- var o = $('<option value="' + b + '">' + b + '</option>');
46
- if (b == content) o.attr('selected','selected');
47
- $('.prop_value',tmp).append(o);
48
- });
49
- return tmp;
50
- } //}}}
51
- function create_area_property(name,cls,content){ //{{{
52
- var tmp = $("#prop_template_area tr").clone();
53
- tmp.addClass(cls);
54
- $('.prop_name',tmp).text(name);
55
- $('.prop_value',tmp).addClass('pname_' + name.toLowerCase());
56
- $('.prop_value',tmp).text(content);
57
- return tmp;
58
- } //}}}
59
- function create_input_pair(name,cls,content){ //{{{
60
- var tmp = $("#dat_template_pair tr").clone();
61
- tmp.addClass(cls);
62
- $('.pair_name',tmp).val(name);
63
- $('.pair_value',tmp).val(content);
64
- return tmp;
65
- } //}}}
66
-
67
- function CPEE(adaptor) {
68
- this.adaptor = adaptor;
69
- this.elements = elements = {};
70
- this.events = events = {};
71
-
72
- this.noarrow = noarrow = ['alternative', 'otherwise'];
73
-
74
- // Events
75
- this.events.mousedown = function(svgid, e, child, sibling) { // {{{
76
- if(e.button == 0) { // left-click
77
- } else if(e.button == 1) { // middle-click
78
- } else if(e.button == 2) { // right-click
79
- var xml_node = adaptor.description.get_node_by_svg_id(svgid);
80
- var group = null;
81
- var menu = {};
82
-
83
- if(child) {
84
- group = elements[xml_node.get(0).tagName].permissible_children(xml_node);
85
- if(group.length > 0) menu['Insert into'] = group;
86
- }
87
- if(sibling) {
88
- group = elements[xml_node.parent().get(0).tagName].permissible_children(xml_node);
89
- if(group.length > 0) menu['Insert after'] = group;
90
- }
91
-
92
- if(xml_node.get(0).tagName != 'description' && !elements[xml_node.get(0).tagName].neverdelete)
93
- menu['Remove Element'] = [{'label': 'Actual Element',
94
- 'function_call': adaptor.description.remove,
95
- 'menu_icon': function() {
96
- var icon = elements[xml_node.get(0).tagName].illustrator.svg();
97
- icon.children('.rfill').css({'fill':'red','fill-opacity':'0.5'});
98
- return icon;
99
- },
100
- 'params': [null, xml_node]}];
101
- if($('> manipulate', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
102
- menu['Remove Element'].push({'label': 'Remove Scripts',
103
- 'function_call': adaptor.description.remove,
104
- 'menu_icon': function() {
105
- var icon = elements.callmanipulate.illustrator.svg();
106
- icon.children('.rfill:last').css({'fill':'red','fill-opacity':'0.5'});
107
- return icon;
108
- },
109
- 'params': ['> manipulate', xml_node]});
110
- }
111
- new CustomMenu(e).contextmenu(menu);
112
- }
113
- return false;
114
- } // }}}
115
- this.events.click = function(svgid, e) { // {{{
116
- if (adaptor.description.get_node_by_svg_id(svgid).length == 0) {
117
- return;
118
- }
119
-
120
- if ($('#state').text() != 'finished')
121
- $('#main .tabbehind button').show();
122
- if ($('#main .tabbehind button').hasClass('highlight')) {
123
- var check = confirm("Discard changes?");
124
- if (check)
125
- $('#main .tabbehind button').removeClass('highlight');
126
- else
127
- return;
128
- }
129
-
130
- var visid = 'details';
131
- var tab = $('#dat_' + visid);
132
- var node = adaptor.description.get_node_by_svg_id(svgid).get(0);
133
-
134
- tab.empty();
135
- tab.append(create_element(node.nodeName,svgid));
136
- switch(node.nodeName) {
137
- case 'call':
138
- tab.append(create_readonly_property('ID',$(node).attr('id')));
139
- tab.append(create_input_property('Endpoint','',$(node).attr('endpoint')));
140
-
141
- if ($('finalize',node).length > 0)
142
- tab.append(create_area_property('Finalize','',format_text_skim($('finalize',node).text())));
143
- if ($('update',node).length > 0)
144
- tab.append(create_area_property('Update','',format_text_skim($('update',node).text())));
145
-
146
- tab.append(create_header('Parameters:'));
147
-
148
- tab.append(create_input_property('Label','indent',$('parameters label',node).text()));
149
- tab.append(create_input_property('Method','indent',$('parameters method',node).text()));
150
- $.each($('parameters parameters *',node),function(){
151
- tab.append(create_input_pair(this.nodeName,'indent',$(this).text()));
152
- });
153
- break;
154
- case 'manipulate':
155
- tab.append(create_readonly_property('ID',$(node).attr('id')));
156
- tab.append(create_area_property('Script','',format_text_skim($(node).text())));
157
- break;
158
- case 'loop':
159
- if ($(node).attr('pre_test') != undefined)
160
- var mode = 'pre_test';
161
- if ($(node).attr('post_test') != undefined)
162
- var mode = 'post_test';
163
- tab.append(create_select_property('Mode','',mode,['post_test','pre_test']));
164
- tab.append(create_input_property('Condition','',$(node).attr(mode)));
165
- break;
166
- case 'choose':
167
- var mode = ($(node).attr('mode') == 'inclusive' || $(node).attr('mode') == undefined ? 'inclusive' : 'exclusive')
168
- tab.append(create_select_property('Mode','',mode,['exclusive','inclusive']));
169
- break;
170
- case 'alternative':
171
- tab.append(create_input_property('Condition','',$(node).attr('condition')));
172
- break;
173
- case 'critical':
174
- var sid = ($(node).attr('sid') == '' ? 'section' : $(node).attr('sid'));
175
- tab.append(create_input_property('SID','',sid));
176
- tab.append(create_line('Hint','Identical SID\'s shared by between differnt "critical" elements define mutual exclusive areas'));
177
- break;
178
- case 'parallel':
179
- var wait = ($(node).attr('wait') == '' || $(node).attr('wait') == undefined ? '-1' : $(node).attr('wait'));
180
- tab.append(create_input_property('Wait','',wait));
181
- tab.append(create_line('Hint','-1 to wait for all branches'));
182
- break;
183
- case 'parallel_branch':
184
- tab.append(create_input_property('Pass to branch','',$(node).attr('pass')));
185
- tab.append(create_input_property('Local scope','',$(node).attr('local')));
186
- break;
187
- // TODO group
188
- }
189
- // add the sizer in order for colspan to work
190
- tab.append(create_sizer());
191
- save['details'] = serialize_details(tab).serializeXML();
192
- } // }}}
193
- this.events.dblclick = function(svgid, e) { // {{{
194
- } // }}}
195
- this.events.mouseover = function(svgid, e) { // {{{
196
- $('.tile[element-id = "' + svgid + '"]').css('display','block');
197
- return false;
198
- } // }}}
199
- this.events.mouseout = function(svgid, e) { // {{{
200
- $('.tile[element-id = "' + svgid + '"]').css('display','none');
201
- return false;
202
- } // }}}
203
- this.events.dragstart = function (svgid, e) { //{{{
204
- } //}}}
205
-
206
- // Abstract Elements (they only have an illustrator)
207
- this.elements.callmanipulate = { /*{{{*/
208
- 'illustrator': {//{{{
209
- 'type' : 'abstract',
210
- 'svg': function() {
211
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
212
- '<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>' +
213
- '<path transform="scale(0.7) translate(12, 2)" class="stand" style="fill:#000000;" d="m 19.511059,31.248618 0,-23.6413153 -3.940219,0 0,15.7608793 -7.8804404,-7.88044 0,7.88044 -7.88043943,-7.88044 0,15.760876 z"/>' +
214
- '<circle cx="28" cy="27" r="9" class="rfill stand"/>' +
215
- '<text transform="translate(28,31)" class="small">s</text>' +
216
- '</svg>');
217
- }
218
- },//}}}
219
- }; /*}}}*/
220
- this.elements.choose_inclusive = { /*{{{*/
221
- 'illustrator': {//{{{
222
- 'type' : 'abstract',
223
- 'svg': function() {
224
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
225
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
226
- '<circle cx="15.5" cy="15.5" r="7" class="stand"/>' +
227
- '</svg>');
228
- }
229
- },//}}}
230
- }; /*}}}*/
231
- this.elements.choose_exclusive = { /*{{{*/
232
- 'illustrator': {//{{{
233
- 'type' : 'abstract',
234
- 'svg': function() {
235
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
236
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
237
- '<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>' +
238
- '<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>' +
239
- '</svg>');
240
- }
241
- },//}}}
242
- }; /*}}}*/
243
-
244
- // Primitive Elements
245
- this.elements.call = { /*{{{*/
246
- 'illustrator': {//{{{
247
- 'type' : 'primitive',
248
- 'endnodes' : 'this',
249
- 'resolve_symbol' : function(node) {
250
- if($(node).attr('endpoint') == 'instantiation') {
251
- return 'callinstantiation';
252
- } else if($(node).attr('endpoint') == 'correlation') {
253
- return 'callcorrelation';
254
- } else if($('parameters > service', node).length > 0) {
255
- return 'callinjection';
256
- } else if($('finalize,update', node).length > 0) {
257
- return 'callmanipulate';
258
- } else {
259
- return'call';
260
- }
261
- },
262
- 'svg': function() {
263
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
264
- '<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>' +
265
- '<path transform="scale(0.7) translate(12, 2)" class="stand" style="fill:#000000;" d="m 19.511059,31.248618 0,-23.6413153 -3.940219,0 0,15.7608793 -7.8804404,-7.88044 0,7.88044 -7.88043943,-7.88044 0,15.760876 z"/>' +
266
- '</svg>');
267
- }
268
- },//}}}
269
- 'description': '<call id="###" endpoint="" xmlns="http://cpee.org/ns/description/1.0"><parameters xmlns="http://cpee.org/ns/description/1.0"><label>""</label><method>:post</method><parameters/></parameters></call>',
270
- 'permissible_children': function(node) { //{{{
271
- if(node.children('finalize,update').length < 1)
272
- return [
273
- {'label': 'Scripts',
274
- 'function_call': adaptor.description.insert_last_into,
275
- 'menu_icon': elements.callmanipulate.illustrator.svg,
276
- 'params': [adaptor.description.elements.scripts, node]}
277
- ];
278
- return [];
279
- }, //}}}
280
- 'adaptor' : {//{{{
281
- 'mousedown': function (node, e) {
282
- events.mousedown(node,e,true, true);
283
- },
284
- 'click': events.click,
285
- 'dragstart': events.dragstart,
286
- }//}}}
287
- }; /*}}}*/
288
- this.elements.scripts = { /*{{{*/
289
- 'illustrator': {//{{{
290
- 'type' : 'primitive',
291
- 'endnodes' : 'this',
292
- 'svg': function() {
293
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
294
- '<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>' +
295
- '<text transform="translate(15,21)" class="normal">s</text>' +
296
- '</svg>');
297
- }
298
- },//}}}
299
- 'description': ['<finalize xmlns="http://cpee.org/ns/description/1.0"/>','<update xmlns="http://cpee.org/ns/description/1.0"/>'],
300
- 'permissible_children': function(node) { //{{{
301
- return [];
302
- }, //}}}
303
- 'adaptor': { //{{{
304
- 'mousedown': function (node, e) {
305
- events.mousedown(node,e,false, true);
306
- },
307
- 'click': events.click,
308
- } //}}}
309
- }; /*}}}*/
310
- this.elements.manipulate = { /*{{{*/
311
- 'illustrator': {//{{{
312
- 'type' : 'primitive',
313
- 'endnodes' : 'this',
314
- 'svg': function() {
315
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
316
- '<rect x="1" y="1" width="28" height="28" rx="4" class="rfill stand"/>' +
317
- '<text transform="translate(15,21)" class="normal">s</text>' +
318
- '</svg>');
319
- }
320
- },//}}}
321
- 'description': '<manipulate id="###" xmlns="http://cpee.org/ns/description/1.0"/>',
322
- 'permissible_children': function(node) { //{{{
323
- return [];
324
- }, //}}}
325
- 'adaptor' : {//{{{
326
- 'mousedown': function (node, e) {
327
- events.mousedown(node,e,false, true);
328
- },
329
- 'click': events.click,
330
- }//}}}
331
- }; /*}}}*/
332
- this.elements.escape = { /*{{{*/
333
- 'illustrator': {//{{{
334
- 'type' : 'primitive',
335
- 'endnodes' : 'this',
336
- 'svg': function() {
337
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
338
- '<circle cx="15" cy="15" r="14" class="stand"/>' +
339
- '<circle cx="15" cy="15" r="11" class="stand"/>' +
340
- '<polygon points="10.5,20.5 15,8.5 20.5,20.5 15,15.5 10.5,20.5" class="black"/>' +
341
- '</svg>');
342
- }
343
- },//}}}
344
- 'description': '<escape xmlns="http://cpee.org/ns/description/1.0"/>',
345
- 'permissible_children': function(node) { //{{{
346
- return [];
347
- }, //}}}
348
- 'adaptor' : {//{{{
349
- 'mousedown': function (node, e) {
350
- events.mousedown(node,e,false, true);
351
- },
352
- 'click': events.click,
353
- }//}}}
354
- }; /*}}}*/
355
-
356
- // Complex Elements
357
- this.elements.choose = { /*{{{*/
358
- 'illustrator': {//{{{
359
- 'type' : 'complex',
360
- 'endnodes' : 'aggregate',
361
- 'closeblock': false,
362
- 'expansion' : function(node) {
363
- return 'horizontal';
364
- },
365
- 'resolve_symbol' : function(node) {
366
- if($(node).attr('mode') == 'exclusive') {
367
- return 'choose_exclusive';
368
- } else {
369
- return 'choose_inclusive';
370
- }
371
- },
372
- 'col_shift' : function(node) {
373
- return false;
374
- },
375
- 'svg': function() {
376
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
377
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
378
- '<circle cx="15.5" cy="15.5" r="7" class="stand"/>' +
379
- '</svg>');
380
- }
381
- },//}}}
382
- 'description': '<choose mode="exclusive" xmlns="http://cpee.org/ns/description/1.0"><otherwise/></choose>',
383
- 'permissible_children': function(node) { //{{{
384
- var func = null;
385
- if(node.get(0).tagName == 'choose') { func = adaptor.description.insert_first_into }
386
- else { func = adaptor.description.insert_after }
387
- if(node.children('parallel_branch').length > 0) {
388
- return [{'label': 'Parallel Branch',
389
- 'function_call': func,
390
- 'menu_icon': elements.parallel_branch.illustrator.svg,
391
- 'params': [adaptor.description.elements.parallel_branch, node]}];
392
- }
393
- var childs = [{'label': 'Alternative',
394
- 'function_call': func,
395
- 'menu_icon': elements.alternative.illustrator.svg,
396
- 'params': [adaptor.description.elements.alternative, node]}];
397
- if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
398
- childs.push({'label': 'Otherwise',
399
- 'function_call': func,
400
- 'menu_icon': elements.otherwise.illustrator.svg,
401
- 'params': [adaptor.description.elements.otherwise, node]});
402
- if(node.parents('parallel').length > node.parents('parallel_branch').length)
403
- childs.push({'label': 'Parallel Branch',
404
- 'function_call': func,
405
- 'menu_icon': elements.parallel_branch.illustrator.svg,
406
- 'params': [adaptor.description.elements.parallel_branch, node]});
407
- return childs;
408
- }, //}}}
409
- 'adaptor' : {//{{{
410
- 'mousedown': function (node, e) {
411
- events.mousedown(node,e,true, true);
412
- },
413
- 'click': events.click,
414
- 'dblclick': events.dblclick,
415
- 'mouseover': events.mouseover,
416
- 'mouseout': events.mouseout,
417
- }//}}}
418
- }; /*}}}*/
419
- this.elements.otherwise = { /*{{{*/
420
- 'illustrator': {//{{{
421
- 'type' : 'complex',
422
- 'endnodes' : 'passthrough',
423
- 'closeblock': false,
424
- 'expansion' : function(node) {
425
- return 'vertical';
426
- },
427
- 'col_shift' : function(node) {
428
- return false;
429
- },
430
- 'svg': function() {
431
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
432
- '<circle cx="15" cy="15" r="9" class="standtrans"/>' +
433
- '<line x1="9" y1="21" x2="21" y2="9" class="stand"/>' +
434
- '</svg>');
435
- }
436
- },//}}}
437
- 'description': '<otherwise xmlns="http://cpee.org/ns/description/1.0"/>',
438
- 'neverdelete': true,
439
- 'permissible_children': function(node) { //{{{
440
- var func = null;
441
- var childs = null;
442
- if(node.get(0).tagName == 'otherwise') { func = adaptor.description.insert_first_into }
443
- else { func = adaptor.description.insert_after }
444
- return [
445
- {'label': 'Service Call with Scripts',
446
- 'function_call': func,
447
- 'menu_icon': elements.callmanipulate.illustrator.svg,
448
- 'params': [adaptor.description.elements.callmanipulate, node]},
449
- {'label': 'Service Call',
450
- 'function_call': func,
451
- 'menu_icon': elements.call.illustrator.svg,
452
- 'params': [adaptor.description.elements.call, node]},
453
- {'label': 'Script',
454
- 'function_call': func,
455
- 'menu_icon': elements.manipulate.illustrator.svg,
456
- 'params': [adaptor.description.elements.manipulate, node]},
457
- {'label': 'Parallel',
458
- 'function_call': func,
459
- 'menu_icon': elements.parallel.illustrator.svg,
460
- 'params': [adaptor.description.elements.parallel, node]},
461
- {'label': 'Choose',
462
- 'function_call': func,
463
- 'menu_icon': elements.choose.illustrator.svg,
464
- 'params': [adaptor.description.elements.choose, node]},
465
- {'label': 'Loop',
466
- 'function_call': func,
467
- 'menu_icon': elements.loop.illustrator.svg,
468
- 'params': [adaptor.description.elements.loop, node]},
469
- {'label': 'Critical',
470
- 'function_call': func,
471
- 'menu_icon': elements.critical.illustrator.svg,
472
- 'params': [adaptor.description.elements.critical, node]}
473
- ];
474
- }, //}}}
475
- 'adaptor' : {//{{{
476
- 'mousedown': function (node, e) {
477
- events.mousedown(node,e,true, false);
478
- },
479
- 'click': events.click,
480
- 'dblclick': events.dblclick,
481
- 'mouseover': events.mouseover,
482
- 'mouseout': events.mouseout,
483
- }//}}}
484
- }; /*}}}*/
485
- this.elements.alternative = { /*{{{*/
486
- 'illustrator': {//{{{
487
- 'type' : 'complex',
488
- 'endnodes' : 'passthrough',
489
- 'closeblock':false,
490
- 'expansion' : function(node) {
491
- return 'vertical';
492
- },
493
- 'col_shift' : function(node) {
494
- return false;
495
- },
496
- 'svg': function() {
497
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
498
- '<circle cx="15" cy="15" r="14" class="standwithout"/>' +
499
- '<text transform="translate(15,20)" class="normal">{..}</text>' +
500
- '</svg>');
501
- }
502
- },//}}}
503
- 'description': '<alternative condition="" xmlns="http://cpee.org/ns/description/1.0"/>',
504
- 'permissible_children': function(node) { //{{{
505
- if(node.get(0).tagName == 'alternative') { func = adaptor.description.insert_first_into }
506
- else { func = adaptor.description.insert_after }
507
- if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
508
- return [{'label': 'Parallel Branch',
509
- 'function_call': func,
510
- 'menu_icon': elements.parallel_branch.illustrator.svg,
511
- 'params': [adaptor.description.elements.parallel_branch, node]}];
512
- }
513
- return [
514
- {'label': 'Service Call with Scripts',
515
- 'function_call': func,
516
- 'menu_icon': elements.callmanipulate.illustrator.svg,
517
- 'params': [adaptor.description.elements.callmanipulate, node]},
518
- {'label': 'Service Call',
519
- 'function_call': func,
520
- 'menu_icon': elements.call.illustrator.svg,
521
- 'params': [adaptor.description.elements.call, node]},
522
- {'label': 'Script',
523
- 'function_call': func,
524
- 'menu_icon': elements.manipulate.illustrator.svg,
525
- 'params': [adaptor.description.elements.manipulate, node]},
526
- {'label': 'Parallel',
527
- 'function_call': func,
528
- 'menu_icon': elements.parallel.illustrator.svg,
529
- 'params': [adaptor.description.elements.parallel, node]},
530
- {'label': 'Choose',
531
- 'function_call': func,
532
- 'menu_icon': elements.choose.illustrator.svg,
533
- 'params': [adaptor.description.elements.choose, node]},
534
- {'label': 'Loop',
535
- 'function_call': func,
536
- 'menu_icon': elements.loop.illustrator.svg,
537
- 'params': [adaptor.description.elements.loop, node]},
538
- {'label': 'Critical',
539
- 'function_call': func,
540
- 'menu_icon': elements.critical.illustrator.svg,
541
- 'params': [adaptor.description.elements.critical, node]}
542
- ];
543
- }, //}}}
544
- 'adaptor' : {//{{{
545
- 'mousedown': function (node, e) {
546
- events.mousedown(node,e,true, false);
547
- },
548
- 'click': events.click,
549
- 'dblclick': events.dblclick,
550
- 'mouseover': events.mouseover,
551
- 'mouseout': events.mouseout,
552
- }//}}}
553
- }; /*}}}*/
554
- this.elements.loop = { /*{{{*/
555
- 'illustrator': {//{{{
556
- 'type' : 'complex',
557
- 'endnodes' : 'this',
558
- 'closeblock' : true,
559
- 'expansion' : function(node) {
560
- return 'vertical';
561
- },
562
- 'col_shift' : function(node) {
563
- return true;
564
- },
565
- 'svg': function() {
566
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
567
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
568
- '<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>' +
569
- '<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>' +
570
- '</svg>');
571
- }
572
- },// }}}
573
- 'description': '<loop pre_test="" xmlns="http://cpee.org/ns/description/1.0"/>',
574
- 'permissible_children': function(node) { //{{{
575
- var func = null;
576
- if(node.get(0).tagName == 'loop') { func = adaptor.description.insert_first_into }
577
- else { func = adaptor.description.insert_after }
578
- var childs = [
579
- {'label': 'Service Call with Scripts',
580
- 'function_call': func,
581
- 'menu_icon': elements.callmanipulate.illustrator.svg,
582
- 'params': [adaptor.description.elements.callmanipulate, node]},
583
- {'label': 'Service Call',
584
- 'function_call': func,
585
- 'menu_icon': elements.call.illustrator.svg,
586
- 'params': [adaptor.description.elements.call, node]},
587
- {'label': 'Manipulate',
588
- 'function_call': func,
589
- 'menu_icon': elements.manipulate.illustrator.svg,
590
- 'params': [adaptor.description.elements.manipulate, node]},
591
- {'label': 'Choose',
592
- 'function_call': func,
593
- 'menu_icon': elements.choose.illustrator.svg,
594
- 'params': [adaptor.description.elements.choose, node]},
595
- {'label': 'Loop',
596
- 'function_call': func,
597
- 'menu_icon': elements.loop.illustrator.svg,
598
- 'params': [adaptor.description.elements.loop, node]},
599
- {'label': 'Critical',
600
- 'function_call': func,
601
- 'menu_icon': elements.critical.illustrator.svg,
602
- 'params': [adaptor.description.elements.critical, node]}
603
- ];
604
- if(node.parent('parallel').length > node.parent('parallel_branch').length) {
605
- childs.push({'label': 'Parallel Branch',
606
- 'function_call': func,
607
- 'menu_icon': elements.parallel_branch.illustrator.svg,
608
- 'params': [adaptor.description.elements.parallel_branch, node]}
609
- );
610
- } else {
611
- childs.push({'label': 'Parallel',
612
- 'function_call': func,
613
- 'menu_icon': elements.parallel.illustrator.svg,
614
- 'params': [adaptor.description.elements.parallel, node]}
615
- );
616
- }
617
- return childs;
618
- }, //}}}
619
- 'adaptor' : {//{{{
620
- 'mousedown': function (node, e) {
621
- events.mousedown(node,e,true, true);
622
- },
623
- 'click': events.click,
624
- 'dblclick': events.dblclick,
625
- 'mouseover': events.mouseover,
626
- 'mouseout': events.mouseout,
627
- }//}}}
628
- }; /*}}}*/
629
- this.elements.parallel = { /*{{{*/
630
- 'illustrator': {//{{{
631
- 'type' : 'complex',
632
- 'endnodes' : 'this',
633
- 'closeblock' : false,
634
- 'border': true,
635
- 'expansion' : function(node) {
636
- // check if any sibling other than 'parallel_branch' is present
637
- if($(node).children(':not(parallel_branch)').length > 0) return 'vertical';
638
- return 'horizontal';
639
- },
640
- 'col_shift' : function(node) {
641
- return true;
642
- },
643
- 'svg': function() {
644
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
645
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
646
- '<text transform="translate(12,25)" class="normallarge">+</text>' +
647
- '<text transform="translate(18,16)" class="small">=</text>' +
648
- '</svg>');
649
- }
650
- },//}}}
651
- 'description': '<parallel xmlns="http://cpee.org/ns/description/1.0"/>',
652
- 'permissible_children': function(node) { //{{{
653
- var childs = [
654
- {'label': 'Service Call with Scripts',
655
- 'function_call': adaptor.description.insert_last_into,
656
- 'menu_icon': elements.callmanipulate.illustrator.svg,
657
- 'params': [adaptor.description.elements.callmanipulate, node]},
658
- {'label': 'Service Call',
659
- 'function_call': adaptor.description.insert_last_into,
660
- 'menu_icon': elements.call.illustrator.svg,
661
- 'params': [adaptor.description.elements.call, node]},
662
- {'label': 'Manipulate',
663
- 'function_call': adaptor.description.insert_last_into,
664
- 'menu_icon': elements.manipulate.illustrator.svg,
665
- 'params': [adaptor.description.elements.manipulate, node]},
666
- {'label': 'Choose',
667
- 'function_call': adaptor.description.insert_last_into,
668
- 'menu_icon': elements.choose.illustrator.svg,
669
- 'params': [adaptor.description.elements.choose, node]},
670
- {'label': 'Loop',
671
- 'function_call': adaptor.description.insert_last_into,
672
- 'menu_icon': elements.loop.illustrator.svg,
673
- 'params': [adaptor.description.elements.loop, node]},
674
- {'label': 'Critical',
675
- 'function_call': adaptor.description.insert_last_into,
676
- 'menu_icon': elements.critical.illustrator.svg,
677
- 'params': [adaptor.description.elements.critical, node]},
678
- {'label': 'Parallel Branch',
679
- 'function_call': adaptor.description.insert_last_into,
680
- 'menu_icon': elements.parallel_branch.illustrator.svg,
681
- 'params': [adaptor.description.elements.parallel_branch, node]}
682
- ];
683
- if(node.get(0).tagName != 'parallel')
684
- childs.push({'label': 'Parallel',
685
- 'function_call': adaptor.description.insert_last_into,
686
- 'menu_icon': elements.parallel.illustrator.svg,
687
- 'params': [adaptor.description.elements.parallel, node]});
688
- return childs;
689
- }, //}}}
690
- 'adaptor' : {//{{{
691
- 'mousedown': function (node, e) {
692
- events.mousedown(node,e,true, true);
693
- },
694
- 'click': events.click,
695
- 'dblclick': events.dblclick,
696
- 'mouseover': events.mouseover,
697
- 'mouseout': events.mouseout,
698
- }//}}}
699
- }; /*}}}*/
700
- this.elements.parallel_branch = { /*{{{*/
701
- 'illustrator': {//{{{
702
- 'type' : 'complex',
703
- 'endnodes' : 'this',
704
- 'closeblock' : false,
705
- 'expansion' : function(node) {
706
- return 'vertical';
707
- },
708
- 'col_shift' : function(node) {
709
- if(node.parentNode.tagName == 'choose') return false;
710
- if($(node).parents('parallel').first().children(':not(parallel_branch)').length > 0) return true;
711
- return false;
712
- },
713
- 'svg': function() {
714
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
715
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
716
- '<text transform="translate(15,20)" class="small">+|</text>' +
717
- '</svg>');
718
- }
719
- },//}}}
720
- 'description': '<parallel_branch xmlns="http://cpee.org/ns/description/1.0"/>',
721
- 'permissible_children': function(node) { //{{{
722
- var func = null;
723
- var childs = null;
724
- if(node.get(0).tagName == 'parallel_branch') { func = adaptor.description.insert_first_into }
725
- else { func = adaptor.description.insert_after }
726
- childs = [
727
- {'label': 'Service Call with Scripts',
728
- 'function_call': func,
729
- 'menu_icon': elements.callmanipulate.illustrator.svg,
730
- 'params': [adaptor.description.elements.callmanipulate, node]},
731
- {'label': 'Service Call',
732
- 'function_call': func,
733
- 'menu_icon': elements.call.illustrator.svg,
734
- 'params': [adaptor.description.elements.call, node]},
735
- {'label': 'Script',
736
- 'function_call': func,
737
- 'menu_icon': elements.manipulate.illustrator.svg,
738
- 'params': [adaptor.description.elements.manipulate, node]},
739
- {'label': 'Parallel',
740
- 'function_call': func,
741
- 'menu_icon': elements.parallel.illustrator.svg,
742
- 'params': [adaptor.description.elements.parallel, node]},
743
- {'label': 'Choose',
744
- 'function_call': func,
745
- 'menu_icon': elements.choose.illustrator.svg,
746
- 'params': [adaptor.description.elements.choose, node]},
747
- {'label': 'Loop',
748
- 'function_call': func,
749
- 'menu_icon': elements.loop.illustrator.svg,
750
- 'params': [adaptor.description.elements.loop, node]},
751
- {'label': 'Critical',
752
- 'function_call': func,
753
- 'menu_icon': elements.critical.illustrator.svg,
754
- 'params': [adaptor.description.elements.critical, node]},
755
- ];
756
- if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
757
- return [{'label': 'Alternative',
758
- 'function_call': func,
759
- 'menu_icon': elements.alternative.illustrator.svg,
760
- 'params': [adaptor.description.elements.alternative, node]}];
761
- }
762
- return childs;
763
- }, //}}}
764
- 'adaptor' : {//{{{
765
- 'mousedown': function (node, e) {
766
- events.mousedown(node,e,true, false);
767
- },
768
- 'click': events.click,
769
- 'dblclick': events.dblclick,
770
- 'mouseover': events.mouseover,
771
- 'mouseout': events.mouseout,
772
- }//}}}
773
- }; /*}}}*/
774
- this.elements.critical = { /*{{{*/
775
- 'illustrator': {//{{{
776
- 'type' : 'complex',
777
- 'endnodes' : 'aggregate',
778
- 'closeblock' : false,
779
- 'border': true,
780
- 'expansion' : function(node) {
781
- return 'vertical';
782
- },
783
- 'col_shift' : function(node) {
784
- return true;
785
- },
786
- 'svg': function() {
787
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
788
- '<circle cx="15" cy="15" r="14" class="stand"/>' +
789
- '<text transform="translate(15,21)" class="normal">⚠</text>' +
790
- '</svg>');
791
- }
792
- },//}}}
793
- 'description': '<critical sid="section" xmlns="http://cpee.org/ns/description/1.0"/>',
794
- 'permissible_children': function(node) { //{{{
795
- var func = null;
796
- if(node.get(0).tagName == 'critical') { func = adaptor.description.insert_first_into }
797
- else { func = adaptor.description.insert_after }
798
- return [
799
- {'label': 'Service Call with Scripts',
800
- 'function_call': func,
801
- 'menu_icon': elements.callmanipulate.illustrator.svg,
802
- 'params': [adaptor.description.elements.callmanipulate, node]},
803
- {'label': 'Service Call',
804
- 'function_call': func,
805
- 'menu_icon': elements.call.illustrator.svg,
806
- 'params': [adaptor.description.elements.call, node]},
807
- {'label': 'Script',
808
- 'function_call': func,
809
- 'menu_icon': elements.manipulate.illustrator.svg,
810
- 'params': [adaptor.description.elements.manipulate, node]},
811
- {'label': 'Parallel',
812
- 'function_call': func,
813
- 'menu_icon': elements.parallel.illustrator.svg,
814
- 'params': [adaptor.description.elements.parallel, node]},
815
- {'label': 'Choose',
816
- 'function_call': func,
817
- 'menu_icon': elements.choose.illustrator.svg,
818
- 'params': [adaptor.description.elements.choose, node]},
819
- {'label': 'Loop',
820
- 'function_call': func,
821
- 'menu_icon': elements.loop.illustrator.svg,
822
- 'params': [adaptor.description.elements.loop, node]},
823
- {'label': 'Critical',
824
- 'function_call': func,
825
- 'menu_icon': elements.critical.illustrator.svg,
826
- 'params': [adaptor.description.elements.critical, node]},
827
- ];
828
- }, //}}}
829
- 'adaptor' : {//{{{
830
- 'mousedown': function (node, e) {
831
- events.mousedown(node,e,true, true);
832
- },
833
- 'click': events.click,
834
- 'dblclick': events.dblclick,
835
- 'mouseover': events.mouseover,
836
- 'mouseout': events.mouseout,
837
- }//}}}
838
- }; /*}}}*/
839
- this.elements.group = { /*{{{*/
840
- 'illustrator': {//{{{
841
- 'type' : 'complex',
842
- 'endnodes' : 'aggregate',
843
- 'closeblock' : false,
844
- 'border': 'injectiongroup', // other value than true,false inidcates the used class for the svg-object
845
- 'expansion' : function(node) {
846
- return 'vertical';
847
- },
848
- 'col_shift' : function(node) {
849
- return true;
850
- },
851
- 'svg': function() {
852
- return false;
853
- }
854
- },//}}}
855
- 'description': '<group xmlns="http://cpee.org/ns/description/1.0"/>',
856
- 'permissible_children': function(node) { //{{{
857
- var func = null;
858
- if(node.get(0).tagName == 'group') { func = adaptor.description.insert_first_into }
859
- else { func = adaptor.description.insert_after }
860
- return [
861
- ];
862
- }, //}}}
863
- 'adaptor' : {//{{{
864
- 'mousedown': function (node, e) {
865
- events.mousedown(node,e,true, true);
866
- },
867
- 'click': events.click,
868
- 'dblclick': events.dblclick,
869
- 'mouseover': events.mouseover,
870
- 'mouseout': events.mouseout,
871
- }//}}}
872
- }; /*}}}*/
873
- this.elements.start = this.elements.description = { /*{{{*/
874
- 'illustrator': {//{{{
875
- 'type' : 'description',
876
- 'endnodes' : 'passthrough',
877
- 'closeblock' : false,
878
- 'expansion' : function(node) {
879
- return 'vertical';
880
- },
881
- 'col_shift' : function(node) {
882
- return true;
883
- },
884
- 'svg': function() {
885
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
886
- '<circle cx="15" cy="15" r="14" class="stand"/>' +
887
- '</svg>');
888
- }
889
- },//}}}
890
- 'description': null,
891
- 'permissible_children': function(node) { //{{{
892
- var func = null;
893
- if(node.get(0).tagName == 'description') { func = adaptor.description.insert_first_into }
894
- else { func = adaptor.description.insert_after }
895
- return [
896
- {'label': 'Service Call with Scripts',
897
- 'function_call': func,
898
- 'menu_icon': elements.callmanipulate.illustrator.svg,
899
- 'params': [adaptor.description.elements.callmanipulate, node]},
900
- {'label': 'Service Call',
901
- 'function_call': func,
902
- 'menu_icon': elements.call.illustrator.svg,
903
- 'params': [adaptor.description.elements.call, node]},
904
- {'label': 'Script Task',
905
- 'function_call': func,
906
- 'menu_icon': elements.manipulate.illustrator.svg,
907
- 'params': [adaptor.description.elements.manipulate, node]},
908
- {'label': 'Parallel',
909
- 'function_call': func,
910
- 'menu_icon': elements.parallel.illustrator.svg,
911
- 'params': [adaptor.description.elements.parallel, node]},
912
- {'label': 'Choose',
913
- 'function_call': func,
914
- 'menu_icon': elements.choose.illustrator.svg,
915
- 'params': [adaptor.description.elements.choose, node]},
916
- {'label': 'Loop',
917
- 'function_call': func,
918
- 'menu_icon': elements.loop.illustrator.svg,
919
- 'params': [adaptor.description.elements.loop, node]},
920
- {'label': 'Critical',
921
- 'function_call': func,
922
- 'menu_icon': elements.critical.illustrator.svg,
923
- 'params': [adaptor.description.elements.critical, node]}
924
- ];
925
- }, //}}}
926
- 'adaptor' : {//{{{
927
- 'mousedown': function (node, e) {
928
- events.mousedown(node,e,true, false);
929
- },
930
- 'click': events.click,
931
- 'dblclick': events.dblclick,
932
- 'mouseover': events.mouseover,
933
- 'mouseout': events.mouseout,
934
- }//}}}
935
- }; /*}}}*/
936
- }