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,353 @@
1
+ <?xml version="1.0"?>
2
+ <testset>
3
+ <positions/>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <dataelements>
6
+ <quantity>3</quantity>
7
+ <bolts>null</bolts>
8
+ <boards>[]</boards>
9
+ <specA>High Quality</specA>
10
+ <specB>X3 Certification</specB>
11
+ <costs>0</costs>
12
+ </dataelements>
13
+ <handlers><!--{{{-->
14
+ <handler url="http://localhost:9299/events">
15
+ <events topic='properties/state'>change</events>
16
+ </handler>
17
+ </handlers><!--}}}-->
18
+ <endpoints>
19
+ <bolts>http://localhost/gateways/bolts.php</bolts>
20
+ <boards>http://localhost/gateways/board.php</boards>
21
+ <controlling>http://localhost/gateways/controlling.php</controlling>
22
+ </endpoints>
23
+ <description xmlns="http://cpee.org/ns/description/1.0">
24
+ <call id="a1" endpoint="bolts">
25
+ <parameters>
26
+ <label>Buy Bolts from a Partner</label>
27
+ <method>post</method>
28
+ <parameters>
29
+ <specA>data.specA</specA>
30
+ <specB>data.specB</specB>
31
+ <quantity>data.quantity</quantity>
32
+ </parameters>
33
+ </parameters>
34
+ <manipulate output="result"> data.bolts = result.value('id')
35
+ data.costs += result.value('costs').to_f
36
+ status.update 1, 'Bolts'</manipulate>
37
+ </call>
38
+ <parallel>
39
+ <loop pre_test="data.quantity > 0">
40
+ <parallel_branch pass="data.quantity" local="p">
41
+ <call id="a2" endpoint="boards">
42
+ <parameters>
43
+ <label>Buy Board from a Partner</label>
44
+ <method>post</method>
45
+ <parameters>
46
+ <specB>data.specB</specB>
47
+ </parameters>
48
+ </parameters>
49
+ <manipulate output="result"> data.boards &lt;&lt; result.value('id')
50
+ data.costs += result.value('costs').to_f</manipulate>
51
+ </call>
52
+ </parallel_branch>
53
+ <manipulate id="a3"> data.quantity -= 1</manipulate>
54
+ </loop>
55
+ </parallel>
56
+ <choose>
57
+ <alternative condition="data.costs > 700">
58
+ <call id="a4" endpoint="controlling">
59
+ <parameters>
60
+ <method>post</method>
61
+ <parameters>
62
+ <costs>data.costs</costs>
63
+ </parameters>
64
+ </parameters>
65
+ </call>
66
+ </alternative>
67
+ <otherwise/>
68
+ </choose>
69
+ </description>
70
+ <transformation>
71
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0">
72
+ <xsl:output method="text"/>
73
+ <xsl:strip-space elements="*"/>
74
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
75
+
76
+ <xsl:template match="/">
77
+ <xsl:apply-templates select="//d:description"/>
78
+ </xsl:template>
79
+
80
+ <xsl:template match="//d:description">
81
+ <xsl:apply-templates>
82
+ <xsl:with-param name="myspace"><xsl:value-of select="-1*$myspacemultiplier"/></xsl:with-param>
83
+ </xsl:apply-templates>
84
+ </xsl:template>
85
+
86
+ <xsl:template match="*">
87
+ <xsl:param name="myspace"/>
88
+ <xsl:call-template name="print-space">
89
+ <xsl:with-param name="i">1</xsl:with-param>
90
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
91
+ </xsl:call-template>
92
+ <xsl:if test="name()='call' or name()='manipulate'">
93
+ <xsl:text>activity :</xsl:text>
94
+ <xsl:value-of select="@id"/>
95
+ </xsl:if>
96
+ <xsl:if test="name()='call'">
97
+ <xsl:text>, :call, :</xsl:text>
98
+ <xsl:value-of select="@endpoint"/>
99
+ <xsl:apply-templates select="d:parameters"/>
100
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
101
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
102
+ </xsl:apply-templates>
103
+ <xsl:call-template name="print-newline"/>
104
+ </xsl:if>
105
+ <xsl:if test="name()='manipulate'">
106
+ <xsl:text>, :manipulate</xsl:text>
107
+ <xsl:call-template name="print-content">
108
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
109
+ </xsl:call-template>
110
+ <xsl:call-template name="print-newline"/>
111
+ </xsl:if>
112
+ <xsl:if test="name()='parallel'">
113
+ <xsl:text>parallel</xsl:text>
114
+ <xsl:if test="@wait">
115
+ <xsl:text> :wait => </xsl:text>
116
+ <xsl:value-of select="@wait"/>
117
+ </xsl:if>
118
+ <xsl:text> do</xsl:text>
119
+ <xsl:call-template name="print-newline"/>
120
+ <xsl:apply-templates>
121
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
122
+ </xsl:apply-templates>
123
+ <xsl:call-template name="print-space">
124
+ <xsl:with-param name="i">1</xsl:with-param>
125
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
126
+ </xsl:call-template>
127
+ <xsl:text>end</xsl:text>
128
+ <xsl:call-template name="print-newline"/>
129
+ </xsl:if>
130
+ <xsl:if test="name()='loop'">
131
+ <xsl:text>loop </xsl:text>
132
+ <xsl:if test="@pre_test">
133
+ <xsl:text>pre_test{</xsl:text>
134
+ <xsl:value-of select="@pre_test"/>
135
+ <xsl:text>} </xsl:text>
136
+ </xsl:if>
137
+ <xsl:if test="@post_test">
138
+ <xsl:text>post_test{</xsl:text>
139
+ <xsl:value-of select="@post_test"/>
140
+ <xsl:text>} </xsl:text>
141
+ </xsl:if>
142
+ <xsl:text>do</xsl:text>
143
+ <xsl:call-template name="print-newline"/>
144
+ <xsl:apply-templates>
145
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
146
+ </xsl:apply-templates>
147
+ <xsl:call-template name="print-space">
148
+ <xsl:with-param name="i">1</xsl:with-param>
149
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
150
+ </xsl:call-template>
151
+ <xsl:text>end</xsl:text>
152
+ <xsl:call-template name="print-newline"/>
153
+ </xsl:if>
154
+ <xsl:if test="name()='choose'">
155
+ <xsl:text>choose do</xsl:text>
156
+ <xsl:call-template name="print-newline"/>
157
+ <xsl:apply-templates>
158
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
159
+ </xsl:apply-templates>
160
+ <xsl:call-template name="print-space">
161
+ <xsl:with-param name="i">1</xsl:with-param>
162
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
163
+ </xsl:call-template>
164
+ <xsl:text>end</xsl:text>
165
+ <xsl:call-template name="print-newline"/>
166
+ </xsl:if>
167
+ <xsl:if test="name()='group'">
168
+ <xsl:apply-templates>
169
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
170
+ </xsl:apply-templates>
171
+ <xsl:call-template name="print-newline"/>
172
+ </xsl:if>
173
+ <xsl:if test="name()='critical'">
174
+ <xsl:text>critical :</xsl:text>
175
+ <xsl:value-of select="@sid"/>
176
+ <xsl:text> do</xsl:text>
177
+ <xsl:call-template name="print-newline"/>
178
+ <xsl:apply-templates>
179
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
180
+ </xsl:apply-templates>
181
+ <xsl:call-template name="print-space">
182
+ <xsl:with-param name="i">1</xsl:with-param>
183
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
184
+ </xsl:call-template>
185
+ <xsl:text>end</xsl:text>
186
+ <xsl:call-template name="print-newline"/>
187
+ </xsl:if>
188
+ </xsl:template>
189
+
190
+ <xsl:template match="d:alternative">
191
+ <xsl:param name="myspace"/>
192
+ <xsl:call-template name="print-space">
193
+ <xsl:with-param name="i">1</xsl:with-param>
194
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
195
+ </xsl:call-template>
196
+ <xsl:text>alternative </xsl:text>
197
+ <xsl:value-of select="@condition"/>
198
+ <xsl:text> do</xsl:text>
199
+ <xsl:call-template name="print-newline"/>
200
+ <xsl:apply-templates>
201
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
202
+ </xsl:apply-templates>
203
+ <xsl:call-template name="print-space">
204
+ <xsl:with-param name="i">1</xsl:with-param>
205
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
206
+ </xsl:call-template>
207
+ <xsl:text>end</xsl:text>
208
+ <xsl:call-template name="print-newline"/>
209
+ </xsl:template>
210
+
211
+ <xsl:template match="d:otherwise">
212
+ <xsl:param name="myspace"/>
213
+ <xsl:call-template name="print-space">
214
+ <xsl:with-param name="i">1</xsl:with-param>
215
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
216
+ </xsl:call-template>
217
+ <xsl:text>otherwise do</xsl:text>
218
+ <xsl:call-template name="print-newline"/>
219
+ <xsl:apply-templates>
220
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
221
+ </xsl:apply-templates>
222
+ <xsl:call-template name="print-space">
223
+ <xsl:with-param name="i">1</xsl:with-param>
224
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
225
+ </xsl:call-template>
226
+ <xsl:text>end</xsl:text>
227
+ <xsl:call-template name="print-newline"/>
228
+ </xsl:template>
229
+
230
+ <xsl:template match="d:parallel_branch">
231
+ <xsl:param name="myspace"/>
232
+ <xsl:call-template name="print-space">
233
+ <xsl:with-param name="i">1</xsl:with-param>
234
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
235
+ </xsl:call-template>
236
+ <xsl:text>parallel_branch</xsl:text>
237
+ <xsl:if test="@pass">
238
+ <xsl:text> </xsl:text>
239
+ <xsl:value-of select="@pass"/>
240
+ </xsl:if>
241
+ <xsl:text> do</xsl:text>
242
+ <xsl:if test="@local">
243
+ <xsl:text> |</xsl:text>
244
+ <xsl:value-of select="@local"/>
245
+ <xsl:text>|</xsl:text>
246
+ </xsl:if>
247
+ <xsl:call-template name="print-newline"/>
248
+ <xsl:apply-templates>
249
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
250
+ </xsl:apply-templates>
251
+ <xsl:call-template name="print-space">
252
+ <xsl:with-param name="i">1</xsl:with-param>
253
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
254
+ </xsl:call-template>
255
+ <xsl:text>end</xsl:text>
256
+ <xsl:call-template name="print-newline"/>
257
+ </xsl:template>
258
+
259
+ <xsl:template match="d:parameters">
260
+ <xsl:apply-templates select="d:*" mode="parameter"/>
261
+ </xsl:template>
262
+
263
+ <xsl:template match="d:*" mode="parameter">
264
+ <xsl:text>, :</xsl:text>
265
+ <xsl:value-of select="name()"/>
266
+ <xsl:text> => </xsl:text>
267
+ <xsl:choose>
268
+ <xsl:when test="count(*) > 0">
269
+ <xsl:text>[</xsl:text>
270
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
271
+ <xsl:text>]</xsl:text>
272
+ </xsl:when>
273
+ <xsl:otherwise>
274
+ <xsl:choose>
275
+ <xsl:when test="@type = 'symbolic'">
276
+ <xsl:value-of select="text()"/>
277
+ </xsl:when>
278
+ <xsl:otherwise>
279
+ <xsl:text>"</xsl:text>
280
+ <xsl:value-of select="text()"/>
281
+ <xsl:text>"</xsl:text>
282
+ </xsl:otherwise>
283
+ </xsl:choose>
284
+ </xsl:otherwise>
285
+ </xsl:choose>
286
+ </xsl:template>
287
+
288
+ <xsl:template match="d:*" mode="sub-parameter">
289
+ <xsl:text> { :</xsl:text>
290
+ <xsl:value-of select="name()"/>
291
+ <xsl:text> => </xsl:text>
292
+ <xsl:value-of select="text()"/>
293
+ <xsl:text> }</xsl:text>
294
+ <xsl:choose>
295
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
296
+ <xsl:text> </xsl:text>
297
+ </xsl:when>
298
+ <xsl:otherwise>
299
+ <xsl:text>,</xsl:text>
300
+ </xsl:otherwise>
301
+ </xsl:choose>
302
+ </xsl:template>
303
+
304
+ <xsl:template match="d:manipulate" mode="part-of-call">
305
+ <xsl:param name="myspace"/>
306
+ <xsl:call-template name="print-content">
307
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
308
+ </xsl:call-template>
309
+ </xsl:template>
310
+
311
+ <xsl:template name="print-content">
312
+ <xsl:param name="myspace"/>
313
+ <xsl:if test="text()">
314
+ <xsl:text> do </xsl:text>
315
+ <xsl:if test="@output">
316
+ <xsl:text>|</xsl:text>
317
+ <xsl:value-of select="@output"/>
318
+ <xsl:text>|</xsl:text>
319
+ </xsl:if>
320
+ <xsl:call-template name="print-newline"/>
321
+ <xsl:value-of select="text()"/>
322
+ <xsl:call-template name="print-newline"/>
323
+ <xsl:call-template name="print-space">
324
+ <xsl:with-param name="i">1</xsl:with-param>
325
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
326
+ </xsl:call-template>
327
+ <xsl:text>end</xsl:text>
328
+ </xsl:if>
329
+ </xsl:template>
330
+
331
+ <xsl:template name="print-space">
332
+ <xsl:param name="i"/>
333
+ <xsl:param name="count"/>
334
+ <xsl:if test="$i &lt;= $count">
335
+ <xsl:text> </xsl:text>
336
+ <xsl:call-template name="print-space">
337
+ <xsl:with-param name="i">
338
+ <xsl:value-of select="$i + 1"/>
339
+ </xsl:with-param>
340
+ <xsl:with-param name="count">
341
+ <xsl:value-of select="$count"/>
342
+ </xsl:with-param>
343
+ </xsl:call-template>
344
+ </xsl:if>
345
+ </xsl:template>
346
+ <xsl:template name="print-newline">
347
+ <xsl:text>
348
+ </xsl:text>
349
+ </xsl:template>
350
+
351
+ </xsl:stylesheet>
352
+ </transformation>
353
+ </testset>
@@ -0,0 +1,327 @@
1
+ <?xml version="1.0"?>
2
+ <testset>
3
+ <positions/>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <dataelements><!--{{{-->
6
+ <last>-1</last>
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
+ <correlation>http://localhost:9299/wait</correlation>
15
+ <instantiation>http://localhost:9299/instantiate</instantiation>
16
+ </endpoints> <!--}}}-->
17
+ <description xmlns="http://cpee.org/ns/description/1.0"><!--{{{-->
18
+ <loop pre_test='true'>
19
+ <call id="wait" endpoint="correlation">
20
+ <parameters><!--{{{-->
21
+ <label>Wait for Order</label>
22
+ <method>post</method>
23
+ <parameters>
24
+ <what>"Order Message"</what>
25
+ </parameters>
26
+ </parameters><!--}}}-->
27
+ <manipulate output="result">
28
+ p result.first.value.read if result.length > 0
29
+ </manipulate>
30
+ </call>
31
+ <call id="instantiate" endpoint="instantiation">
32
+ <parameters><!--{{{-->
33
+ <label>Instantiate Process ADVENTURE Order</label>
34
+ <method>post</method>
35
+ <parameters>
36
+ <name>'ADVENTURE Order'</name>
37
+ <mode>'automatic'</mode>
38
+ </parameters>
39
+ </parameters><!--}}}-->
40
+ <manipulate output="result"> data.last = result.first.value</manipulate>
41
+ </call>
42
+ </loop>
43
+ </description><!--}}}-->
44
+ <transformation>
45
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0">
46
+ <xsl:output method="text"/>
47
+ <xsl:strip-space elements="*"/>
48
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
49
+
50
+ <xsl:template match="/">
51
+ <xsl:apply-templates select="//d:description"/>
52
+ </xsl:template>
53
+
54
+ <xsl:template match="//d:description">
55
+ <xsl:apply-templates>
56
+ <xsl:with-param name="myspace"><xsl:value-of select="-1*$myspacemultiplier"/></xsl:with-param>
57
+ </xsl:apply-templates>
58
+ </xsl:template>
59
+
60
+ <xsl:template match="*">
61
+ <xsl:param name="myspace"/>
62
+ <xsl:call-template name="print-space">
63
+ <xsl:with-param name="i">1</xsl:with-param>
64
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
65
+ </xsl:call-template>
66
+ <xsl:if test="name()='call' or name()='manipulate'">
67
+ <xsl:text>activity :</xsl:text>
68
+ <xsl:value-of select="@id"/>
69
+ </xsl:if>
70
+ <xsl:if test="name()='call'">
71
+ <xsl:text>, :call, :</xsl:text>
72
+ <xsl:value-of select="@endpoint"/>
73
+ <xsl:apply-templates select="d:parameters"/>
74
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
75
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
76
+ </xsl:apply-templates>
77
+ <xsl:call-template name="print-newline"/>
78
+ </xsl:if>
79
+ <xsl:if test="name()='manipulate'">
80
+ <xsl:text>, :manipulate</xsl:text>
81
+ <xsl:call-template name="print-content">
82
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
83
+ </xsl:call-template>
84
+ <xsl:call-template name="print-newline"/>
85
+ </xsl:if>
86
+ <xsl:if test="name()='parallel'">
87
+ <xsl:text>parallel</xsl:text>
88
+ <xsl:if test="@wait">
89
+ <xsl:text> :wait => </xsl:text>
90
+ <xsl:value-of select="@wait"/>
91
+ </xsl:if>
92
+ <xsl:text> do</xsl:text>
93
+ <xsl:call-template name="print-newline"/>
94
+ <xsl:apply-templates>
95
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
96
+ </xsl:apply-templates>
97
+ <xsl:call-template name="print-space">
98
+ <xsl:with-param name="i">1</xsl:with-param>
99
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
100
+ </xsl:call-template>
101
+ <xsl:text>end</xsl:text>
102
+ <xsl:call-template name="print-newline"/>
103
+ </xsl:if>
104
+ <xsl:if test="name()='loop'">
105
+ <xsl:text>loop </xsl:text>
106
+ <xsl:if test="@pre_test">
107
+ <xsl:text>pre_test{</xsl:text>
108
+ <xsl:value-of select="@pre_test"/>
109
+ <xsl:text>} </xsl:text>
110
+ </xsl:if>
111
+ <xsl:if test="@post_test">
112
+ <xsl:text>post_test{</xsl:text>
113
+ <xsl:value-of select="@post_test"/>
114
+ <xsl:text>} </xsl:text>
115
+ </xsl:if>
116
+ <xsl:text>do</xsl:text>
117
+ <xsl:call-template name="print-newline"/>
118
+ <xsl:apply-templates>
119
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
120
+ </xsl:apply-templates>
121
+ <xsl:call-template name="print-space">
122
+ <xsl:with-param name="i">1</xsl:with-param>
123
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
124
+ </xsl:call-template>
125
+ <xsl:text>end</xsl:text>
126
+ <xsl:call-template name="print-newline"/>
127
+ </xsl:if>
128
+ <xsl:if test="name()='choose'">
129
+ <xsl:text>choose do</xsl:text>
130
+ <xsl:call-template name="print-newline"/>
131
+ <xsl:apply-templates>
132
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
133
+ </xsl:apply-templates>
134
+ <xsl:call-template name="print-space">
135
+ <xsl:with-param name="i">1</xsl:with-param>
136
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
137
+ </xsl:call-template>
138
+ <xsl:text>end</xsl:text>
139
+ <xsl:call-template name="print-newline"/>
140
+ </xsl:if>
141
+ <xsl:if test="name()='group'">
142
+ <xsl:apply-templates>
143
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
144
+ </xsl:apply-templates>
145
+ <xsl:call-template name="print-newline"/>
146
+ </xsl:if>
147
+ <xsl:if test="name()='critical'">
148
+ <xsl:text>critical :</xsl:text>
149
+ <xsl:value-of select="@sid"/>
150
+ <xsl:text> do</xsl:text>
151
+ <xsl:call-template name="print-newline"/>
152
+ <xsl:apply-templates>
153
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
154
+ </xsl:apply-templates>
155
+ <xsl:call-template name="print-space">
156
+ <xsl:with-param name="i">1</xsl:with-param>
157
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
158
+ </xsl:call-template>
159
+ <xsl:text>end</xsl:text>
160
+ <xsl:call-template name="print-newline"/>
161
+ </xsl:if>
162
+ </xsl:template>
163
+
164
+ <xsl:template match="d:alternative">
165
+ <xsl:param name="myspace"/>
166
+ <xsl:call-template name="print-space">
167
+ <xsl:with-param name="i">1</xsl:with-param>
168
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
169
+ </xsl:call-template>
170
+ <xsl:text>alternative </xsl:text>
171
+ <xsl:value-of select="@condition"/>
172
+ <xsl:text> do</xsl:text>
173
+ <xsl:call-template name="print-newline"/>
174
+ <xsl:apply-templates>
175
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
176
+ </xsl:apply-templates>
177
+ <xsl:call-template name="print-space">
178
+ <xsl:with-param name="i">1</xsl:with-param>
179
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
180
+ </xsl:call-template>
181
+ <xsl:text>end</xsl:text>
182
+ <xsl:call-template name="print-newline"/>
183
+ </xsl:template>
184
+
185
+ <xsl:template match="d:otherwise">
186
+ <xsl:param name="myspace"/>
187
+ <xsl:call-template name="print-space">
188
+ <xsl:with-param name="i">1</xsl:with-param>
189
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
190
+ </xsl:call-template>
191
+ <xsl:text>otherwise do</xsl:text>
192
+ <xsl:call-template name="print-newline"/>
193
+ <xsl:apply-templates>
194
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
195
+ </xsl:apply-templates>
196
+ <xsl:call-template name="print-space">
197
+ <xsl:with-param name="i">1</xsl:with-param>
198
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
199
+ </xsl:call-template>
200
+ <xsl:text>end</xsl:text>
201
+ <xsl:call-template name="print-newline"/>
202
+ </xsl:template>
203
+
204
+ <xsl:template match="d:parallel_branch">
205
+ <xsl:param name="myspace"/>
206
+ <xsl:call-template name="print-space">
207
+ <xsl:with-param name="i">1</xsl:with-param>
208
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
209
+ </xsl:call-template>
210
+ <xsl:text>parallel_branch</xsl:text>
211
+ <xsl:if test="@pass">
212
+ <xsl:text> </xsl:text>
213
+ <xsl:value-of select="@pass"/>
214
+ </xsl:if>
215
+ <xsl:text> do</xsl:text>
216
+ <xsl:if test="@local">
217
+ <xsl:text> |</xsl:text>
218
+ <xsl:value-of select="@local"/>
219
+ <xsl:text>|</xsl:text>
220
+ </xsl:if>
221
+ <xsl:call-template name="print-newline"/>
222
+ <xsl:apply-templates>
223
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
224
+ </xsl:apply-templates>
225
+ <xsl:call-template name="print-space">
226
+ <xsl:with-param name="i">1</xsl:with-param>
227
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
228
+ </xsl:call-template>
229
+ <xsl:text>end</xsl:text>
230
+ <xsl:call-template name="print-newline"/>
231
+ </xsl:template>
232
+
233
+ <xsl:template match="d:parameters">
234
+ <xsl:apply-templates select="d:*" mode="parameter"/>
235
+ </xsl:template>
236
+
237
+ <xsl:template match="d:*" mode="parameter">
238
+ <xsl:text>, :</xsl:text>
239
+ <xsl:value-of select="name()"/>
240
+ <xsl:text> => </xsl:text>
241
+ <xsl:choose>
242
+ <xsl:when test="count(*) > 0">
243
+ <xsl:text>[</xsl:text>
244
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
245
+ <xsl:text>]</xsl:text>
246
+ </xsl:when>
247
+ <xsl:otherwise>
248
+ <xsl:choose>
249
+ <xsl:when test="@type = 'symbolic'">
250
+ <xsl:value-of select="text()"/>
251
+ </xsl:when>
252
+ <xsl:otherwise>
253
+ <xsl:text>"</xsl:text>
254
+ <xsl:value-of select="text()"/>
255
+ <xsl:text>"</xsl:text>
256
+ </xsl:otherwise>
257
+ </xsl:choose>
258
+ </xsl:otherwise>
259
+ </xsl:choose>
260
+ </xsl:template>
261
+
262
+ <xsl:template match="d:*" mode="sub-parameter">
263
+ <xsl:text> { :</xsl:text>
264
+ <xsl:value-of select="name()"/>
265
+ <xsl:text> => </xsl:text>
266
+ <xsl:value-of select="text()"/>
267
+ <xsl:text> }</xsl:text>
268
+ <xsl:choose>
269
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
270
+ <xsl:text> </xsl:text>
271
+ </xsl:when>
272
+ <xsl:otherwise>
273
+ <xsl:text>,</xsl:text>
274
+ </xsl:otherwise>
275
+ </xsl:choose>
276
+ </xsl:template>
277
+
278
+ <xsl:template match="d:manipulate" mode="part-of-call">
279
+ <xsl:param name="myspace"/>
280
+ <xsl:call-template name="print-content">
281
+ <xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
282
+ </xsl:call-template>
283
+ </xsl:template>
284
+
285
+ <xsl:template name="print-content">
286
+ <xsl:param name="myspace"/>
287
+ <xsl:if test="text()">
288
+ <xsl:text> do </xsl:text>
289
+ <xsl:if test="@output">
290
+ <xsl:text>|</xsl:text>
291
+ <xsl:value-of select="@output"/>
292
+ <xsl:text>|</xsl:text>
293
+ </xsl:if>
294
+ <xsl:call-template name="print-newline"/>
295
+ <xsl:value-of select="text()"/>
296
+ <xsl:call-template name="print-newline"/>
297
+ <xsl:call-template name="print-space">
298
+ <xsl:with-param name="i">1</xsl:with-param>
299
+ <xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
300
+ </xsl:call-template>
301
+ <xsl:text>end</xsl:text>
302
+ </xsl:if>
303
+ </xsl:template>
304
+
305
+ <xsl:template name="print-space">
306
+ <xsl:param name="i"/>
307
+ <xsl:param name="count"/>
308
+ <xsl:if test="$i &lt;= $count">
309
+ <xsl:text> </xsl:text>
310
+ <xsl:call-template name="print-space">
311
+ <xsl:with-param name="i">
312
+ <xsl:value-of select="$i + 1"/>
313
+ </xsl:with-param>
314
+ <xsl:with-param name="count">
315
+ <xsl:value-of select="$count"/>
316
+ </xsl:with-param>
317
+ </xsl:call-template>
318
+ </xsl:if>
319
+ </xsl:template>
320
+ <xsl:template name="print-newline">
321
+ <xsl:text>
322
+ </xsl:text>
323
+ </xsl:template>
324
+
325
+ </xsl:stylesheet>
326
+ </transformation>
327
+ </testset>