cpee 1.3.102

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. data/AUTHORS +3 -0
  2. data/COPYING +165 -0
  3. data/FEATURES +28 -0
  4. data/INSTALL +23 -0
  5. data/README +7 -0
  6. data/Rakefile +28 -0
  7. data/cockpit/contrib/symbols.svg +224 -0
  8. data/cockpit/contrib/transformation1.xsl +264 -0
  9. data/cockpit/contrib/transformation2.xsl +10 -0
  10. data/cockpit/css/ui.css +155 -0
  11. data/cockpit/index.html +241 -0
  12. data/cockpit/js/details.js +146 -0
  13. data/cockpit/js/instance.js +927 -0
  14. data/cockpit/js/parameters.js +66 -0
  15. data/cockpit/js/ui.js +48 -0
  16. data/cockpit/js/wfadaptor.cpee.js +1082 -0
  17. data/cockpit/lib/contextmenu.css +72 -0
  18. data/cockpit/lib/contextmenu.js +63 -0
  19. data/cockpit/lib/jquery-ui.custom.min.js +259 -0
  20. data/cockpit/lib/jquery-ui.custom.min.txt +16 -0
  21. data/cockpit/lib/jquery.caret.min.js +10 -0
  22. data/cockpit/lib/jquery.min.js +4 -0
  23. data/cockpit/lib/jquery.svgdom.js +281 -0
  24. data/cockpit/lib/parsequery.js +19 -0
  25. data/cockpit/lib/printf.js +368 -0
  26. data/cockpit/lib/strftime.min.js +1 -0
  27. data/cockpit/lib/ui.css +270 -0
  28. data/cockpit/lib/ui.js +60 -0
  29. data/cockpit/lib/underscore.min.js +27 -0
  30. data/cockpit/lib/util.js +53 -0
  31. data/cockpit/lib/wfadaptor-doc/demo1.html +517 -0
  32. data/cockpit/lib/wfadaptor-doc/demo2.html +84 -0
  33. data/cockpit/lib/wfadaptor-doc/index.html +54 -0
  34. data/cockpit/lib/wfadaptor.css +217 -0
  35. data/cockpit/lib/wfadaptor.js +410 -0
  36. data/cockpit/testsets/ADVENTURE Dynamic Order.xml +353 -0
  37. data/cockpit/testsets/ADVENTURE Main Loop.xml +327 -0
  38. data/cockpit/testsets/ADVENTURE Order.xml +424 -0
  39. data/cockpit/testsets/ADVENTURE Performance Test 1.xml +311 -0
  40. data/cockpit/testsets/ADVENTURE Performance Test 2.xml +297 -0
  41. data/cockpit/testsets/Concurrent.xml +315 -0
  42. data/cockpit/testsets/Coopis Testset.xml +346 -0
  43. data/cockpit/testsets/Endpoints and Data Manipulation.xml +359 -0
  44. data/cockpit/testsets/ICSOC Testset.xml +354 -0
  45. data/cockpit/testsets/Linear.xml +328 -0
  46. data/cockpit/testsets/Mangler 1.xml +352 -0
  47. data/cockpit/testsets/Mangler 2.xml +372 -0
  48. data/cockpit/testsets/RESCUE - Book Movie - Local.xml +385 -0
  49. data/cockpit/testsets/RESCUE - Book Movie.xml +385 -0
  50. data/cockpit/testsets/RESCUE - Loop-Parallel Injection.xml +393 -0
  51. data/cockpit/testsets/SOPROMO Test Sonification.xml +356 -0
  52. data/cockpit/testsets/Syncing P34 1.xml +329 -0
  53. data/cockpit/testsets/Syncing P34 2.xml +329 -0
  54. data/cockpit/testsets/Syncing P34 3.xml +329 -0
  55. data/cockpit/testsets/Syncing P34.xml +329 -0
  56. data/cockpit/testsets/TEST - Bad Loop.xml +428 -0
  57. data/cockpit/testsets/TEST - Wrong Positions.xml +470 -0
  58. data/cockpit/testsets/index.xml +24 -0
  59. data/contrib/Screenshot at 2011-09-28 02:38:11.png +0 -0
  60. data/contrib/logo2-small.png +0 -0
  61. data/contrib/logo2.png +0 -0
  62. data/contrib/logo2.svg +7610 -0
  63. data/contrib/logo2a.png +0 -0
  64. data/contrib/logo2a.svg +367 -0
  65. data/cpee.gemspec +24 -0
  66. data/lib/cpee.xml +39 -0
  67. data/lib/cpee/callback.rb +40 -0
  68. data/lib/cpee/controller.rb +440 -0
  69. data/lib/cpee/empty_workflow.rb +24 -0
  70. data/lib/cpee/handler_notifications.rb +46 -0
  71. data/lib/cpee/handler_properties.rb +43 -0
  72. data/lib/cpee/implementation.rb +174 -0
  73. data/lib/engine.xml +85 -0
  74. data/lib/engine/callbacks.rng +41 -0
  75. data/lib/engine/instance-info.rng +41 -0
  76. data/lib/engine/instances.rng +38 -0
  77. data/server/handlerwrappers/default.rb +142 -0
  78. data/server/handlerwrappers/rescue.rb +216 -0
  79. data/server/handlerwrappers/soap.rb +152 -0
  80. data/server/instances/1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd/consumer-secret +1 -0
  81. data/server/instances/1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd/producer-secret +1 -0
  82. data/server/instances/1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd/subscription.xml +27 -0
  83. data/server/instances/1/notifications/66ad546f13c6c7c84f36215c24dd2e6e/consumer-secret +1 -0
  84. data/server/instances/1/notifications/66ad546f13c6c7c84f36215c24dd2e6e/producer-secret +1 -0
  85. data/server/instances/1/notifications/66ad546f13c6c7c84f36215c24dd2e6e/subscription.xml +27 -0
  86. data/server/instances/1/notifications/9f23b768395a19cc1dd6c2d2a243c78e/consumer-secret +1 -0
  87. data/server/instances/1/notifications/9f23b768395a19cc1dd6c2d2a243c78e/producer-secret +1 -0
  88. data/server/instances/1/notifications/9f23b768395a19cc1dd6c2d2a243c78e/subscription.xml +27 -0
  89. data/server/instances/1/notifications/fa690a88cc565dfa53b13ced355cd039/consumer-secret +1 -0
  90. data/server/instances/1/notifications/fa690a88cc565dfa53b13ced355cd039/producer-secret +1 -0
  91. data/server/instances/1/notifications/fa690a88cc565dfa53b13ced355cd039/subscription.xml +5 -0
  92. data/server/instances/1/properties.xml +522 -0
  93. data/server/instances/10/notifications/0867c4a937f882af259137e36d331261/consumer-secret +1 -0
  94. data/server/instances/10/notifications/0867c4a937f882af259137e36d331261/producer-secret +1 -0
  95. data/server/instances/10/notifications/0867c4a937f882af259137e36d331261/subscription.xml +27 -0
  96. data/server/instances/10/notifications/28acb605c56588ec8e47431c1fcf0b20/consumer-secret +1 -0
  97. data/server/instances/10/notifications/28acb605c56588ec8e47431c1fcf0b20/producer-secret +1 -0
  98. data/server/instances/10/notifications/28acb605c56588ec8e47431c1fcf0b20/subscription.xml +27 -0
  99. data/server/instances/10/notifications/31d3f699def1d1e86dc18ef421f718ad/consumer-secret +1 -0
  100. data/server/instances/10/notifications/31d3f699def1d1e86dc18ef421f718ad/producer-secret +1 -0
  101. data/server/instances/10/notifications/31d3f699def1d1e86dc18ef421f718ad/subscription.xml +27 -0
  102. data/server/instances/10/notifications/380b57220000c45342fc56a1ed8e9e3f/consumer-secret +1 -0
  103. data/server/instances/10/notifications/380b57220000c45342fc56a1ed8e9e3f/producer-secret +1 -0
  104. data/server/instances/10/notifications/380b57220000c45342fc56a1ed8e9e3f/subscription.xml +27 -0
  105. data/server/instances/10/notifications/41eeb5d90b513781fb4b440cb97ca7f1/consumer-secret +1 -0
  106. data/server/instances/10/notifications/41eeb5d90b513781fb4b440cb97ca7f1/producer-secret +1 -0
  107. data/server/instances/10/notifications/41eeb5d90b513781fb4b440cb97ca7f1/subscription.xml +27 -0
  108. data/server/instances/10/notifications/4d8c1b3a8dfdacac98144fad072c46d8/consumer-secret +1 -0
  109. data/server/instances/10/notifications/4d8c1b3a8dfdacac98144fad072c46d8/producer-secret +1 -0
  110. data/server/instances/10/notifications/4d8c1b3a8dfdacac98144fad072c46d8/subscription.xml +27 -0
  111. data/server/instances/10/notifications/4dde696cfb001e00a7efbd8e86ba227d/consumer-secret +1 -0
  112. data/server/instances/10/notifications/4dde696cfb001e00a7efbd8e86ba227d/producer-secret +1 -0
  113. data/server/instances/10/notifications/4dde696cfb001e00a7efbd8e86ba227d/subscription.xml +27 -0
  114. data/server/instances/10/notifications/4e1c0065dd95f7c175bbccb874f0baea/consumer-secret +1 -0
  115. data/server/instances/10/notifications/4e1c0065dd95f7c175bbccb874f0baea/producer-secret +1 -0
  116. data/server/instances/10/notifications/4e1c0065dd95f7c175bbccb874f0baea/subscription.xml +27 -0
  117. data/server/instances/10/notifications/6198fb7d6a8249f7820e3e57eeefa8af/consumer-secret +1 -0
  118. data/server/instances/10/notifications/6198fb7d6a8249f7820e3e57eeefa8af/producer-secret +1 -0
  119. data/server/instances/10/notifications/6198fb7d6a8249f7820e3e57eeefa8af/subscription.xml +27 -0
  120. data/server/instances/10/notifications/6aeb90da52abc150f0f0135d8ba2dbac/consumer-secret +1 -0
  121. data/server/instances/10/notifications/6aeb90da52abc150f0f0135d8ba2dbac/producer-secret +1 -0
  122. data/server/instances/10/notifications/6aeb90da52abc150f0f0135d8ba2dbac/subscription.xml +27 -0
  123. data/server/instances/10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a/consumer-secret +1 -0
  124. data/server/instances/10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a/producer-secret +1 -0
  125. data/server/instances/10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a/subscription.xml +27 -0
  126. data/server/instances/10/notifications/7092411a6bb6822f651798fdcd3c4787/consumer-secret +1 -0
  127. data/server/instances/10/notifications/7092411a6bb6822f651798fdcd3c4787/producer-secret +1 -0
  128. data/server/instances/10/notifications/7092411a6bb6822f651798fdcd3c4787/subscription.xml +27 -0
  129. data/server/instances/10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3/consumer-secret +1 -0
  130. data/server/instances/10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3/producer-secret +1 -0
  131. data/server/instances/10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3/subscription.xml +27 -0
  132. data/server/instances/10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2/consumer-secret +1 -0
  133. data/server/instances/10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2/producer-secret +1 -0
  134. data/server/instances/10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2/subscription.xml +27 -0
  135. data/server/instances/10/notifications/85760dad8f7abbd73ae1dd44140dabf1/consumer-secret +1 -0
  136. data/server/instances/10/notifications/85760dad8f7abbd73ae1dd44140dabf1/producer-secret +1 -0
  137. data/server/instances/10/notifications/85760dad8f7abbd73ae1dd44140dabf1/subscription.xml +27 -0
  138. data/server/instances/10/notifications/8b9a96d109d44a1fc22858006c0f0e16/consumer-secret +1 -0
  139. data/server/instances/10/notifications/8b9a96d109d44a1fc22858006c0f0e16/producer-secret +1 -0
  140. data/server/instances/10/notifications/8b9a96d109d44a1fc22858006c0f0e16/subscription.xml +27 -0
  141. data/server/instances/10/notifications/9120a477e64d7debae2cda964a9948a0/consumer-secret +1 -0
  142. data/server/instances/10/notifications/9120a477e64d7debae2cda964a9948a0/producer-secret +1 -0
  143. data/server/instances/10/notifications/9120a477e64d7debae2cda964a9948a0/subscription.xml +27 -0
  144. data/server/instances/10/notifications/93c5a5ab72a745c0f9fffe2fe58db205/consumer-secret +1 -0
  145. data/server/instances/10/notifications/93c5a5ab72a745c0f9fffe2fe58db205/producer-secret +1 -0
  146. data/server/instances/10/notifications/93c5a5ab72a745c0f9fffe2fe58db205/subscription.xml +27 -0
  147. data/server/instances/10/notifications/a8db1498388588bddf518878263fd898/consumer-secret +1 -0
  148. data/server/instances/10/notifications/a8db1498388588bddf518878263fd898/producer-secret +1 -0
  149. data/server/instances/10/notifications/a8db1498388588bddf518878263fd898/subscription.xml +27 -0
  150. data/server/instances/10/notifications/b534f057c1c97f65e68f59427958e78d/consumer-secret +1 -0
  151. data/server/instances/10/notifications/b534f057c1c97f65e68f59427958e78d/producer-secret +1 -0
  152. data/server/instances/10/notifications/b534f057c1c97f65e68f59427958e78d/subscription.xml +27 -0
  153. data/server/instances/10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4/consumer-secret +1 -0
  154. data/server/instances/10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4/producer-secret +1 -0
  155. data/server/instances/10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4/subscription.xml +27 -0
  156. data/server/instances/10/notifications/bc597391804363834987804436b8b63b/consumer-secret +1 -0
  157. data/server/instances/10/notifications/bc597391804363834987804436b8b63b/producer-secret +1 -0
  158. data/server/instances/10/notifications/bc597391804363834987804436b8b63b/subscription.xml +27 -0
  159. data/server/instances/10/notifications/bf2f6599eebcd9a08e47bdafd4a67660/consumer-secret +1 -0
  160. data/server/instances/10/notifications/bf2f6599eebcd9a08e47bdafd4a67660/producer-secret +1 -0
  161. data/server/instances/10/notifications/bf2f6599eebcd9a08e47bdafd4a67660/subscription.xml +27 -0
  162. data/server/instances/10/notifications/db9cf0ae80bd61e6124c382b992a1550/consumer-secret +1 -0
  163. data/server/instances/10/notifications/db9cf0ae80bd61e6124c382b992a1550/producer-secret +1 -0
  164. data/server/instances/10/notifications/db9cf0ae80bd61e6124c382b992a1550/subscription.xml +27 -0
  165. data/server/instances/10/notifications/e528089610c991500eb2e8b094f6f169/consumer-secret +1 -0
  166. data/server/instances/10/notifications/e528089610c991500eb2e8b094f6f169/producer-secret +1 -0
  167. data/server/instances/10/notifications/e528089610c991500eb2e8b094f6f169/subscription.xml +27 -0
  168. data/server/instances/10/notifications/e7d3ca382d26b5f5eba00c40c29827da/consumer-secret +1 -0
  169. data/server/instances/10/notifications/e7d3ca382d26b5f5eba00c40c29827da/producer-secret +1 -0
  170. data/server/instances/10/notifications/e7d3ca382d26b5f5eba00c40c29827da/subscription.xml +27 -0
  171. data/server/instances/10/notifications/ebdc914fde6fe299143ae4601c142738/consumer-secret +1 -0
  172. data/server/instances/10/notifications/ebdc914fde6fe299143ae4601c142738/producer-secret +1 -0
  173. data/server/instances/10/notifications/ebdc914fde6fe299143ae4601c142738/subscription.xml +27 -0
  174. data/server/instances/10/notifications/f26b2b9efc10b9259647cf1a2b934694/consumer-secret +1 -0
  175. data/server/instances/10/notifications/f26b2b9efc10b9259647cf1a2b934694/producer-secret +1 -0
  176. data/server/instances/10/notifications/f26b2b9efc10b9259647cf1a2b934694/subscription.xml +27 -0
  177. data/server/instances/10/notifications/f4e1d7808171fe7c5fab4a99145ea185/consumer-secret +1 -0
  178. data/server/instances/10/notifications/f4e1d7808171fe7c5fab4a99145ea185/producer-secret +1 -0
  179. data/server/instances/10/notifications/f4e1d7808171fe7c5fab4a99145ea185/subscription.xml +27 -0
  180. data/server/instances/10/notifications/f7e947a1b4b32f3dad5debd44fc3236b/consumer-secret +1 -0
  181. data/server/instances/10/notifications/f7e947a1b4b32f3dad5debd44fc3236b/producer-secret +1 -0
  182. data/server/instances/10/notifications/f7e947a1b4b32f3dad5debd44fc3236b/subscription.xml +27 -0
  183. data/server/instances/10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6/consumer-secret +1 -0
  184. data/server/instances/10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6/producer-secret +1 -0
  185. data/server/instances/10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6/subscription.xml +27 -0
  186. data/server/instances/10/properties.xml +388 -0
  187. data/server/instances/11/notifications/134c18da209261bc409ccd137b2e46d3/consumer-secret +1 -0
  188. data/server/instances/11/notifications/134c18da209261bc409ccd137b2e46d3/producer-secret +1 -0
  189. data/server/instances/11/notifications/134c18da209261bc409ccd137b2e46d3/subscription.xml +27 -0
  190. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/consumer-secret +1 -0
  191. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/producer-secret +1 -0
  192. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/subscription.xml +5 -0
  193. data/server/instances/11/properties.xml +517 -0
  194. data/server/instances/2/notifications/0bbfabbebf46b850383b4e1d7bd926e3/consumer-secret +1 -0
  195. data/server/instances/2/notifications/0bbfabbebf46b850383b4e1d7bd926e3/producer-secret +1 -0
  196. data/server/instances/2/notifications/0bbfabbebf46b850383b4e1d7bd926e3/subscription.xml +27 -0
  197. data/server/instances/2/notifications/1d426895d19caa1471c713e80cc3c845/consumer-secret +1 -0
  198. data/server/instances/2/notifications/1d426895d19caa1471c713e80cc3c845/producer-secret +1 -0
  199. data/server/instances/2/notifications/1d426895d19caa1471c713e80cc3c845/subscription.xml +27 -0
  200. data/server/instances/2/notifications/292c8983aa798f0c5ced5ddc4b58abe4/consumer-secret +1 -0
  201. data/server/instances/2/notifications/292c8983aa798f0c5ced5ddc4b58abe4/producer-secret +1 -0
  202. data/server/instances/2/notifications/292c8983aa798f0c5ced5ddc4b58abe4/subscription.xml +27 -0
  203. data/server/instances/2/notifications/332c3026c8ad3075b092bd7e7a2b4f71/consumer-secret +1 -0
  204. data/server/instances/2/notifications/332c3026c8ad3075b092bd7e7a2b4f71/producer-secret +1 -0
  205. data/server/instances/2/notifications/332c3026c8ad3075b092bd7e7a2b4f71/subscription.xml +27 -0
  206. data/server/instances/2/notifications/d377446918808d23d03291fc1140883c/consumer-secret +1 -0
  207. data/server/instances/2/notifications/d377446918808d23d03291fc1140883c/producer-secret +1 -0
  208. data/server/instances/2/notifications/d377446918808d23d03291fc1140883c/subscription.xml +27 -0
  209. data/server/instances/2/notifications/d5b65c7cbff5d259e4ee8405190ec558/consumer-secret +1 -0
  210. data/server/instances/2/notifications/d5b65c7cbff5d259e4ee8405190ec558/producer-secret +1 -0
  211. data/server/instances/2/notifications/d5b65c7cbff5d259e4ee8405190ec558/subscription.xml +27 -0
  212. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/consumer-secret +1 -0
  213. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/producer-secret +1 -0
  214. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/subscription.xml +5 -0
  215. data/server/instances/2/properties.xml +517 -0
  216. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/consumer-secret +1 -0
  217. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/producer-secret +1 -0
  218. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/subscription.xml +5 -0
  219. data/server/instances/3/notifications/6cec45935d78709a4aa6622491006f4b/consumer-secret +1 -0
  220. data/server/instances/3/notifications/6cec45935d78709a4aa6622491006f4b/producer-secret +1 -0
  221. data/server/instances/3/notifications/6cec45935d78709a4aa6622491006f4b/subscription.xml +27 -0
  222. data/server/instances/3/notifications/755542b2fb8d0c8fb9add29e012ec707/consumer-secret +1 -0
  223. data/server/instances/3/notifications/755542b2fb8d0c8fb9add29e012ec707/producer-secret +1 -0
  224. data/server/instances/3/notifications/755542b2fb8d0c8fb9add29e012ec707/subscription.xml +27 -0
  225. data/server/instances/3/properties.xml +517 -0
  226. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/consumer-secret +1 -0
  227. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/producer-secret +1 -0
  228. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/subscription.xml +5 -0
  229. data/server/instances/4/notifications/a89df398fcc088c067c39ae3974ec57f/consumer-secret +1 -0
  230. data/server/instances/4/notifications/a89df398fcc088c067c39ae3974ec57f/producer-secret +1 -0
  231. data/server/instances/4/notifications/a89df398fcc088c067c39ae3974ec57f/subscription.xml +27 -0
  232. data/server/instances/4/properties.xml +517 -0
  233. data/server/instances/5/notifications/02ebbf888bd3efd11924f4c416d784e4/consumer-secret +1 -0
  234. data/server/instances/5/notifications/02ebbf888bd3efd11924f4c416d784e4/producer-secret +1 -0
  235. data/server/instances/5/notifications/02ebbf888bd3efd11924f4c416d784e4/subscription.xml +27 -0
  236. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/consumer-secret +1 -0
  237. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/producer-secret +1 -0
  238. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/subscription.xml +5 -0
  239. data/server/instances/5/properties.xml +517 -0
  240. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/consumer-secret +1 -0
  241. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/producer-secret +1 -0
  242. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/subscription.xml +5 -0
  243. data/server/instances/6/notifications/282e7077e9c5b9972413cc92a6dcffc3/consumer-secret +1 -0
  244. data/server/instances/6/notifications/282e7077e9c5b9972413cc92a6dcffc3/producer-secret +1 -0
  245. data/server/instances/6/notifications/282e7077e9c5b9972413cc92a6dcffc3/subscription.xml +27 -0
  246. data/server/instances/6/notifications/7e57d7438db8210766eab6873124dc02/consumer-secret +1 -0
  247. data/server/instances/6/notifications/7e57d7438db8210766eab6873124dc02/producer-secret +1 -0
  248. data/server/instances/6/notifications/7e57d7438db8210766eab6873124dc02/subscription.xml +27 -0
  249. data/server/instances/6/properties.xml +517 -0
  250. data/server/instances/7/notifications/7276b795b5ed2f6638473526d9b1b1e1/consumer-secret +1 -0
  251. data/server/instances/7/notifications/7276b795b5ed2f6638473526d9b1b1e1/producer-secret +1 -0
  252. data/server/instances/7/notifications/7276b795b5ed2f6638473526d9b1b1e1/subscription.xml +27 -0
  253. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/consumer-secret +1 -0
  254. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/producer-secret +1 -0
  255. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/subscription.xml +5 -0
  256. data/server/instances/7/properties.xml +517 -0
  257. data/server/instances/8/notifications/2854ed5a8f97a33d31f908f67544ec62/consumer-secret +1 -0
  258. data/server/instances/8/notifications/2854ed5a8f97a33d31f908f67544ec62/producer-secret +1 -0
  259. data/server/instances/8/notifications/2854ed5a8f97a33d31f908f67544ec62/subscription.xml +27 -0
  260. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/consumer-secret +1 -0
  261. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/producer-secret +1 -0
  262. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/subscription.xml +5 -0
  263. data/server/instances/8/properties.xml +517 -0
  264. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/consumer-secret +1 -0
  265. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/producer-secret +1 -0
  266. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/subscription.xml +5 -0
  267. data/server/instances/9/notifications/5debc1fd138fdc80940cd5647003ed45/consumer-secret +1 -0
  268. data/server/instances/9/notifications/5debc1fd138fdc80940cd5647003ed45/producer-secret +1 -0
  269. data/server/instances/9/notifications/5debc1fd138fdc80940cd5647003ed45/subscription.xml +27 -0
  270. data/server/instances/9/properties.xml +517 -0
  271. data/server/resources/properties.init +351 -0
  272. data/server/resources/properties.schema.active +79 -0
  273. data/server/resources/properties.schema.finished +79 -0
  274. data/server/resources/properties.schema.inactive +79 -0
  275. data/server/resources/topics.xml +55 -0
  276. data/server/server.rb +25 -0
  277. data/server/todo.txt +20 -0
  278. data/test/delete.rb +27 -0
  279. data/test/load.rb +55 -0
  280. data/test/testset.xml +297 -0
  281. metadata +382 -0
