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,5 @@
1
+ <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/events">
2
+ <topic id="properties/state">
3
+ <event>change</event>
4
+ </topic>
5
+ </subscription>
@@ -0,0 +1,27 @@
1
+ <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
2
+ <topic id="running">
3
+ <event>activity_calling</event>
4
+ <event>activity_manipulating</event>
5
+ <event>activity_failed</event>
6
+ <event>activity_done</event>
7
+ </topic>
8
+ <topic id="properties/position">
9
+ <event>change</event>
10
+ </topic>
11
+ <topic id="properties/description">
12
+ <event>change</event>
13
+ <event>error</event>
14
+ </topic>
15
+ <topic id="properties/state">
16
+ <event>change</event>
17
+ </topic>
18
+ <topic id="properties/dataelements">
19
+ <event>change</event>
20
+ </topic>
21
+ <topic id="properties/endpoints">
22
+ <event>change</event>
23
+ </topic>
24
+ <topic id="properties/handlers">
25
+ <event>change</event>
26
+ </topic>
27
+ </subscription>
@@ -0,0 +1,517 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <name>ADVENTURE Order</name>
3
+ <state>finished</state>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <positions/>
6
+ <dataelements>
7
+ <test>success</test>
8
+ </dataelements>
9
+ <endpoints>
10
+ <gateway>http://localhost/gateways/timeout.php</gateway>
11
+ </endpoints>
12
+ <dsl>parallel do
13
+ parallel_branch do
14
+ activity :a9, :call, :gateway, :label =&gt; "Produce Headcap Subsystem", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
15
+ activity :a10, :call, :gateway, :label =&gt; "Delivery", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
16
+ end
17
+ parallel_branch do
18
+ activity :a5, :call, :gateway, :label =&gt; "Supply Mechanical Parts", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
19
+ activity :a6, :call, :gateway, :label =&gt; "Produce Mechanical Parts (A-Z)", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
20
+ activity :a7, :call, :gateway, :label =&gt; "Perform Surface Treatment", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
21
+ activity :a8, :call, :gateway, :label =&gt; "Mechanical Parts Assembly", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
22
+ end
23
+ parallel_branch do
24
+ parallel do
25
+ parallel_branch do
26
+ activity :a2, :call, :gateway, :label =&gt; "Supply Electric Parts", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
27
+ activity :a3, :call, :gateway, :label =&gt; "Delivery", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
28
+ end
29
+ parallel_branch do
30
+ activity :a1, :call, :gateway, :label =&gt; "Develop Control System", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
31
+ end
32
+ end
33
+ activity :a4, :call, :gateway, :label =&gt; "Electric Board Assembly", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
34
+ end
35
+ end
36
+ activity :a11, :call, :gateway, :label =&gt; "Systems Integration", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ]
37
+ activity :a12, :call, :gateway, :label =&gt; "Test", :method =&gt; "post", :parameters =&gt; [ { :timeout =&gt; 4 } ] do |result|
38
+ data.test = "success"
39
+ end
40
+ </dsl>
41
+ <status>
42
+ <id>0</id>
43
+ <message>undefined</message>
44
+ </status>
45
+ <description>
46
+ <description xmlns="http://cpee.org/ns/description/1.0">
47
+ <!--{{{-->
48
+ <parallel>
49
+ <parallel_branch>
50
+ <call id="a9" endpoint="gateway">
51
+ <parameters>
52
+ <!--{{{-->
53
+ <label>Produce Headcap Subsystem</label>
54
+ <method>post</method>
55
+ <parameters>
56
+ <timeout>4</timeout>
57
+ </parameters>
58
+ </parameters>
59
+ <!--}}}-->
60
+ </call>
61
+ <call id="a10" endpoint="gateway">
62
+ <parameters>
63
+ <!--{{{-->
64
+ <label>Delivery</label>
65
+ <method>post</method>
66
+ <parameters>
67
+ <timeout>4</timeout>
68
+ </parameters>
69
+ </parameters>
70
+ <!--}}}-->
71
+ </call>
72
+ </parallel_branch>
73
+ <parallel_branch>
74
+ <call id="a5" endpoint="gateway">
75
+ <parameters>
76
+ <!--{{{-->
77
+ <label>Supply Mechanical Parts</label>
78
+ <method>post</method>
79
+ <parameters>
80
+ <timeout>4</timeout>
81
+ </parameters>
82
+ </parameters>
83
+ <!--}}}-->
84
+ </call>
85
+ <call id="a6" endpoint="gateway">
86
+ <parameters>
87
+ <!--{{{-->
88
+ <label>Produce Mechanical Parts (A-Z)</label>
89
+ <method>post</method>
90
+ <parameters>
91
+ <timeout>4</timeout>
92
+ </parameters>
93
+ </parameters>
94
+ <!--}}}-->
95
+ </call>
96
+ <call id="a7" endpoint="gateway">
97
+ <parameters>
98
+ <!--{{{-->
99
+ <label>Perform Surface Treatment</label>
100
+ <method>post</method>
101
+ <parameters>
102
+ <timeout>4</timeout>
103
+ </parameters>
104
+ </parameters>
105
+ <!--}}}-->
106
+ </call>
107
+ <call id="a8" endpoint="gateway">
108
+ <parameters>
109
+ <!--{{{-->
110
+ <label>Mechanical Parts Assembly</label>
111
+ <method>post</method>
112
+ <parameters>
113
+ <timeout>4</timeout>
114
+ </parameters>
115
+ </parameters>
116
+ <!--}}}-->
117
+ </call>
118
+ </parallel_branch>
119
+ <parallel_branch>
120
+ <parallel>
121
+ <parallel_branch>
122
+ <call id="a2" endpoint="gateway">
123
+ <parameters>
124
+ <!--{{{-->
125
+ <label>Supply Electric Parts</label>
126
+ <method>post</method>
127
+ <parameters>
128
+ <timeout>4</timeout>
129
+ </parameters>
130
+ </parameters>
131
+ <!--}}}-->
132
+ </call>
133
+ <call id="a3" endpoint="gateway">
134
+ <parameters>
135
+ <!--{{{-->
136
+ <label>Delivery</label>
137
+ <method>post</method>
138
+ <parameters>
139
+ <timeout>4</timeout>
140
+ </parameters>
141
+ </parameters>
142
+ <!--}}}-->
143
+ </call>
144
+ </parallel_branch>
145
+ <parallel_branch>
146
+ <call id="a1" endpoint="gateway">
147
+ <parameters>
148
+ <!--{{{-->
149
+ <label>Develop Control System</label>
150
+ <method>post</method>
151
+ <parameters>
152
+ <timeout>4</timeout>
153
+ </parameters>
154
+ </parameters>
155
+ <!--}}}-->
156
+ </call>
157
+ </parallel_branch>
158
+ </parallel>
159
+ <call id="a4" endpoint="gateway">
160
+ <parameters>
161
+ <!--{{{-->
162
+ <label>Electric Board Assembly</label>
163
+ <method>post</method>
164
+ <parameters>
165
+ <timeout>4</timeout>
166
+ </parameters>
167
+ </parameters>
168
+ <!--}}}-->
169
+ </call>
170
+ </parallel_branch>
171
+ </parallel>
172
+ <call id="a11" endpoint="gateway">
173
+ <parameters>
174
+ <!--{{{-->
175
+ <label>Systems Integration</label>
176
+ <method>post</method>
177
+ <parameters>
178
+ <timeout>4</timeout>
179
+ </parameters>
180
+ </parameters>
181
+ <!--}}}-->
182
+ </call>
183
+ <call id="a12" endpoint="gateway">
184
+ <parameters>
185
+ <!--{{{-->
186
+ <label>Test</label>
187
+ <method>post</method>
188
+ <parameters>
189
+ <timeout>4</timeout>
190
+ </parameters>
191
+ </parameters>
192
+ <!--}}}-->
193
+ <manipulate output="result"> data.test = "success"</manipulate>
194
+ </call>
195
+ </description>
196
+ </description>
197
+ <transformation>
198
+ <!--{{{-->
199
+ <!--}}}-->
200
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0" version="1.0">
201
+ <xsl:output method="text"/>
202
+ <xsl:strip-space elements="*"/>
203
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
204
+ <xsl:template match="/">
205
+ <xsl:apply-templates select="//d:description"/>
206
+ </xsl:template>
207
+ <xsl:template match="//d:description">
208
+ <xsl:apply-templates>
209
+ <xsl:with-param name="myspace">
210
+ <xsl:value-of select="-1*$myspacemultiplier"/>
211
+ </xsl:with-param>
212
+ </xsl:apply-templates>
213
+ </xsl:template>
214
+ <xsl:template match="*">
215
+ <xsl:param name="myspace"/>
216
+ <xsl:call-template name="print-space">
217
+ <xsl:with-param name="i">1</xsl:with-param>
218
+ <xsl:with-param name="count">
219
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
220
+ </xsl:with-param>
221
+ </xsl:call-template>
222
+ <xsl:if test="name()='call' or name()='manipulate'">
223
+ <xsl:text>activity :</xsl:text>
224
+ <xsl:value-of select="@id"/>
225
+ </xsl:if>
226
+ <xsl:if test="name()='call'">
227
+ <xsl:text>, :call, :</xsl:text>
228
+ <xsl:value-of select="@endpoint"/>
229
+ <xsl:apply-templates select="d:parameters"/>
230
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
231
+ <xsl:with-param name="myspace">
232
+ <xsl:value-of select="$myspace"/>
233
+ </xsl:with-param>
234
+ </xsl:apply-templates>
235
+ <xsl:call-template name="print-newline"/>
236
+ </xsl:if>
237
+ <xsl:if test="name()='manipulate'">
238
+ <xsl:text>, :manipulate</xsl:text>
239
+ <xsl:call-template name="print-content">
240
+ <xsl:with-param name="myspace">
241
+ <xsl:value-of select="$myspace"/>
242
+ </xsl:with-param>
243
+ </xsl:call-template>
244
+ <xsl:call-template name="print-newline"/>
245
+ </xsl:if>
246
+ <xsl:if test="name()='parallel'">
247
+ <xsl:text>parallel</xsl:text>
248
+ <xsl:if test="@wait">
249
+ <xsl:text> :wait =&gt; </xsl:text>
250
+ <xsl:value-of select="@wait"/>
251
+ </xsl:if>
252
+ <xsl:text> do</xsl:text>
253
+ <xsl:call-template name="print-newline"/>
254
+ <xsl:apply-templates>
255
+ <xsl:with-param name="myspace">
256
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
257
+ </xsl:with-param>
258
+ </xsl:apply-templates>
259
+ <xsl:call-template name="print-space">
260
+ <xsl:with-param name="i">1</xsl:with-param>
261
+ <xsl:with-param name="count">
262
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
263
+ </xsl:with-param>
264
+ </xsl:call-template>
265
+ <xsl:text>end</xsl:text>
266
+ <xsl:call-template name="print-newline"/>
267
+ </xsl:if>
268
+ <xsl:if test="name()='loop'">
269
+ <xsl:text>loop </xsl:text>
270
+ <xsl:if test="@pre_test">
271
+ <xsl:text>pre_test{</xsl:text>
272
+ <xsl:value-of select="@pre_test"/>
273
+ <xsl:text>} </xsl:text>
274
+ </xsl:if>
275
+ <xsl:if test="@post_test">
276
+ <xsl:text>post_test{</xsl:text>
277
+ <xsl:value-of select="@post_test"/>
278
+ <xsl:text>} </xsl:text>
279
+ </xsl:if>
280
+ <xsl:text>do</xsl:text>
281
+ <xsl:call-template name="print-newline"/>
282
+ <xsl:apply-templates>
283
+ <xsl:with-param name="myspace">
284
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
285
+ </xsl:with-param>
286
+ </xsl:apply-templates>
287
+ <xsl:call-template name="print-space">
288
+ <xsl:with-param name="i">1</xsl:with-param>
289
+ <xsl:with-param name="count">
290
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
291
+ </xsl:with-param>
292
+ </xsl:call-template>
293
+ <xsl:text>end</xsl:text>
294
+ <xsl:call-template name="print-newline"/>
295
+ </xsl:if>
296
+ <xsl:if test="name()='choose'">
297
+ <xsl:text>choose do</xsl:text>
298
+ <xsl:call-template name="print-newline"/>
299
+ <xsl:apply-templates>
300
+ <xsl:with-param name="myspace">
301
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
302
+ </xsl:with-param>
303
+ </xsl:apply-templates>
304
+ <xsl:call-template name="print-space">
305
+ <xsl:with-param name="i">1</xsl:with-param>
306
+ <xsl:with-param name="count">
307
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
308
+ </xsl:with-param>
309
+ </xsl:call-template>
310
+ <xsl:text>end</xsl:text>
311
+ <xsl:call-template name="print-newline"/>
312
+ </xsl:if>
313
+ <xsl:if test="name()='group'">
314
+ <xsl:apply-templates>
315
+ <xsl:with-param name="myspace">
316
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
317
+ </xsl:with-param>
318
+ </xsl:apply-templates>
319
+ <xsl:call-template name="print-newline"/>
320
+ </xsl:if>
321
+ <xsl:if test="name()='critical'">
322
+ <xsl:text>critical :</xsl:text>
323
+ <xsl:value-of select="@sid"/>
324
+ <xsl:text> do</xsl:text>
325
+ <xsl:call-template name="print-newline"/>
326
+ <xsl:apply-templates>
327
+ <xsl:with-param name="myspace">
328
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
329
+ </xsl:with-param>
330
+ </xsl:apply-templates>
331
+ <xsl:call-template name="print-space">
332
+ <xsl:with-param name="i">1</xsl:with-param>
333
+ <xsl:with-param name="count">
334
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
335
+ </xsl:with-param>
336
+ </xsl:call-template>
337
+ <xsl:text>end</xsl:text>
338
+ <xsl:call-template name="print-newline"/>
339
+ </xsl:if>
340
+ </xsl:template>
341
+ <xsl:template match="d:alternative">
342
+ <xsl:param name="myspace"/>
343
+ <xsl:call-template name="print-space">
344
+ <xsl:with-param name="i">1</xsl:with-param>
345
+ <xsl:with-param name="count">
346
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
347
+ </xsl:with-param>
348
+ </xsl:call-template>
349
+ <xsl:text>alternative </xsl:text>
350
+ <xsl:value-of select="@condition"/>
351
+ <xsl:text> do</xsl:text>
352
+ <xsl:call-template name="print-newline"/>
353
+ <xsl:apply-templates>
354
+ <xsl:with-param name="myspace">
355
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
356
+ </xsl:with-param>
357
+ </xsl:apply-templates>
358
+ <xsl:call-template name="print-space">
359
+ <xsl:with-param name="i">1</xsl:with-param>
360
+ <xsl:with-param name="count">
361
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
362
+ </xsl:with-param>
363
+ </xsl:call-template>
364
+ <xsl:text>end</xsl:text>
365
+ <xsl:call-template name="print-newline"/>
366
+ </xsl:template>
367
+ <xsl:template match="d:otherwise">
368
+ <xsl:param name="myspace"/>
369
+ <xsl:call-template name="print-space">
370
+ <xsl:with-param name="i">1</xsl:with-param>
371
+ <xsl:with-param name="count">
372
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
373
+ </xsl:with-param>
374
+ </xsl:call-template>
375
+ <xsl:text>otherwise do</xsl:text>
376
+ <xsl:call-template name="print-newline"/>
377
+ <xsl:apply-templates>
378
+ <xsl:with-param name="myspace">
379
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
380
+ </xsl:with-param>
381
+ </xsl:apply-templates>
382
+ <xsl:call-template name="print-space">
383
+ <xsl:with-param name="i">1</xsl:with-param>
384
+ <xsl:with-param name="count">
385
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
386
+ </xsl:with-param>
387
+ </xsl:call-template>
388
+ <xsl:text>end</xsl:text>
389
+ <xsl:call-template name="print-newline"/>
390
+ </xsl:template>
391
+ <xsl:template match="d:parallel_branch">
392
+ <xsl:param name="myspace"/>
393
+ <xsl:call-template name="print-space">
394
+ <xsl:with-param name="i">1</xsl:with-param>
395
+ <xsl:with-param name="count">
396
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
397
+ </xsl:with-param>
398
+ </xsl:call-template>
399
+ <xsl:text>parallel_branch</xsl:text>
400
+ <xsl:if test="@pass">
401
+ <xsl:text> </xsl:text>
402
+ <xsl:value-of select="@pass"/>
403
+ </xsl:if>
404
+ <xsl:text> do</xsl:text>
405
+ <xsl:if test="@local">
406
+ <xsl:text> |</xsl:text>
407
+ <xsl:value-of select="@local"/>
408
+ <xsl:text>|</xsl:text>
409
+ </xsl:if>
410
+ <xsl:call-template name="print-newline"/>
411
+ <xsl:apply-templates>
412
+ <xsl:with-param name="myspace">
413
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
414
+ </xsl:with-param>
415
+ </xsl:apply-templates>
416
+ <xsl:call-template name="print-space">
417
+ <xsl:with-param name="i">1</xsl:with-param>
418
+ <xsl:with-param name="count">
419
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
420
+ </xsl:with-param>
421
+ </xsl:call-template>
422
+ <xsl:text>end</xsl:text>
423
+ <xsl:call-template name="print-newline"/>
424
+ </xsl:template>
425
+ <xsl:template match="d:parameters">
426
+ <xsl:apply-templates select="d:*" mode="parameter"/>
427
+ </xsl:template>
428
+ <xsl:template match="d:*" mode="parameter">
429
+ <xsl:text>, :</xsl:text>
430
+ <xsl:value-of select="name()"/>
431
+ <xsl:text> =&gt; </xsl:text>
432
+ <xsl:choose>
433
+ <xsl:when test="count(*) &gt; 0">
434
+ <xsl:text>[</xsl:text>
435
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
436
+ <xsl:text>]</xsl:text>
437
+ </xsl:when>
438
+ <xsl:otherwise>
439
+ <xsl:choose>
440
+ <xsl:when test="@type = 'symbolic'">
441
+ <xsl:value-of select="text()"/>
442
+ </xsl:when>
443
+ <xsl:otherwise>
444
+ <xsl:text>"</xsl:text>
445
+ <xsl:value-of select="text()"/>
446
+ <xsl:text>"</xsl:text>
447
+ </xsl:otherwise>
448
+ </xsl:choose>
449
+ </xsl:otherwise>
450
+ </xsl:choose>
451
+ </xsl:template>
452
+ <xsl:template match="d:*" mode="sub-parameter">
453
+ <xsl:text> { :</xsl:text>
454
+ <xsl:value-of select="name()"/>
455
+ <xsl:text> =&gt; </xsl:text>
456
+ <xsl:value-of select="text()"/>
457
+ <xsl:text> }</xsl:text>
458
+ <xsl:choose>
459
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
460
+ <xsl:text> </xsl:text>
461
+ </xsl:when>
462
+ <xsl:otherwise>
463
+ <xsl:text>,</xsl:text>
464
+ </xsl:otherwise>
465
+ </xsl:choose>
466
+ </xsl:template>
467
+ <xsl:template match="d:manipulate" mode="part-of-call">
468
+ <xsl:param name="myspace"/>
469
+ <xsl:call-template name="print-content">
470
+ <xsl:with-param name="myspace">
471
+ <xsl:value-of select="$myspace"/>
472
+ </xsl:with-param>
473
+ </xsl:call-template>
474
+ </xsl:template>
475
+ <xsl:template name="print-content">
476
+ <xsl:param name="myspace"/>
477
+ <xsl:if test="text()">
478
+ <xsl:text> do </xsl:text>
479
+ <xsl:if test="@output">
480
+ <xsl:text>|</xsl:text>
481
+ <xsl:value-of select="@output"/>
482
+ <xsl:text>|</xsl:text>
483
+ </xsl:if>
484
+ <xsl:call-template name="print-newline"/>
485
+ <xsl:value-of select="text()"/>
486
+ <xsl:call-template name="print-newline"/>
487
+ <xsl:call-template name="print-space">
488
+ <xsl:with-param name="i">1</xsl:with-param>
489
+ <xsl:with-param name="count">
490
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
491
+ </xsl:with-param>
492
+ </xsl:call-template>
493
+ <xsl:text>end</xsl:text>
494
+ </xsl:if>
495
+ </xsl:template>
496
+ <xsl:template name="print-space">
497
+ <xsl:param name="i"/>
498
+ <xsl:param name="count"/>
499
+ <xsl:if test="$i &lt;= $count">
500
+ <xsl:text> </xsl:text>
501
+ <xsl:call-template name="print-space">
502
+ <xsl:with-param name="i">
503
+ <xsl:value-of select="$i + 1"/>
504
+ </xsl:with-param>
505
+ <xsl:with-param name="count">
506
+ <xsl:value-of select="$count"/>
507
+ </xsl:with-param>
508
+ </xsl:call-template>
509
+ </xsl:if>
510
+ </xsl:template>
511
+ <xsl:template name="print-newline">
512
+ <xsl:text>
513
+ </xsl:text>
514
+ </xsl:template>
515
+ </xsl:stylesheet>
516
+ </transformation>
517
+ </properties>