@@ -0,0 +1,424 @@
1
+ <?xml version="1.0"?>
2
+ <testset>
3
+ <positions/>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <dataelements><!--{{{-->
6
+ <test></test>
7
+ </dataelements><!--}}}-->
8
+ <handlers><!--{{{-->
9
+ <handler url="http://localhost:9299/events">
10
+ <events topic='properties/state'>change</events>
11
+ </handler>
12
+ </handlers><!--}}}-->
13
+ <endpoints><!--{{{-->
14
+ <gateway>http://localhost/gateways/timeout.php</gateway>
15
+ </endpoints> <!--}}}-->
16
+ <description xmlns="http://cpee.org/ns/description/1.0"><!--{{{-->
17
+ <parallel>
18
+ <parallel_branch>
19
+ <call id="a9" endpoint="gateway">
20
+ <parameters><!--{{{-->
21
+ <label>Produce Headcap Subsystem</label>
22
+ <method>post</method>
23
+ <parameters>
24
+ <timeout>4</timeout>
25
+ </parameters>
26
+ </parameters><!--}}}-->
27
+ </call>
28
+ <call id="a10" endpoint="gateway">
29
+ <parameters><!--{{{-->
30
+ <label>Delivery</label>
31
+ <method>post</method>
32
+ <parameters>
33
+ <timeout>4</timeout>
34
+ </parameters>
35
+ </parameters><!--}}}-->
36
+ </call>
37
+ </parallel_branch>
38
+ <parallel_branch>
39
+ <call id="a5" endpoint="gateway">
40
+ <parameters><!--{{{-->
41
+ <label>Supply Mechanical Parts</label>
42
+ <method>post</method>
43
+ <parameters>
44
+ <timeout>4</timeout>
45
+ </parameters>
46
+ </parameters><!--}}}-->
47
+ </call>
48
+ <call id="a6" endpoint="gateway">
49
+ <parameters><!--{{{-->
50
+ <label>Produce Mechanical Parts (A-Z)</label>
51
+ <method>post</method>
52
+ <parameters>
53
+ <timeout>4</timeout>
54
+ </parameters>
55
+ </parameters><!--}}}-->
56
+ </call>
57
+ <call id="a7" endpoint="gateway">
58
+ <parameters><!--{{{-->
59
+ <label>Perform Surface Treatment</label>
60
+ <method>post</method>
61
+ <parameters>
62
+ <timeout>4</timeout>
63
+ </parameters>
64
+ </parameters><!--}}}-->
65
+ </call>
66
+ <call id="a8" endpoint="gateway">
67
+ <parameters><!--{{{-->
68
+ <label>Mechanical Parts Assembly</label>
69
+ <method>post</method>
70
+ <parameters>
71
+ <timeout>4</timeout>
72
+ </parameters>
73
+ </parameters><!--}}}-->
74
+ </call>
75
+ </parallel_branch>
76
+ <parallel_branch>
77
+ <parallel>
78
+ <parallel_branch>
79
+ <call id="a2" endpoint="gateway">
80
+ <parameters><!--{{{-->
81
+ <label>Supply Electric Parts</label>
82
+ <method>post</method>
83
+ <parameters>
84
+ <timeout>4</timeout>
85
+ </parameters>
86
+ </parameters><!--}}}-->
87
+ </call>
88
+ <call id="a3" endpoint="gateway">
89
+ <parameters><!--{{{-->
90
+ <label>Delivery</label>
91
+ <method>post</method>
92
+ <parameters>
93
+ <timeout>4</timeout>
94
+ </parameters>
95
+ </parameters><!--}}}-->
96
+ </call>
97
+ </parallel_branch>
98
+ <parallel_branch>
99
+ <call id="a1" endpoint="gateway">
100
+ <parameters><!--{{{-->
101
+ <label>Develop Control System</label>
102
+ <method>post</method>
103
+ <parameters>
104
+ <timeout>4</timeout>
105
+ </parameters>
106
+ </parameters><!--}}}-->
107
+ </call>
108
+ </parallel_branch>
109
+ </parallel>
110
+ <call id="a4" endpoint="gateway">
111
+ <parameters><!--{{{-->
112
+ <label>Electric Board Assembly</label>
113
+ <method>post</method>
114
+ <parameters>
115
+ <timeout>4</timeout>
116
+ </parameters>
117
+ </parameters><!--}}}-->
118
+ </call>
119
+ </parallel_branch>
120
+ </parallel>
121
+ <call id="a11" endpoint="gateway">
122
+ <parameters><!--{{{-->
123
+ <label>Systems Integration</label>
124
+ <method>post</method>
125
+ <parameters>
126
+ <timeout>4</timeout>
127
+ </parameters>
128
+ </parameters><!--}}}-->
129
+ </call>
130
+ <call id="a12" endpoint="gateway">
131
+ <parameters><!--{{{-->
132
+ <label>Test</label>
133
+ <method>post</method>
134
+ <parameters>
135
+ <timeout>4</timeout>
136
+ </parameters>
137
+ </parameters><!--}}}-->
138
+ <manipulate output="result"> data.test = "success"</manipulate>
139
+ </call>
140
+ </description><!--}}}-->
141
+ <transformation><!--{{{-->
142
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0">
143
+ <xsl:output method="text"/>
144
+ <xsl:strip-space elements="*"/>
145
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
146
+
147
+ <xsl:template match="/">
148
+ <xsl:apply-templates select="//d:description"/>
149
+ </xsl:template>
150
+
151
+ <xsl:template match="//d:description">
152
+ <xsl:apply-templates>
153
+ <xsl:with-param name="myspace"><xsl:value-of select="-1*$myspacemultiplier"/></xsl:with-param>
154
+ </xsl:apply-templates>
155
+ </xsl:template>
156
+
157
+ <xsl:template match="*">
158
+ <xsl:param name="myspace"/>
159
+ <xsl:call-template name="print-space">
160
+ <xsl:with-param name="i">1</xsl:with-param>
161
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
162
+ </xsl:call-template>
163
+ <xsl:if test="name()='call' or name()='manipulate'">
164
+ <xsl:text>activity :</xsl:text>
165
+ <xsl:value-of select="@id"/>
166
+ </xsl:if>
167
+ <xsl:if test="name()='call'">
168
+ <xsl:text>, :call, :</xsl:text>
169
+ <xsl:value-of select="@endpoint"/>
170
+ <xsl:apply-templates select="d:parameters"/>
171
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
172
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
173
+ </xsl:apply-templates>
174
+ <xsl:call-template name="print-newline"/>
175
+ </xsl:if>
176
+ <xsl:if test="name()='manipulate'">
177
+ <xsl:text>, :manipulate</xsl:text>
178
+ <xsl:call-template name="print-content">
179
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
180
+ </xsl:call-template>
181
+ <xsl:call-template name="print-newline"/>
182
+ </xsl:if>
183
+ <xsl:if test="name()='parallel'">
184
+ <xsl:text>parallel</xsl:text>
185
+ <xsl:if test="@wait">
186
+ <xsl:text> :wait => </xsl:text>
187
+ <xsl:value-of select="@wait"/>
188
+ </xsl:if>
189
+ <xsl:text> do</xsl:text>
190
+ <xsl:call-template name="print-newline"/>
191
+ <xsl:apply-templates>
192
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
193
+ </xsl:apply-templates>
194
+ <xsl:call-template name="print-space">
195
+ <xsl:with-param name="i">1</xsl:with-param>
196
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
197
+ </xsl:call-template>
198
+ <xsl:text>end</xsl:text>
199
+ <xsl:call-template name="print-newline"/>
200
+ </xsl:if>
201
+ <xsl:if test="name()='loop'">
202
+ <xsl:text>loop </xsl:text>
203
+ <xsl:if test="@pre_test">
204
+ <xsl:text>pre_test{</xsl:text>
205
+ <xsl:value-of select="@pre_test"/>
206
+ <xsl:text>} </xsl:text>
207
+ </xsl:if>
208
+ <xsl:if test="@post_test">
209
+ <xsl:text>post_test{</xsl:text>
210
+ <xsl:value-of select="@post_test"/>
211
+ <xsl:text>} </xsl:text>
212
+ </xsl:if>
213
+ <xsl:text>do</xsl:text>
214
+ <xsl:call-template name="print-newline"/>
215
+ <xsl:apply-templates>
216
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
217
+ </xsl:apply-templates>
218
+ <xsl:call-template name="print-space">
219
+ <xsl:with-param name="i">1</xsl:with-param>
220
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
221
+ </xsl:call-template>
222
+ <xsl:text>end</xsl:text>
223
+ <xsl:call-template name="print-newline"/>
224
+ </xsl:if>
225
+ <xsl:if test="name()='choose'">
226
+ <xsl:text>choose do</xsl:text>
227
+ <xsl:call-template name="print-newline"/>
228
+ <xsl:apply-templates>
229
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
230
+ </xsl:apply-templates>
231
+ <xsl:call-template name="print-space">
232
+ <xsl:with-param name="i">1</xsl:with-param>
233
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
234
+ </xsl:call-template>
235
+ <xsl:text>end</xsl:text>
236
+ <xsl:call-template name="print-newline"/>
237
+ </xsl:if>
238
+ <xsl:if test="name()='group'">
239
+ <xsl:apply-templates>
240
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
241
+ </xsl:apply-templates>
242
+ <xsl:call-template name="print-newline"/>
243
+ </xsl:if>
244
+ <xsl:if test="name()='critical'">
245
+ <xsl:text>critical :</xsl:text>
246
+ <xsl:value-of select="@sid"/>
247
+ <xsl:text> do</xsl:text>
248
+ <xsl:call-template name="print-newline"/>
249
+ <xsl:apply-templates>
250
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
251
+ </xsl:apply-templates>
252
+ <xsl:call-template name="print-space">
253
+ <xsl:with-param name="i">1</xsl:with-param>
254
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
255
+ </xsl:call-template>
256
+ <xsl:text>end</xsl:text>
257
+ <xsl:call-template name="print-newline"/>
258
+ </xsl:if>
259
+ </xsl:template>
260
+
261
+ <xsl:template match="d:alternative">
262
+ <xsl:param name="myspace"/>
263
+ <xsl:call-template name="print-space">
264
+ <xsl:with-param name="i">1</xsl:with-param>
265
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
266
+ </xsl:call-template>
267
+ <xsl:text>alternative </xsl:text>
268
+ <xsl:value-of select="@condition"/>
269
+ <xsl:text> do</xsl:text>
270
+ <xsl:call-template name="print-newline"/>
271
+ <xsl:apply-templates>
272
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
273
+ </xsl:apply-templates>
274
+ <xsl:call-template name="print-space">
275
+ <xsl:with-param name="i">1</xsl:with-param>
276
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
277
+ </xsl:call-template>
278
+ <xsl:text>end</xsl:text>
279
+ <xsl:call-template name="print-newline"/>
280
+ </xsl:template>
281
+
282
+ <xsl:template match="d:otherwise">
283
+ <xsl:param name="myspace"/>
284
+ <xsl:call-template name="print-space">
285
+ <xsl:with-param name="i">1</xsl:with-param>
286
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
287
+ </xsl:call-template>
288
+ <xsl:text>otherwise do</xsl:text>
289
+ <xsl:call-template name="print-newline"/>
290
+ <xsl:apply-templates>
291
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
292
+ </xsl:apply-templates>
293
+ <xsl:call-template name="print-space">
294
+ <xsl:with-param name="i">1</xsl:with-param>
295
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
296
+ </xsl:call-template>
297
+ <xsl:text>end</xsl:text>
298
+ <xsl:call-template name="print-newline"/>
299
+ </xsl:template>
300
+
301
+ <xsl:template match="d:parallel_branch">
302
+ <xsl:param name="myspace"/>
303
+ <xsl:call-template name="print-space">
304
+ <xsl:with-param name="i">1</xsl:with-param>
305
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
306
+ </xsl:call-template>
307
+ <xsl:text>parallel_branch</xsl:text>
308
+ <xsl:if test="@pass">
309
+ <xsl:text> </xsl:text>
310
+ <xsl:value-of select="@pass"/>
311
+ </xsl:if>
312
+ <xsl:text> do</xsl:text>
313
+ <xsl:if test="@local">
314
+ <xsl:text> |</xsl:text>
315
+ <xsl:value-of select="@local"/>
316
+ <xsl:text>|</xsl:text>
317
+ </xsl:if>
318
+ <xsl:call-template name="print-newline"/>
319
+ <xsl:apply-templates>
320
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
321
+ </xsl:apply-templates>
322
+ <xsl:call-template name="print-space">
323
+ <xsl:with-param name="i">1</xsl:with-param>
324
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
325
+ </xsl:call-template>
326
+ <xsl:text>end</xsl:text>
327
+ <xsl:call-template name="print-newline"/>
328
+ </xsl:template>
329
+
330
+ <xsl:template match="d:parameters">
331
+ <xsl:apply-templates select="d:*" mode="parameter"/>
332
+ </xsl:template>
333
+
334
+ <xsl:template match="d:*" mode="parameter">
335
+ <xsl:text>, :</xsl:text>
336
+ <xsl:value-of select="name()"/>
337
+ <xsl:text> => </xsl:text>
338
+ <xsl:choose>
339
+ <xsl:when test="count(*) > 0">
340
+ <xsl:text>[</xsl:text>
341
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
342
+ <xsl:text>]</xsl:text>
343
+ </xsl:when>
344
+ <xsl:otherwise>
345
+ <xsl:choose>
346
+ <xsl:when test="@type = 'symbolic'">
347
+ <xsl:value-of select="text()"/>
348
+ </xsl:when>
349
+ <xsl:otherwise>
350
+ <xsl:text>"</xsl:text>
351
+ <xsl:value-of select="text()"/>
352
+ <xsl:text>"</xsl:text>
353
+ </xsl:otherwise>
354
+ </xsl:choose>
355
+ </xsl:otherwise>
356
+ </xsl:choose>
357
+ </xsl:template>
358
+
359
+ <xsl:template match="d:*" mode="sub-parameter">
360
+ <xsl:text> { :</xsl:text>
361
+ <xsl:value-of select="name()"/>
362
+ <xsl:text> => </xsl:text>
363
+ <xsl:value-of select="text()"/>
364
+ <xsl:text> }</xsl:text>
365
+ <xsl:choose>
366
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
367
+ <xsl:text> </xsl:text>
368
+ </xsl:when>
369
+ <xsl:otherwise>
370
+ <xsl:text>,</xsl:text>
371
+ </xsl:otherwise>
372
+ </xsl:choose>
373
+ </xsl:template>
374
+
375
+ <xsl:template match="d:manipulate" mode="part-of-call">
376
+ <xsl:param name="myspace"/>
377
+ <xsl:call-template name="print-content">
378
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
379
+ </xsl:call-template>
380
+ </xsl:template>
381
+
382
+ <xsl:template name="print-content">
383
+ <xsl:param name="myspace"/>
384
+ <xsl:if test="text()">
385
+ <xsl:text> do </xsl:text>
386
+ <xsl:if test="@output">
387
+ <xsl:text>|</xsl:text>
388
+ <xsl:value-of select="@output"/>
389
+ <xsl:text>|</xsl:text>
390
+ </xsl:if>
391
+ <xsl:call-template name="print-newline"/>
392
+ <xsl:value-of select="text()"/>
393
+ <xsl:call-template name="print-newline"/>
394
+ <xsl:call-template name="print-space">
395
+ <xsl:with-param name="i">1</xsl:with-param>
396
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
397
+ </xsl:call-template>
398
+ <xsl:text>end</xsl:text>
399
+ </xsl:if>
400
+ </xsl:template>
401
+
402
+ <xsl:template name="print-space">
403
+ <xsl:param name="i"/>
404
+ <xsl:param name="count"/>
405
+ <xsl:if test="$i &lt;= $count">
406
+ <xsl:text> </xsl:text>
407
+ <xsl:call-template name="print-space">
408
+ <xsl:with-param name="i">
409
+ <xsl:value-of select="$i + 1"/>
410
+ </xsl:with-param>
411
+ <xsl:with-param name="count">
412
+ <xsl:value-of select="$count"/>
413
+ </xsl:with-param>
414
+ </xsl:call-template>
415
+ </xsl:if>
416
+ </xsl:template>
417
+ <xsl:template name="print-newline">
418
+ <xsl:text>
419
+ </xsl:text>
420
+ </xsl:template>
421
+
422
+ </xsl:stylesheet>
423
+ </transformation><!--}}}-->
424
+ </testset>
@@ -0,0 +1,311 @@
1
+ <?xml version="1.0"?>
2
+ <testset>
3
+ <positions/>
4
+ <handlerwrapper>SOAPHandlerWrapper</handlerwrapper>
5
+ <dataelements><!--{{{-->
6
+ <timing>0</timing>
7
+ <counter>0</counter>
8
+ <data></data>
9
+ </dataelements><!--}}}-->
10
+ <handlers/>
11
+ <endpoints><!--{{{-->
12
+ <perf>http://donatello.pri.univie.ac.at/tools/perfData.wsdl</perf>
13
+ </endpoints> <!--}}}-->
14
+ <description xmlns="http://cpee.org/ns/description/1.0"><!--{{{-->
15
+ <manipulate id="a1">data.timing = Time.now.to_f</manipulate>
16
+ <loop pre_test='data.counter &lt; 1000'>
17
+ <call id="a2" endpoint="perf">
18
+ <parameters>
19
+ <method>getPerfData</method>
20
+ <parameters/>
21
+ </parameters>
22
+ <manipulate output="result"> data.data = result
23
+ data.counter += 1</manipulate>
24
+ </call>
25
+ </loop>
26
+ <manipulate id="a3">data.timing = "#{(Time.now.to_f - data.timing)} seconds"</manipulate>
27
+ </description><!--}}}-->
28
+ <transformation><!--{{{-->
29
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0">
30
+ <xsl:output method="text"/>
31
+ <xsl:strip-space elements="*"/>
32
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
33
+
34
+ <xsl:template match="/">
35
+ <xsl:apply-templates select="//d:description"/>
36
+ </xsl:template>
37
+
38
+ <xsl:template match="//d:description">
39
+ <xsl:apply-templates>
40
+ <xsl:with-param name="myspace"><xsl:value-of select="-1*$myspacemultiplier"/></xsl:with-param>
41
+ </xsl:apply-templates>
42
+ </xsl:template>
43
+
44
+ <xsl:template match="*">
45
+ <xsl:param name="myspace"/>
46
+ <xsl:call-template name="print-space">
47
+ <xsl:with-param name="i">1</xsl:with-param>
48
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
49
+ </xsl:call-template>
50
+ <xsl:if test="name()='call' or name()='manipulate'">
51
+ <xsl:text>activity :</xsl:text>
52
+ <xsl:value-of select="@id"/>
53
+ </xsl:if>
54
+ <xsl:if test="name()='call'">
55
+ <xsl:text>, :call, :</xsl:text>
56
+ <xsl:value-of select="@endpoint"/>
57
+ <xsl:apply-templates select="d:parameters"/>
58
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
59
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
60
+ </xsl:apply-templates>
61
+ <xsl:call-template name="print-newline"/>
62
+ </xsl:if>
63
+ <xsl:if test="name()='manipulate'">
64
+ <xsl:text>, :manipulate</xsl:text>
65
+ <xsl:call-template name="print-content">
66
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
67
+ </xsl:call-template>
68
+ <xsl:call-template name="print-newline"/>
69
+ </xsl:if>
70
+ <xsl:if test="name()='parallel'">
71
+ <xsl:text>parallel</xsl:text>
72
+ <xsl:if test="@wait">
73
+ <xsl:text> :wait => </xsl:text>
74
+ <xsl:value-of select="@wait"/>
75
+ </xsl:if>
76
+ <xsl:text> do</xsl:text>
77
+ <xsl:call-template name="print-newline"/>
78
+ <xsl:apply-templates>
79
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
80
+ </xsl:apply-templates>
81
+ <xsl:call-template name="print-space">
82
+ <xsl:with-param name="i">1</xsl:with-param>
83
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
84
+ </xsl:call-template>
85
+ <xsl:text>end</xsl:text>
86
+ <xsl:call-template name="print-newline"/>
87
+ </xsl:if>
88
+ <xsl:if test="name()='loop'">
89
+ <xsl:text>loop </xsl:text>
90
+ <xsl:if test="@pre_test">
91
+ <xsl:text>pre_test{</xsl:text>
92
+ <xsl:value-of select="@pre_test"/>
93
+ <xsl:text>} </xsl:text>
94
+ </xsl:if>
95
+ <xsl:if test="@post_test">
96
+ <xsl:text>post_test{</xsl:text>
97
+ <xsl:value-of select="@post_test"/>
98
+ <xsl:text>} </xsl:text>
99
+ </xsl:if>
100
+ <xsl:text>do</xsl:text>
101
+ <xsl:call-template name="print-newline"/>
102
+ <xsl:apply-templates>
103
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
104
+ </xsl:apply-templates>
105
+ <xsl:call-template name="print-space">
106
+ <xsl:with-param name="i">1</xsl:with-param>
107
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
108
+ </xsl:call-template>
109
+ <xsl:text>end</xsl:text>
110
+ <xsl:call-template name="print-newline"/>
111
+ </xsl:if>
112
+ <xsl:if test="name()='choose'">
113
+ <xsl:text>choose do</xsl:text>
114
+ <xsl:call-template name="print-newline"/>
115
+ <xsl:apply-templates>
116
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
117
+ </xsl:apply-templates>
118
+ <xsl:call-template name="print-space">
119
+ <xsl:with-param name="i">1</xsl:with-param>
120
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
121
+ </xsl:call-template>
122
+ <xsl:text>end</xsl:text>
123
+ <xsl:call-template name="print-newline"/>
124
+ </xsl:if>
125
+ <xsl:if test="name()='group'">
126
+ <xsl:apply-templates>
127
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
128
+ </xsl:apply-templates>
129
+ <xsl:call-template name="print-newline"/>
130
+ </xsl:if>
131
+ <xsl:if test="name()='critical'">
132
+ <xsl:text>critical :</xsl:text>
133
+ <xsl:value-of select="@sid"/>
134
+ <xsl:text> do</xsl:text>
135
+ <xsl:call-template name="print-newline"/>
136
+ <xsl:apply-templates>
137
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
138
+ </xsl:apply-templates>
139
+ <xsl:call-template name="print-space">
140
+ <xsl:with-param name="i">1</xsl:with-param>
141
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
142
+ </xsl:call-template>
143
+ <xsl:text>end</xsl:text>
144
+ <xsl:call-template name="print-newline"/>
145
+ </xsl:if>
146
+ </xsl:template>
147
+
148
+ <xsl:template match="d:alternative">
149
+ <xsl:param name="myspace"/>
150
+ <xsl:call-template name="print-space">
151
+ <xsl:with-param name="i">1</xsl:with-param>
152
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
153
+ </xsl:call-template>
154
+ <xsl:text>alternative </xsl:text>
155
+ <xsl:value-of select="@condition"/>
156
+ <xsl:text> do</xsl:text>
157
+ <xsl:call-template name="print-newline"/>
158
+ <xsl:apply-templates>
159
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
160
+ </xsl:apply-templates>
161
+ <xsl:call-template name="print-space">
162
+ <xsl:with-param name="i">1</xsl:with-param>
163
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
164
+ </xsl:call-template>
165
+ <xsl:text>end</xsl:text>
166
+ <xsl:call-template name="print-newline"/>
167
+ </xsl:template>
168
+
169
+ <xsl:template match="d:otherwise">
170
+ <xsl:param name="myspace"/>
171
+ <xsl:call-template name="print-space">
172
+ <xsl:with-param name="i">1</xsl:with-param>
173
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
174
+ </xsl:call-template>
175
+ <xsl:text>otherwise do</xsl:text>
176
+ <xsl:call-template name="print-newline"/>
177
+ <xsl:apply-templates>
178
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
179
+ </xsl:apply-templates>
180
+ <xsl:call-template name="print-space">
181
+ <xsl:with-param name="i">1</xsl:with-param>
182
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
183
+ </xsl:call-template>
184
+ <xsl:text>end</xsl:text>
185
+ <xsl:call-template name="print-newline"/>
186
+ </xsl:template>
187
+
188
+ <xsl:template match="d:parallel_branch">
189
+ <xsl:param name="myspace"/>
190
+ <xsl:call-template name="print-space">
191
+ <xsl:with-param name="i">1</xsl:with-param>
192
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
193
+ </xsl:call-template>
194
+ <xsl:text>parallel_branch</xsl:text>
195
+ <xsl:if test="@pass">
196
+ <xsl:text> </xsl:text>
197
+ <xsl:value-of select="@pass"/>
198
+ </xsl:if>
199
+ <xsl:text> do</xsl:text>
200
+ <xsl:if test="@local">
201
+ <xsl:text> |</xsl:text>
202
+ <xsl:value-of select="@local"/>
203
+ <xsl:text>|</xsl:text>
204
+ </xsl:if>
205
+ <xsl:call-template name="print-newline"/>
206
+ <xsl:apply-templates>
207
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
208
+ </xsl:apply-templates>
209
+ <xsl:call-template name="print-space">
210
+ <xsl:with-param name="i">1</xsl:with-param>
211
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
212
+ </xsl:call-template>
213
+ <xsl:text>end</xsl:text>
214
+ <xsl:call-template name="print-newline"/>
215
+ </xsl:template>
216
+
217
+ <xsl:template match="d:parameters">
218
+ <xsl:apply-templates select="d:*" mode="parameter"/>
219
+ </xsl:template>
220
+
221
+ <xsl:template match="d:*" mode="parameter">
222
+ <xsl:text>, :</xsl:text>
223
+ <xsl:value-of select="name()"/>
224
+ <xsl:text> => </xsl:text>
225
+ <xsl:choose>
226
+ <xsl:when test="count(*) > 0">
227
+ <xsl:text>[</xsl:text>
228
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
229
+ <xsl:text>]</xsl:text>
230
+ </xsl:when>
231
+ <xsl:otherwise>
232
+ <xsl:choose>
233
+ <xsl:when test="@type = 'symbolic'">
234
+ <xsl:value-of select="text()"/>
235
+ </xsl:when>
236
+ <xsl:otherwise>
237
+ <xsl:text>"</xsl:text>
238
+ <xsl:value-of select="text()"/>
239
+ <xsl:text>"</xsl:text>
240
+ </xsl:otherwise>
241
+ </xsl:choose>
242
+ </xsl:otherwise>
243
+ </xsl:choose>
244
+ </xsl:template>
245
+
246
+ <xsl:template match="d:*" mode="sub-parameter">
247
+ <xsl:text> { :</xsl:text>
248
+ <xsl:value-of select="name()"/>
249
+ <xsl:text> => </xsl:text>
250
+ <xsl:value-of select="text()"/>
251
+ <xsl:text> }</xsl:text>
252
+ <xsl:choose>
253
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
254
+ <xsl:text> </xsl:text>
255
+ </xsl:when>
256
+ <xsl:otherwise>
257
+ <xsl:text>,</xsl:text>
258
+ </xsl:otherwise>
259
+ </xsl:choose>
260
+ </xsl:template>
261
+
262
+ <xsl:template match="d:manipulate" mode="part-of-call">
263
+ <xsl:param name="myspace"/>
264
+ <xsl:call-template name="print-content">
265
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
266
+ </xsl:call-template>
267
+ </xsl:template>
268
+
269
+ <xsl:template name="print-content">
270
+ <xsl:param name="myspace"/>
271
+ <xsl:if test="text()">
272
+ <xsl:text> do </xsl:text>
273
+ <xsl:if test="@output">
274
+ <xsl:text>|</xsl:text>
275
+ <xsl:value-of select="@output"/>
276
+ <xsl:text>|</xsl:text>
277
+ </xsl:if>
278
+ <xsl:call-template name="print-newline"/>
279
+ <xsl:value-of select="text()"/>
280
+ <xsl:call-template name="print-newline"/>
281
+ <xsl:call-template name="print-space">
282
+ <xsl:with-param name="i">1</xsl:with-param>
283
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
284
+ </xsl:call-template>
285
+ <xsl:text>end</xsl:text>
286
+ </xsl:if>
287
+ </xsl:template>
288
+
289
+ <xsl:template name="print-space">
290
+ <xsl:param name="i"/>
291
+ <xsl:param name="count"/>
292
+ <xsl:if test="$i &lt;= $count">
293
+ <xsl:text> </xsl:text>
294
+ <xsl:call-template name="print-space">
295
+ <xsl:with-param name="i">
296
+ <xsl:value-of select="$i + 1"/>
297
+ </xsl:with-param>
298
+ <xsl:with-param name="count">
299
+ <xsl:value-of select="$count"/>
300
+ </xsl:with-param>
301
+ </xsl:call-template>
302
+ </xsl:if>
303
+ </xsl:template>
304
+ <xsl:template name="print-newline">
305
+ <xsl:text>
306
+ </xsl:text>
307
+ </xsl:template>
308
+
309
+ </xsl:stylesheet>
310
+ </transformation><!--}}}-->
311
+ </testset>