cpee 1.3.106 → 1.3.107

Sign up to get free protection for your applications and to get access to all the features.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +10 -0
  3. data/cockpit/js/instance.js +55 -137
  4. data/cockpit/testsets/Concurrent.xml +5 -283
  5. data/cockpit/testsets/Coopis Testset.xml +3 -281
  6. data/cockpit/testsets/Endpoints and Data Manipulation.xml +3 -331
  7. data/cockpit/testsets/ICSOC Testset.xml +3 -281
  8. data/cockpit/testsets/Linear.xml +3 -281
  9. data/cockpit/testsets/Mangler 1.xml +3 -281
  10. data/cockpit/testsets/Mangler 2.xml +3 -281
  11. data/cockpit/testsets/RESCUE - Book Movie - Local.xml +3 -290
  12. data/cockpit/testsets/RESCUE - Book Movie.xml +3 -290
  13. data/cockpit/testsets/RESCUE - Loop-Parallel Injection.xml +3 -305
  14. data/cockpit/testsets/SOPROMO Test Sonification.xml +3 -281
  15. data/cockpit/testsets/Syncing P34 1.xml +3 -281
  16. data/cockpit/testsets/Syncing P34 2.xml +3 -281
  17. data/cockpit/testsets/Syncing P34 3.xml +3 -281
  18. data/cockpit/testsets/Syncing P34.xml +3 -281
  19. data/cockpit/testsets/TEST - Bad Loop.xml +3 -281
  20. data/cockpit/testsets/TEST - Wrong Positions.xml +3 -308
  21. data/cpee.gemspec +1 -1
  22. data/lib/cpee/controller.rb +79 -12
  23. data/lib/cpee/implementation.rb +9 -3
  24. data/lib/engine.xml +11 -7
  25. data/server/handlerwrappers/default.rb +14 -0
  26. data/server/handlerwrappers/rescue.rb +1 -1
  27. data/server/handlerwrappers/soap.rb +1 -1
  28. data/server/resources/properties.init +5 -315
  29. data/server/resources/properties.schema.active +33 -5
  30. data/server/resources/properties.schema.finished +34 -6
  31. data/server/resources/properties.schema.inactive +33 -5
  32. data/server/resources/topics.xml +1 -0
  33. data/server/resources/transformation.xml +53 -0
  34. data/server/resources/transformation_dslx.xsl +289 -0
  35. metadata +4 -338
  36. data/server/instances/1/notifications/topics.xml +0 -39
  37. data/server/instances/1/properties.xml +0 -338
  38. data/server/instances/10/notifications/0ad4ba057d8029cb7baf5080b4defda2/consumer-secret +0 -1
  39. data/server/instances/10/notifications/0ad4ba057d8029cb7baf5080b4defda2/producer-secret +0 -1
  40. data/server/instances/10/notifications/0ad4ba057d8029cb7baf5080b4defda2/subscription.xml +0 -27
  41. data/server/instances/10/notifications/478f55276b76ae33b22591d350253ca1/consumer-secret +0 -1
  42. data/server/instances/10/notifications/478f55276b76ae33b22591d350253ca1/producer-secret +0 -1
  43. data/server/instances/10/notifications/478f55276b76ae33b22591d350253ca1/subscription.xml +0 -27
  44. data/server/instances/10/notifications/topics.xml +0 -39
  45. data/server/instances/10/properties.xml +0 -458
  46. data/server/instances/11/notifications/553000a7664a07a74655e8c53162f47b/consumer-secret +0 -1
  47. data/server/instances/11/notifications/553000a7664a07a74655e8c53162f47b/producer-secret +0 -1
  48. data/server/instances/11/notifications/553000a7664a07a74655e8c53162f47b/subscription.xml +0 -27
  49. data/server/instances/11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab/consumer-secret +0 -1
  50. data/server/instances/11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab/producer-secret +0 -1
  51. data/server/instances/11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab/subscription.xml +0 -27
  52. data/server/instances/11/notifications/topics.xml +0 -39
  53. data/server/instances/11/properties.xml +0 -1977
  54. data/server/instances/12/notifications/72b0aa58804826bbbccc6232b458e438/consumer-secret +0 -1
  55. data/server/instances/12/notifications/72b0aa58804826bbbccc6232b458e438/producer-secret +0 -1
  56. data/server/instances/12/notifications/72b0aa58804826bbbccc6232b458e438/subscription.xml +0 -27
  57. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/consumer-secret +0 -1
  58. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/producer-secret +0 -1
  59. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/subscription.xml +0 -5
  60. data/server/instances/12/notifications/topics.xml +0 -39
  61. data/server/instances/12/properties.xml +0 -460
  62. data/server/instances/13/notifications/0db5243cacbb67f6b9f2796b6e9e1390/consumer-secret +0 -1
  63. data/server/instances/13/notifications/0db5243cacbb67f6b9f2796b6e9e1390/producer-secret +0 -1
  64. data/server/instances/13/notifications/0db5243cacbb67f6b9f2796b6e9e1390/subscription.xml +0 -27
  65. data/server/instances/13/notifications/topics.xml +0 -39
  66. data/server/instances/13/properties.xml +0 -1977
  67. data/server/instances/14/notifications/f2740798ebfb900dbdae5f45915aca3f/consumer-secret +0 -1
  68. data/server/instances/14/notifications/f2740798ebfb900dbdae5f45915aca3f/producer-secret +0 -1
  69. data/server/instances/14/notifications/f2740798ebfb900dbdae5f45915aca3f/subscription.xml +0 -27
  70. data/server/instances/14/notifications/topics.xml +0 -39
  71. data/server/instances/14/properties.xml +0 -1952
  72. data/server/instances/15/notifications/8d3a1995549bd39b611a290bd83f8bdd/consumer-secret +0 -1
  73. data/server/instances/15/notifications/8d3a1995549bd39b611a290bd83f8bdd/producer-secret +0 -1
  74. data/server/instances/15/notifications/8d3a1995549bd39b611a290bd83f8bdd/subscription.xml +0 -27
  75. data/server/instances/15/notifications/topics.xml +0 -39
  76. data/server/instances/15/properties.xml +0 -1989
  77. data/server/instances/16/notifications/329d3891fbf27e0c206d19f09395b74a/consumer-secret +0 -1
  78. data/server/instances/16/notifications/329d3891fbf27e0c206d19f09395b74a/producer-secret +0 -1
  79. data/server/instances/16/notifications/329d3891fbf27e0c206d19f09395b74a/subscription.xml +0 -27
  80. data/server/instances/16/notifications/topics.xml +0 -39
  81. data/server/instances/16/properties.xml +0 -362
  82. data/server/instances/17/notifications/26557f82ecd701a2b3b5d295085f78b8/consumer-secret +0 -1
  83. data/server/instances/17/notifications/26557f82ecd701a2b3b5d295085f78b8/producer-secret +0 -1
  84. data/server/instances/17/notifications/26557f82ecd701a2b3b5d295085f78b8/subscription.xml +0 -27
  85. data/server/instances/17/notifications/topics.xml +0 -39
  86. data/server/instances/17/properties.xml +0 -1989
  87. data/server/instances/18/notifications/07c4879f809677265232520a8e27aef1/consumer-secret +0 -1
  88. data/server/instances/18/notifications/07c4879f809677265232520a8e27aef1/producer-secret +0 -1
  89. data/server/instances/18/notifications/07c4879f809677265232520a8e27aef1/subscription.xml +0 -27
  90. data/server/instances/18/notifications/topics.xml +0 -39
  91. data/server/instances/18/properties.xml +0 -1448
  92. data/server/instances/19/notifications/01d8db23c7f31c03f6bef07d56969c20/consumer-secret +0 -1
  93. data/server/instances/19/notifications/01d8db23c7f31c03f6bef07d56969c20/producer-secret +0 -1
  94. data/server/instances/19/notifications/01d8db23c7f31c03f6bef07d56969c20/subscription.xml +0 -27
  95. data/server/instances/19/notifications/025e6e7a8afc2da12d55892c7b5e5da9/consumer-secret +0 -1
  96. data/server/instances/19/notifications/025e6e7a8afc2da12d55892c7b5e5da9/producer-secret +0 -1
  97. data/server/instances/19/notifications/025e6e7a8afc2da12d55892c7b5e5da9/subscription.xml +0 -27
  98. data/server/instances/19/notifications/073c4d8dea552666408f93edd0c8053b/consumer-secret +0 -1
  99. data/server/instances/19/notifications/073c4d8dea552666408f93edd0c8053b/producer-secret +0 -1
  100. data/server/instances/19/notifications/073c4d8dea552666408f93edd0c8053b/subscription.xml +0 -27
  101. data/server/instances/19/notifications/0968164702074c2c04e185ec74e9aec1/consumer-secret +0 -1
  102. data/server/instances/19/notifications/0968164702074c2c04e185ec74e9aec1/producer-secret +0 -1
  103. data/server/instances/19/notifications/0968164702074c2c04e185ec74e9aec1/subscription.xml +0 -27
  104. data/server/instances/19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac/consumer-secret +0 -1
  105. data/server/instances/19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac/producer-secret +0 -1
  106. data/server/instances/19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac/subscription.xml +0 -27
  107. data/server/instances/19/notifications/2fe0c6322f193588872058ffac82492d/consumer-secret +0 -1
  108. data/server/instances/19/notifications/2fe0c6322f193588872058ffac82492d/producer-secret +0 -1
  109. data/server/instances/19/notifications/2fe0c6322f193588872058ffac82492d/subscription.xml +0 -27
  110. data/server/instances/19/notifications/3136bfa5955a8cb5f6563785a8edc318/consumer-secret +0 -1
  111. data/server/instances/19/notifications/3136bfa5955a8cb5f6563785a8edc318/producer-secret +0 -1
  112. data/server/instances/19/notifications/3136bfa5955a8cb5f6563785a8edc318/subscription.xml +0 -27
  113. data/server/instances/19/notifications/3706a8b351d6392ac07d20179c254f55/consumer-secret +0 -1
  114. data/server/instances/19/notifications/3706a8b351d6392ac07d20179c254f55/producer-secret +0 -1
  115. data/server/instances/19/notifications/3706a8b351d6392ac07d20179c254f55/subscription.xml +0 -27
  116. data/server/instances/19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a/consumer-secret +0 -1
  117. data/server/instances/19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a/producer-secret +0 -1
  118. data/server/instances/19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a/subscription.xml +0 -27
  119. data/server/instances/19/notifications/458b06a79f956e42eb3fe79ffa12fd63/consumer-secret +0 -1
  120. data/server/instances/19/notifications/458b06a79f956e42eb3fe79ffa12fd63/producer-secret +0 -1
  121. data/server/instances/19/notifications/458b06a79f956e42eb3fe79ffa12fd63/subscription.xml +0 -27
  122. data/server/instances/19/notifications/49417e6e473f568397240d2b606e1b04/consumer-secret +0 -1
  123. data/server/instances/19/notifications/49417e6e473f568397240d2b606e1b04/producer-secret +0 -1
  124. data/server/instances/19/notifications/49417e6e473f568397240d2b606e1b04/subscription.xml +0 -27
  125. data/server/instances/19/notifications/5307f0fe49c899b3a03ec728aa987796/consumer-secret +0 -1
  126. data/server/instances/19/notifications/5307f0fe49c899b3a03ec728aa987796/producer-secret +0 -1
  127. data/server/instances/19/notifications/5307f0fe49c899b3a03ec728aa987796/subscription.xml +0 -27
  128. data/server/instances/19/notifications/606911cd8ee90d60031db353ed22bdf8/consumer-secret +0 -1
  129. data/server/instances/19/notifications/606911cd8ee90d60031db353ed22bdf8/producer-secret +0 -1
  130. data/server/instances/19/notifications/606911cd8ee90d60031db353ed22bdf8/subscription.xml +0 -27
  131. data/server/instances/19/notifications/6129250b57b70d658b5286f688f319eb/consumer-secret +0 -1
  132. data/server/instances/19/notifications/6129250b57b70d658b5286f688f319eb/producer-secret +0 -1
  133. data/server/instances/19/notifications/6129250b57b70d658b5286f688f319eb/subscription.xml +0 -27
  134. data/server/instances/19/notifications/636f948cce52233117dc65bcfa493f24/consumer-secret +0 -1
  135. data/server/instances/19/notifications/636f948cce52233117dc65bcfa493f24/producer-secret +0 -1
  136. data/server/instances/19/notifications/636f948cce52233117dc65bcfa493f24/subscription.xml +0 -27
  137. data/server/instances/19/notifications/69df7e66b7b840435ff262401e76947f/consumer-secret +0 -1
  138. data/server/instances/19/notifications/69df7e66b7b840435ff262401e76947f/producer-secret +0 -1
  139. data/server/instances/19/notifications/69df7e66b7b840435ff262401e76947f/subscription.xml +0 -27
  140. data/server/instances/19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9/consumer-secret +0 -1
  141. data/server/instances/19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9/producer-secret +0 -1
  142. data/server/instances/19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9/subscription.xml +0 -27
  143. data/server/instances/19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1/consumer-secret +0 -1
  144. data/server/instances/19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1/producer-secret +0 -1
  145. data/server/instances/19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1/subscription.xml +0 -27
  146. data/server/instances/19/notifications/78d645b46a63a16f1fe83c7f58de8765/consumer-secret +0 -1
  147. data/server/instances/19/notifications/78d645b46a63a16f1fe83c7f58de8765/producer-secret +0 -1
  148. data/server/instances/19/notifications/78d645b46a63a16f1fe83c7f58de8765/subscription.xml +0 -27
  149. data/server/instances/19/notifications/81339ee147ce8dea48dece1d9298503a/consumer-secret +0 -1
  150. data/server/instances/19/notifications/81339ee147ce8dea48dece1d9298503a/producer-secret +0 -1
  151. data/server/instances/19/notifications/81339ee147ce8dea48dece1d9298503a/subscription.xml +0 -27
  152. data/server/instances/19/notifications/94d46212b220e994d9fa6cf5558b1eb3/consumer-secret +0 -1
  153. data/server/instances/19/notifications/94d46212b220e994d9fa6cf5558b1eb3/producer-secret +0 -1
  154. data/server/instances/19/notifications/94d46212b220e994d9fa6cf5558b1eb3/subscription.xml +0 -27
  155. data/server/instances/19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e/consumer-secret +0 -1
  156. data/server/instances/19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e/producer-secret +0 -1
  157. data/server/instances/19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e/subscription.xml +0 -27
  158. data/server/instances/19/notifications/ad87f3e3e0405b707b797d71ee96b0b3/consumer-secret +0 -1
  159. data/server/instances/19/notifications/ad87f3e3e0405b707b797d71ee96b0b3/producer-secret +0 -1
  160. data/server/instances/19/notifications/ad87f3e3e0405b707b797d71ee96b0b3/subscription.xml +0 -27
  161. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/consumer-secret +0 -1
  162. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/producer-secret +0 -1
  163. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/subscription.xml +0 -6
  164. data/server/instances/19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa/consumer-secret +0 -1
  165. data/server/instances/19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa/producer-secret +0 -1
  166. data/server/instances/19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa/subscription.xml +0 -27
  167. data/server/instances/19/notifications/d2010a88f6612f1377e21544c9e88758/consumer-secret +0 -1
  168. data/server/instances/19/notifications/d2010a88f6612f1377e21544c9e88758/producer-secret +0 -1
  169. data/server/instances/19/notifications/d2010a88f6612f1377e21544c9e88758/subscription.xml +0 -27
  170. data/server/instances/19/notifications/d276ebce5c305f46f8e72fe8c87f81ba/consumer-secret +0 -1
  171. data/server/instances/19/notifications/d276ebce5c305f46f8e72fe8c87f81ba/producer-secret +0 -1
  172. data/server/instances/19/notifications/d276ebce5c305f46f8e72fe8c87f81ba/subscription.xml +0 -27
  173. data/server/instances/19/notifications/d62cbaaf58d06c84f59cf16fab21587f/consumer-secret +0 -1
  174. data/server/instances/19/notifications/d62cbaaf58d06c84f59cf16fab21587f/producer-secret +0 -1
  175. data/server/instances/19/notifications/d62cbaaf58d06c84f59cf16fab21587f/subscription.xml +0 -27
  176. data/server/instances/19/notifications/dd3dae13d8173f5534872b5eea75251d/consumer-secret +0 -1
  177. data/server/instances/19/notifications/dd3dae13d8173f5534872b5eea75251d/producer-secret +0 -1
  178. data/server/instances/19/notifications/dd3dae13d8173f5534872b5eea75251d/subscription.xml +0 -27
  179. data/server/instances/19/notifications/eb02040474c60246db5616dc7330f20d/consumer-secret +0 -1
  180. data/server/instances/19/notifications/eb02040474c60246db5616dc7330f20d/producer-secret +0 -1
  181. data/server/instances/19/notifications/eb02040474c60246db5616dc7330f20d/subscription.xml +0 -27
  182. data/server/instances/19/notifications/ec6797efe5554a38ff6008649dfca18d/consumer-secret +0 -1
  183. data/server/instances/19/notifications/ec6797efe5554a38ff6008649dfca18d/producer-secret +0 -1
  184. data/server/instances/19/notifications/ec6797efe5554a38ff6008649dfca18d/subscription.xml +0 -27
  185. data/server/instances/19/notifications/ec80b03a1271529a846c148a7deb50bc/consumer-secret +0 -1
  186. data/server/instances/19/notifications/ec80b03a1271529a846c148a7deb50bc/producer-secret +0 -1
  187. data/server/instances/19/notifications/ec80b03a1271529a846c148a7deb50bc/subscription.xml +0 -27
  188. data/server/instances/19/notifications/f347fe875a00ca7248a1edc5d2ee3dab/consumer-secret +0 -1
  189. data/server/instances/19/notifications/f347fe875a00ca7248a1edc5d2ee3dab/producer-secret +0 -1
  190. data/server/instances/19/notifications/f347fe875a00ca7248a1edc5d2ee3dab/subscription.xml +0 -27
  191. data/server/instances/19/notifications/f811663bd43b80d8b2439cdaf8c11edf/consumer-secret +0 -1
  192. data/server/instances/19/notifications/f811663bd43b80d8b2439cdaf8c11edf/producer-secret +0 -1
  193. data/server/instances/19/notifications/f811663bd43b80d8b2439cdaf8c11edf/subscription.xml +0 -27
  194. data/server/instances/19/notifications/topics.xml +0 -39
  195. data/server/instances/19/properties.xml +0 -414
  196. data/server/instances/2/notifications/6700a633221b71df4781a62d5116f823/consumer-secret +0 -1
  197. data/server/instances/2/notifications/6700a633221b71df4781a62d5116f823/producer-secret +0 -1
  198. data/server/instances/2/notifications/6700a633221b71df4781a62d5116f823/subscription.xml +0 -27
  199. data/server/instances/2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088/consumer-secret +0 -1
  200. data/server/instances/2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088/producer-secret +0 -1
  201. data/server/instances/2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088/subscription.xml +0 -27
  202. data/server/instances/2/notifications/def05a48b306acf06c2bd6e4afe91e93/consumer-secret +0 -1
  203. data/server/instances/2/notifications/def05a48b306acf06c2bd6e4afe91e93/producer-secret +0 -1
  204. data/server/instances/2/notifications/def05a48b306acf06c2bd6e4afe91e93/subscription.xml +0 -27
  205. data/server/instances/2/notifications/topics.xml +0 -39
  206. data/server/instances/2/properties.xml +0 -812
  207. data/server/instances/20/notifications/7b56c2397dd09134e9f5141387136ba0/consumer-secret +0 -1
  208. data/server/instances/20/notifications/7b56c2397dd09134e9f5141387136ba0/producer-secret +0 -1
  209. data/server/instances/20/notifications/7b56c2397dd09134e9f5141387136ba0/subscription.xml +0 -27
  210. data/server/instances/20/notifications/topics.xml +0 -39
  211. data/server/instances/20/properties.xml +0 -1664
  212. data/server/instances/21/notifications/03a3029b2b3f1465a0033cd247ae9b18/consumer-secret +0 -1
  213. data/server/instances/21/notifications/03a3029b2b3f1465a0033cd247ae9b18/producer-secret +0 -1
  214. data/server/instances/21/notifications/03a3029b2b3f1465a0033cd247ae9b18/subscription.xml +0 -27
  215. data/server/instances/21/notifications/0a797188e3e82ec753e601c26ab605f6/consumer-secret +0 -1
  216. data/server/instances/21/notifications/0a797188e3e82ec753e601c26ab605f6/producer-secret +0 -1
  217. data/server/instances/21/notifications/0a797188e3e82ec753e601c26ab605f6/subscription.xml +0 -5
  218. data/server/instances/21/notifications/0ecf3c7a58e94c6aa4841eb61906276b/consumer-secret +0 -1
  219. data/server/instances/21/notifications/0ecf3c7a58e94c6aa4841eb61906276b/producer-secret +0 -1
  220. data/server/instances/21/notifications/0ecf3c7a58e94c6aa4841eb61906276b/subscription.xml +0 -27
  221. data/server/instances/21/notifications/1628b9524616b4df4fa069d78ceb0d26/consumer-secret +0 -1
  222. data/server/instances/21/notifications/1628b9524616b4df4fa069d78ceb0d26/producer-secret +0 -1
  223. data/server/instances/21/notifications/1628b9524616b4df4fa069d78ceb0d26/subscription.xml +0 -27
  224. data/server/instances/21/notifications/224e3da9513bd44d8477f29f6deaa2f5/consumer-secret +0 -1
  225. data/server/instances/21/notifications/224e3da9513bd44d8477f29f6deaa2f5/producer-secret +0 -1
  226. data/server/instances/21/notifications/224e3da9513bd44d8477f29f6deaa2f5/subscription.xml +0 -27
  227. data/server/instances/21/notifications/2aa12d755b5a3588394a34898d57048e/consumer-secret +0 -1
  228. data/server/instances/21/notifications/2aa12d755b5a3588394a34898d57048e/producer-secret +0 -1
  229. data/server/instances/21/notifications/2aa12d755b5a3588394a34898d57048e/subscription.xml +0 -27
  230. data/server/instances/21/notifications/39564e45c1008e1e73836d36b4afc7bc/consumer-secret +0 -1
  231. data/server/instances/21/notifications/39564e45c1008e1e73836d36b4afc7bc/producer-secret +0 -1
  232. data/server/instances/21/notifications/39564e45c1008e1e73836d36b4afc7bc/subscription.xml +0 -27
  233. data/server/instances/21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c/consumer-secret +0 -1
  234. data/server/instances/21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c/producer-secret +0 -1
  235. data/server/instances/21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c/subscription.xml +0 -27
  236. data/server/instances/21/notifications/45c82ecaf6566cf3873a13552120524f/consumer-secret +0 -1
  237. data/server/instances/21/notifications/45c82ecaf6566cf3873a13552120524f/producer-secret +0 -1
  238. data/server/instances/21/notifications/45c82ecaf6566cf3873a13552120524f/subscription.xml +0 -27
  239. data/server/instances/21/notifications/56d6362782e3acc7ea253a672facb1da/consumer-secret +0 -1
  240. data/server/instances/21/notifications/56d6362782e3acc7ea253a672facb1da/producer-secret +0 -1
  241. data/server/instances/21/notifications/56d6362782e3acc7ea253a672facb1da/subscription.xml +0 -27
  242. data/server/instances/21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6/consumer-secret +0 -1
  243. data/server/instances/21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6/producer-secret +0 -1
  244. data/server/instances/21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6/subscription.xml +0 -27
  245. data/server/instances/21/notifications/67b19bd42e3d88a3664cca39166efc98/consumer-secret +0 -1
  246. data/server/instances/21/notifications/67b19bd42e3d88a3664cca39166efc98/producer-secret +0 -1
  247. data/server/instances/21/notifications/67b19bd42e3d88a3664cca39166efc98/subscription.xml +0 -27
  248. data/server/instances/21/notifications/7418c1c58bd65dd067fd65ebdad110a2/consumer-secret +0 -1
  249. data/server/instances/21/notifications/7418c1c58bd65dd067fd65ebdad110a2/producer-secret +0 -1
  250. data/server/instances/21/notifications/7418c1c58bd65dd067fd65ebdad110a2/subscription.xml +0 -27
  251. data/server/instances/21/notifications/74781f6686f75c5ac11008645aa472a5/consumer-secret +0 -1
  252. data/server/instances/21/notifications/74781f6686f75c5ac11008645aa472a5/producer-secret +0 -1
  253. data/server/instances/21/notifications/74781f6686f75c5ac11008645aa472a5/subscription.xml +0 -27
  254. data/server/instances/21/notifications/75abcf13e693ceb476114967edb98e94/consumer-secret +0 -1
  255. data/server/instances/21/notifications/75abcf13e693ceb476114967edb98e94/producer-secret +0 -1
  256. data/server/instances/21/notifications/75abcf13e693ceb476114967edb98e94/subscription.xml +0 -27
  257. data/server/instances/21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638/consumer-secret +0 -1
  258. data/server/instances/21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638/producer-secret +0 -1
  259. data/server/instances/21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638/subscription.xml +0 -27
  260. data/server/instances/21/notifications/7d95a5e6b349c7087103e919cb274442/consumer-secret +0 -1
  261. data/server/instances/21/notifications/7d95a5e6b349c7087103e919cb274442/producer-secret +0 -1
  262. data/server/instances/21/notifications/7d95a5e6b349c7087103e919cb274442/subscription.xml +0 -27
  263. data/server/instances/21/notifications/8468988ef8de34938584a4165252881b/consumer-secret +0 -1
  264. data/server/instances/21/notifications/8468988ef8de34938584a4165252881b/producer-secret +0 -1
  265. data/server/instances/21/notifications/8468988ef8de34938584a4165252881b/subscription.xml +0 -27
  266. data/server/instances/21/notifications/86b37af6d2dae8403a2c881a8ed77b69/consumer-secret +0 -1
  267. data/server/instances/21/notifications/86b37af6d2dae8403a2c881a8ed77b69/producer-secret +0 -1
  268. data/server/instances/21/notifications/86b37af6d2dae8403a2c881a8ed77b69/subscription.xml +0 -27
  269. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/consumer-secret +0 -1
  270. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/producer-secret +0 -1
  271. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/subscription.xml +0 -27
  272. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/consumer-secret +0 -1
  273. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/producer-secret +0 -1
  274. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/subscription.xml +0 -27
  275. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/consumer-secret +0 -1
  276. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/producer-secret +0 -1
  277. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/subscription.xml +0 -27
  278. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/consumer-secret +0 -1
  279. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/producer-secret +0 -1
  280. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/subscription.xml +0 -27
  281. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/consumer-secret +0 -1
  282. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/producer-secret +0 -1
  283. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/subscription.xml +0 -27
  284. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/consumer-secret +0 -1
  285. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/producer-secret +0 -1
  286. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/subscription.xml +0 -27
  287. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/consumer-secret +0 -1
  288. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/producer-secret +0 -1
  289. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/subscription.xml +0 -27
  290. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/consumer-secret +0 -1
  291. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/producer-secret +0 -1
  292. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/subscription.xml +0 -27
  293. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/consumer-secret +0 -1
  294. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/producer-secret +0 -1
  295. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/subscription.xml +0 -27
  296. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/consumer-secret +0 -1
  297. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/producer-secret +0 -1
  298. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/subscription.xml +0 -27
  299. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/consumer-secret +0 -1
  300. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/producer-secret +0 -1
  301. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/subscription.xml +0 -27
  302. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/consumer-secret +0 -1
  303. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/producer-secret +0 -1
  304. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/subscription.xml +0 -27
  305. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/consumer-secret +0 -1
  306. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/producer-secret +0 -1
  307. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/subscription.xml +0 -27
  308. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/consumer-secret +0 -1
  309. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/producer-secret +0 -1
  310. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/subscription.xml +0 -27
  311. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/consumer-secret +0 -1
  312. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/producer-secret +0 -1
  313. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/subscription.xml +0 -27
  314. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/consumer-secret +0 -1
  315. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/producer-secret +0 -1
  316. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/subscription.xml +0 -27
  317. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/consumer-secret +0 -1
  318. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/producer-secret +0 -1
  319. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/subscription.xml +0 -27
  320. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/consumer-secret +0 -1
  321. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/producer-secret +0 -1
  322. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/subscription.xml +0 -27
  323. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/consumer-secret +0 -1
  324. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/producer-secret +0 -1
  325. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/subscription.xml +0 -27
  326. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/consumer-secret +0 -1
  327. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/producer-secret +0 -1
  328. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/subscription.xml +0 -27
  329. data/server/instances/21/properties.xml +0 -418
  330. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/consumer-secret +0 -1
  331. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/producer-secret +0 -1
  332. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/subscription.xml +0 -27
  333. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/consumer-secret +0 -1
  334. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/producer-secret +0 -1
  335. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/subscription.xml +0 -27
  336. data/server/instances/3/notifications/topics.xml +0 -39
  337. data/server/instances/3/properties.xml +0 -812
  338. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/consumer-secret +0 -1
  339. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/producer-secret +0 -1
  340. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/subscription.xml +0 -27
  341. data/server/instances/4/notifications/topics.xml +0 -39
  342. data/server/instances/4/properties.xml +0 -338
  343. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/consumer-secret +0 -1
  344. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/producer-secret +0 -1
  345. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/subscription.xml +0 -27
  346. data/server/instances/5/notifications/topics.xml +0 -39
  347. data/server/instances/5/properties.xml +0 -812
  348. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/consumer-secret +0 -1
  349. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/producer-secret +0 -1
  350. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/subscription.xml +0 -27
  351. data/server/instances/6/notifications/topics.xml +0 -39
  352. data/server/instances/6/properties.xml +0 -812
  353. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/consumer-secret +0 -1
  354. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/producer-secret +0 -1
  355. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/subscription.xml +0 -27
  356. data/server/instances/7/notifications/topics.xml +0 -39
  357. data/server/instances/7/properties.xml +0 -812
  358. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/consumer-secret +0 -1
  359. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/producer-secret +0 -1
  360. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/subscription.xml +0 -27
  361. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/consumer-secret +0 -1
  362. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/producer-secret +0 -1
  363. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/subscription.xml +0 -27
  364. data/server/instances/8/notifications/topics.xml +0 -39
  365. data/server/instances/8/properties.xml +0 -803
  366. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/consumer-secret +0 -1
  367. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/producer-secret +0 -1
  368. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/subscription.xml +0 -27
  369. data/server/instances/9/notifications/topics.xml +0 -39
  370. data/server/instances/9/properties.xml +0 -1977
  371. data/server/todo.txt +0 -20
@@ -1,39 +0,0 @@
1
- <topics xmlns='http://riddl.org/ns/common-patterns/notifications-producer/1.0'>
2
- <topic id='running'>
3
- <event>activity_calling</event>
4
- <event>activity_failed</event>
5
- <event>activity_manipulating</event>
6
- <event>activity_done</event>
7
- <vote>syncing_before</vote>
8
- <vote>syncing_after</vote>
9
- </topic>
10
- <topic id='properties/position'>
11
- <event>change</event>
12
- </topic>
13
- <topic id='properties/description'>
14
- <event>change</event>
15
- <event>error</event>
16
- </topic>
17
- <topic id='properties/state'>
18
- <event>change</event>
19
- <vote>change</vote>
20
- </topic>
21
- <topic id='properties/status'>
22
- <event>change</event>
23
- </topic>
24
- <topic id='properties/dataelements'>
25
- <event>change</event>
26
- </topic>
27
- <topic id='properties/endpoints'>
28
- <event>change</event>
29
- </topic>
30
- <topic id='properties/handlerwrapper'>
31
- <event>change</event>
32
- </topic>
33
- <topic id='properties/handlers'>
34
- <event>change</event>
35
- <event>error</event>
36
- <event>debug</event>
37
- <event>info</event>
38
- </topic>
39
- </topics>
@@ -1,1989 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <name>RESCUE - Book Movie - Local</name>
3
- <state>stopped</state>
4
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions>
6
- <create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino>after</create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino>
7
- <create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx>after</create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx>
8
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo>at</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo>
9
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__preparations>after</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__preparations>
10
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__preparations>after</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__preparations>
11
- </positions>
12
- <dataelements>
13
- <date>"2013-01-16"</date>
14
- <starting_time>""</starting_time>
15
- <selected_title>""</selected_title>
16
- <title>"Hobbit"</title>
17
- <city>"Vienna"</city>
18
- <hall>null</hall>
19
- <reservation_number>null</reservation_number>
20
- <zip>1100</zip>
21
- <selected_date>null</selected_date>
22
- <selected_cinema>null</selected_cinema>
23
- <result_use_repo_cinemas>{"properties":{"call_find":{"perform_search":{"http://localhost:9290/groups/Cinemas//REST/AugeGottes":{"address":{"street":"Nußdorfer Straße 73","zip":"1090","city":"Vienna","state":"Austria"},"vendor":{"name":"Das Auge Gottes Center Wien","phone":"+43-1-3176344","url":"http://www.cineplexx.at/content/kinos/kinodetails.aspx","mail":"village.wienmitte@villagekinos.at"}},"http://localhost:9290/groups/Cinemas//REST/Apollo":{"address":{"street":"Gumpendorferstraße 63","zip":"1060","city":"Vienna","state":"Austria"},"vendor":{"name":"Apollo - Das Kino Wien","phone":"+43-1-5879651","url":"http://www.cineplexx.at/content/kinos/kinodetails.aspx","mail":"village.apollo@villagekinos.at"}},"http://localhost:9290/groups/Cinemas//Soap/SCNHollywood":{"address":{"street":"Ignaz Köck-Straße 1","zip":"1210","city":"Vienna","state":"Austria"},"vendor":{"name":"SCN HollywoodMegaplex","phone":"+43-1-27166790","url":"http://www.hollywood-megaplex.at/scn/index.html","mail":"office@hollywood-megaplex.at"}},"http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino":{"address":{"street":"Gablenzgasse 1-3","zip":"1150","city":"Vienna","state":"Austria"},"vendor":{"name":"Lugner City Kino","phone":"+43-0810-584637","url":"http://www.lugnerkinocity.at/","mail":"office@lugnerkinocity.at"}},"http://localhost:9290/groups/Cinemas//REST/DonauPlexx":{"address":{"street":"Wagramerstraße 79","zip":"1220","city":"Vienna","state":"Austria"},"vendor":{"name":"Cineplexx Doanuplex","phone":"+43-1-2033322","url":"http://www.cineplexx.at/content/kinos/kinodetails.aspx","mail":"village.donauplex@villagekinos.at"}}}},"call_book":{}}}</result_use_repo_cinemas>
24
- <use_repo_cinemas__show_id>""</use_repo_cinemas__show_id>
25
- <use_repo_cinemas__list>""</use_repo_cinemas__list>
26
- <use_repo_cinemas__res>""</use_repo_cinemas__res>
27
- <use_repo_cinemas__list_merge>""</use_repo_cinemas__list_merge>
28
- <use_repo_cinemas__number_of_shows>""</use_repo_cinemas__number_of_shows>
29
- <use_repo_cinemas__endpoint>""</use_repo_cinemas__endpoint>
30
- <result_use_repo_cinemas__call_find>{"http://localhost:9290/groups/Cinemas//REST/AugeGottes":{},"http://localhost:9290/groups/Cinemas//REST/Apollo":{},"http://localhost:9290/groups/Cinemas//Soap/SCNHollywood":{},"http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino":{},"http://localhost:9290/groups/Cinemas//REST/DonauPlexx":{}}</result_use_repo_cinemas__call_find>
31
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response>
32
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum>"16.01.2013"</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum>
33
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response>
34
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum>"16.01.2013"</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum>
35
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response>[]</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response>
36
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml>[]</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml>
37
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids>[]</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids>
38
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id>
39
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2>
40
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status>
41
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response>
42
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml>[]</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml>
43
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids>[]</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids>
44
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id>
45
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2>
46
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status>
47
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response>
48
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum>
49
- </dataelements>
50
- <endpoints>
51
- <services>http://localhost:9290/groups/Cinemas/</services>
52
- <injection_handler>http://localhost:9291/</injection_handler>
53
- <select>http://localhost:9293/pgwl</select>
54
- <use_repo_cinemas__selected_cinema/>
55
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service>http://www.cineplexx.at/content/kinos/kinoprogramm.aspx</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service>
56
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service>http://www.cineplexx.at/content/kinos/kinoprogramm.aspx</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service>
57
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl>http://scn.hollywood-megaplex.at/sinemaweb/service.asmx?WSDL</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl>
58
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service>http://scn.hollywood-megaplex.at/sinemaweb/service.asmx</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service>
59
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl>http://tickets.lugnerkinocity.at/sinema/service.asmx?WSDL</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl>
60
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service>http://tickets.lugnerkinocity.at/sinema/service.asmx</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service>
61
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service>http://www.cineplexx.at/content/kinos/kinoprogramm.aspx</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service>
62
- </endpoints>
63
- <dsl>activity :collect_input, :call, :select, :method =&gt; "post", :info =&gt; "true", :templates =&gt; [ { :uri =&gt; 'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl' }, { :name =&gt; 'Cinemas-Input' }, { :lang =&gt; 'EN' } ] do |result|
64
-
65
- data.title = result.data.value('title')
66
- data.date = result.data.value('date')
67
- data.city = result.data.value('city')
68
-
69
- end
70
- activity :use_repo_cinemas, :call, :services, :info =&gt; "true", :service =&gt; [ { :serviceoperation =&gt; "search_and_book" }, { :injection_handler =&gt; endpoints.injection_handler } ], :additional_endpoints =&gt; [ { :selector_service =&gt; "select" } ], :parameters =&gt; [ { :title =&gt; data.title }, { :date =&gt; data.date } ]
71
- activity :create_objects_for_use_repo_cinemas, :manipulate do
72
- data.result_use_repo_cinemas = RescueHash.new
73
- data.result_use_repo_cinemas['properties'] = RescueHash.new
74
- data.result_use_repo_cinemas['properties']["call_find"] = RescueHash.new
75
- data.result_use_repo_cinemas['properties']["call_book"] = RescueHash.new
76
- endpoints.use_repo_cinemas__selected_cinema = ""
77
- data.use_repo_cinemas__show_id = ''
78
- data.use_repo_cinemas__list = ''
79
- data.use_repo_cinemas__res = ''
80
- data.use_repo_cinemas__list_merge = ''
81
- data.use_repo_cinemas__number_of_shows = ''
82
- data.use_repo_cinemas__endpoint = ''
83
-
84
- end
85
- activity :use_repo_cinemas__call_find, :call, :services, :service =&gt; [ { :serviceoperation =&gt; "search" }, { :injection_handler =&gt; endpoints.injection_handler } ], :parameters =&gt; [ { :title =&gt; data.title }, { :date =&gt; data.date } ], :'call-oid' =&gt; 'call_find'
86
- activity :create_objects_for_use_repo_cinemas__call_find, :manipulate do
87
- data.result_use_repo_cinemas__call_find = RescueHash.new
88
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"] = RescueHash.new
89
-
90
- end
91
- activity :use_repo_cinemas__call_find__perform_search, :call, :services, :service =&gt; [ { :serviceoperation =&gt; "search" }, { :injection_handler =&gt; endpoints.injection_handler } ], :parameters =&gt; [ { :title =&gt; data.title }, { :date =&gt; data.date } ], :'call-oid' =&gt; 'perform_search'
92
- parallel do
93
- parallel_branch do
94
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo, :manipulate do
95
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
96
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
97
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = ''
98
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = ''
99
- # Filling the properties-object of the service
100
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
101
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"] = RescueHash.new
102
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["street"] = "Gumpendorferstraße 63"
103
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["zip"] = "1060"
104
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["city"] = "Vienna"
105
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["state"] = "Austria"
106
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"] = RescueHash.new
107
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["name"] = "Apollo - Das Kino Wien"
108
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["phone"] = "+43-1-5879651"
109
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
110
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["mail"] = "village.apollo@villagekinos.at"
111
-
112
- end
113
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__preparations, :manipulate do
114
- datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum
115
-
116
- d = data.date
117
- date = Time.parse(d)
118
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
119
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = datum
120
-
121
- end
122
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__Programm, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service, :method =&gt; "get", :parameters =&gt; [ { :id =&gt; 1 }, { :datum =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum }, { :uhrzeit =&gt; "00:00:00" }, { :version =&gt; "" } ], :'call-oid' =&gt; '' do |result|
123
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
124
- if result[0].class.to_s == "Hash"
125
- result[0] = RescueHash.new_from_obj(result[0])
126
- end
127
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = result[0].value('').read
128
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['status'] = result[1]
129
-
130
-
131
- end
132
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__parse_programm, :manipulate do
133
- response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response
134
-
135
- date = data.date
136
- title = data.title
137
- date = Date.parse(date)
138
- str = CGI::unescapeHTML(response)
139
- str.gsub!('&amp;','--amp--')
140
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
141
- offset = str.index("value=\"", offset)
142
- d = str[offset+7..offset+16]
143
-
144
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
145
- count = 1
146
- offset = 0
147
- while (count != 0) do
148
- offset = str.index("div", offset+1)
149
- count = count+1 if str[offset-1].chr == "&lt;"
150
- count = count-1 if str[offset-1].chr == "/"
151
- end
152
- str = str[0..offset-3]
153
- resp = XML::Smart.string(str)
154
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
155
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
156
- show_title = b.find("child::tr/td[1]/a").first.text.strip
157
- show_date = Date.parse(d)
158
- if show_date.eql?(date)
159
- b.find("child::tr/td[3]/div/table").each do |show|
160
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
161
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
162
- show = list.root.add("show")
163
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/Apollo")
164
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
165
- show.add("title", show_title)
166
- show.add("date", show_date.to_s)
167
- show.add("time", s.text)
168
- show.add("hall", show_hall)
169
- end
170
- end
171
- end
172
- end
173
- list = list.root.dump
174
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = response
175
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['list'] = list
176
-
177
- end
178
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo, :manipulate do
179
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service")
180
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response")
181
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum")
182
-
183
- end
184
- end
185
- parallel_branch do
186
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes, :manipulate do
187
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
188
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
189
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = ''
190
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = ''
191
- # Filling the properties-object of the service
192
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
193
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"] = RescueHash.new
194
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["street"] = "Nußdorfer Straße 73"
195
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["zip"] = "1090"
196
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["city"] = "Vienna"
197
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["state"] = "Austria"
198
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"] = RescueHash.new
199
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["name"] = "Das Auge Gottes Center Wien"
200
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["phone"] = "+43-1-3176344"
201
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
202
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["mail"] = "village.wienmitte@villagekinos.at"
203
-
204
- end
205
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__preparations, :manipulate do
206
- datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum
207
-
208
- d = data.date
209
- date = Time.parse(d)
210
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
211
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = datum
212
-
213
- end
214
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__Programm, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service, :method =&gt; "get", :parameters =&gt; [ { :id =&gt; 6 }, { :datum =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum }, { :uhrzeit =&gt; "00:00:00" }, { :version =&gt; "" } ], :'call-oid' =&gt; '' do |result|
215
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
216
- if result[0].class.to_s == "Hash"
217
- result[0] = RescueHash.new_from_obj(result[0])
218
- end
219
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = result[0].value('').read
220
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['status'] = result[1]
221
-
222
-
223
- end
224
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__parse_programm, :manipulate do
225
- response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response
226
-
227
- date = data.date
228
- title = data.title
229
- date = Date.parse(date)
230
- str = CGI::unescapeHTML(response)
231
- str.gsub!('&amp;','--amp--')
232
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
233
- offset = str.index("value=\"", offset)
234
- d = str[offset+7..offset+16]
235
-
236
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
237
- count = 1
238
- offset = 0
239
- while (count != 0) do
240
- offset = str.index("div", offset+1)
241
- count = count+1 if str[offset-1].chr == "&lt;"
242
- count = count-1 if str[offset-1].chr == "/"
243
- end
244
- str = str[0..offset-3]
245
- resp = XML::Smart.string(str)
246
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
247
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
248
- show_title = b.find("child::tr/td[1]/a").first.text.strip
249
- show_date = Date.parse(d)
250
- if show_date.eql?(date)
251
- b.find("child::tr/td[3]/div/table").each do |show|
252
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
253
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
254
- show = list.root.add("show")
255
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/AugeGottes")
256
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
257
- show.add("title", show_title)
258
- show.add("date", show_date.to_s)
259
- show.add("time", s.text)
260
- show.add("hall", show_hall)
261
- end
262
- end
263
- end
264
- end
265
- list = list.root.dump
266
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = response
267
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['list'] = list
268
-
269
- end
270
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes, :manipulate do
271
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service")
272
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response")
273
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum")
274
-
275
- end
276
- end
277
- parallel_branch do
278
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx, :manipulate do
279
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
280
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
281
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = ''
282
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = ''
283
- # Filling the properties-object of the service
284
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
285
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"] = RescueHash.new
286
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["street"] = "Wagramerstraße 79"
287
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["zip"] = "1220"
288
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["city"] = "Vienna"
289
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["state"] = "Austria"
290
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"] = RescueHash.new
291
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["name"] = "Cineplexx Doanuplex"
292
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["phone"] = "+43-1-2033322"
293
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
294
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
295
-
296
- end
297
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__preparations, :manipulate do
298
- datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum
299
-
300
- d = data.date
301
- date = Time.parse(d)
302
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
303
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = datum
304
-
305
- end
306
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__Programm, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service, :method =&gt; "get", :parameters =&gt; [ { :id =&gt; 346 }, { :datum =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum }, { :uhrzeit =&gt; "00:00:00" }, { :version =&gt; "" } ], :'call-oid' =&gt; '' do |result|
307
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
308
- if result[0].class.to_s == "Hash"
309
- result[0] = RescueHash.new_from_obj(result[0])
310
- end
311
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = result[0].value('').read
312
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['status'] = result[1]
313
-
314
-
315
- end
316
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__parse_programm, :manipulate do
317
- response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response
318
-
319
- date = data.date
320
- title = data.title
321
- date = Date.parse(date)
322
- str = CGI::unescapeHTML(response)
323
- str.gsub!('&amp;','--amp--')
324
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
325
- offset = str.index("value=\"", offset)
326
- d = str[offset+7..offset+16]
327
-
328
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
329
- count = 1
330
- offset = 0
331
- while (count != 0) do
332
- offset = str.index("div", offset+1)
333
- count = count+1 if str[offset-1].chr == "&lt;"
334
- count = count-1 if str[offset-1].chr == "/"
335
- end
336
- str = str[0..offset-3]
337
- resp = XML::Smart.string(str)
338
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
339
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
340
- show_title = b.find("child::tr/td[1]/a").first.text.strip
341
- show_date = Date.parse(d)
342
- if show_date.eql?(date)
343
- b.find("child::tr/td[3]/div/table").each do |show|
344
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
345
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
346
- show = list.root.add("show")
347
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/DonauPlexx")
348
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
349
- show.add("title", show_title)
350
- show.add("date", show_date.to_s)
351
- show.add("time", s.text)
352
- show.add("hall", show_hall)
353
- end
354
- end
355
- end
356
- end
357
- list = list.root.dump
358
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = response
359
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['list'] = list
360
-
361
- end
362
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx, :manipulate do
363
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service")
364
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response")
365
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum")
366
-
367
- end
368
- end
369
- parallel_branch do
370
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino, :manipulate do
371
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"] = RescueHash.new
372
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl = "http://tickets.lugnerkinocity.at/sinema/service.asmx?WSDL"
373
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service = "http://tickets.lugnerkinocity.at/sinema/service.asmx"
374
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = ''
375
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = Array.new
376
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = Array.new
377
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = ''
378
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = ''
379
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = ''
380
- # Filling the properties-object of the service
381
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"] = RescueHash.new
382
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"] = RescueHash.new
383
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["street"] = "Gablenzgasse 1-3"
384
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["zip"] = "1150"
385
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["city"] = "Vienna"
386
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["state"] = "Austria"
387
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"] = RescueHash.new
388
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["name"] = "Lugner City Kino"
389
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["phone"] = "+43-0810-584637"
390
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["url"] = "http://www.lugnerkinocity.at/"
391
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["mail"] = "office@lugnerkinocity.at"
392
-
393
- end
394
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service, :soap_operation =&gt; "FilmInfo", :wsdl =&gt; endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl, :parameters =&gt; [ { :SearchItem =&gt; data.title } ], :'call-oid' =&gt; '' do |result|
395
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
396
- if result[0].class.to_s == "Hash"
397
- result[0] = RescueHash.new_from_obj(result[0])
398
- end
399
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
400
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
401
- result[0].find('descendant::tns:FilmInfoResult').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
402
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
403
-
404
-
405
- end
406
- choose do
407
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200)) do
408
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__pares_response, :manipulate do
409
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
410
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
411
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2
412
-
413
- from = data.date
414
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
415
- resp.find("//film/ID").each do |id|
416
- ids &lt;&lt; id.text
417
- end
418
- to = from
419
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
420
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
421
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = to
422
-
423
- end
424
- loop pre_test{(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids.length.&gt;(0))} do
425
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__get_film_id, :manipulate do
426
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
427
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id
428
-
429
- id = ids.pop
430
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
431
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = id
432
-
433
- end
434
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__Schedule, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service, :soap_operation =&gt; "Schedule", :wsdl =&gt; endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl, :parameters =&gt; [ { :FilmID =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id }, { :dTo =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 }, { :dFrom =&gt; data.date } ], :'call-oid' =&gt; '' do |result|
435
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
436
- if result[0].class.to_s == "Hash"
437
- result[0] = RescueHash.new_from_obj(result[0])
438
- end
439
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
440
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
441
- result[0].find('descendant::tns:ScheduleResponse').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
442
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
443
-
444
-
445
- end
446
- choose do
447
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200)) do
448
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__search_shows, :manipulate do
449
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
450
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
451
-
452
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
453
- resp.register_namespace 'tns', "http://sitec.at/Service"
454
- resp.find("descendant::tns:show").each do |show|
455
- xml &lt;&lt; show.dump
456
- end
457
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
458
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
459
-
460
- end
461
- end
462
- otherwise do
463
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__Schedule_Error, :manipulate do
464
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
465
-
466
- puts "An error occured in Schedule_Error"
467
- puts error
468
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
469
-
470
- end
471
- end
472
- end
473
- end
474
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__generate_output, :manipulate do
475
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
476
-
477
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
478
- xml.each do |e|
479
- res = XML::Smart.string(e)
480
- node = list.root.add("show")
481
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/LugnerCityKino")
482
- node.add("show_id", res.find("//id").first.text)
483
- node.add("title", res.find("//filmname").first.text)
484
- node.add("date", res.find("//date").first.text)
485
- node.add("time", res.find("//time").first.text)
486
- node.add("hall", res.find("//hall").first.text)
487
- end
488
- list = list.root.dump
489
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
490
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino']['list'] = list
491
-
492
- end
493
- end
494
- otherwise do
495
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo_Error, :manipulate do
496
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
497
-
498
- puts "An eror occured in FilmInfo_Error"
499
- puts error
500
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
501
-
502
- end
503
- end
504
- end
505
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino, :manipulate do
506
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl")
507
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service")
508
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response")
509
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml")
510
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids")
511
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id")
512
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2")
513
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status")
514
-
515
- end
516
- end
517
- parallel_branch do
518
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood, :manipulate do
519
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
520
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl = "http://scn.hollywood-megaplex.at/sinemaweb/service.asmx?WSDL"
521
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service = "http://scn.hollywood-megaplex.at/sinemaweb/service.asmx"
522
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = ''
523
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = Array.new
524
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = Array.new
525
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = ''
526
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = ''
527
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = ''
528
- # Filling the properties-object of the service
529
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
530
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"] = RescueHash.new
531
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["street"] = "Ignaz Köck-Straße 1"
532
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["zip"] = "1210"
533
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["city"] = "Vienna"
534
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["state"] = "Austria"
535
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"] = RescueHash.new
536
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["name"] = "SCN HollywoodMegaplex"
537
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["phone"] = "+43-1-27166790"
538
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["url"] = "http://www.hollywood-megaplex.at/scn/index.html"
539
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["mail"] = "office@hollywood-megaplex.at"
540
-
541
- end
542
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service, :soap_operation =&gt; "FilmInfo", :wsdl =&gt; endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl, :parameters =&gt; [ { :SearchItem =&gt; data.title } ], :'call-oid' =&gt; '' do |result|
543
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
544
- if result[0].class.to_s == "Hash"
545
- result[0] = RescueHash.new_from_obj(result[0])
546
- end
547
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
548
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
549
- result[0].find('descendant::tns:FilmInfoResult').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
550
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
551
-
552
-
553
- end
554
- choose do
555
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200)) do
556
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__pares_response, :manipulate do
557
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
558
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
559
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2
560
-
561
- from = data.date
562
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
563
- resp.find("//film/ID").each do |id|
564
- ids &lt;&lt; id.text
565
- end
566
- to = from
567
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
568
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
569
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = to
570
-
571
- end
572
- loop pre_test{(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids.length.&gt;(0))} do
573
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__get_film_id, :manipulate do
574
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
575
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id
576
-
577
- id = ids.pop
578
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
579
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = id
580
-
581
- end
582
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__Schedule, :call, :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service, :soap_operation =&gt; "Schedule", :wsdl =&gt; endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl, :parameters =&gt; [ { :FilmID =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id }, { :dTo =&gt; data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 }, { :dFrom =&gt; data.date } ], :'call-oid' =&gt; '' do |result|
583
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
584
- if result[0].class.to_s == "Hash"
585
- result[0] = RescueHash.new_from_obj(result[0])
586
- end
587
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
588
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
589
- result[0].find('descendant::tns:ScheduleResponse').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
590
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
591
-
592
-
593
- end
594
- choose do
595
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200)) do
596
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__search_shows, :manipulate do
597
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
598
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
599
-
600
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
601
- resp.register_namespace 'tns', "http://sitec.at/Service"
602
- resp.find("descendant::tns:show").each do |show|
603
- xml &lt;&lt; show.dump
604
- end
605
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
606
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
607
-
608
- end
609
- end
610
- otherwise do
611
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__Schedule_Error, :manipulate do
612
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
613
-
614
- puts "An error occured in Schedule_Error"
615
- puts error
616
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
617
-
618
- end
619
- end
620
- end
621
- end
622
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__generate_output, :manipulate do
623
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
624
-
625
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
626
- xml.each do |e|
627
- res = XML::Smart.string(e)
628
- node = list.root.add("show")
629
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/SCNHollywood")
630
- node.add("show_id", res.find("//id").first.text)
631
- node.add("title", res.find("//filmname").first.text)
632
- node.add("date", res.find("//date").first.text)
633
- node.add("time", res.find("//time").first.text)
634
- node.add("hall", res.find("//hall").first.text)
635
- end
636
- list = list.root.dump
637
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
638
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/SCNHollywood']['list'] = list
639
-
640
- end
641
- end
642
- otherwise do
643
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo_Error, :manipulate do
644
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
645
-
646
- puts "An eror occured in FilmInfo_Error"
647
- puts error
648
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
649
-
650
- end
651
- end
652
- end
653
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood, :manipulate do
654
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl")
655
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service")
656
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response")
657
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml")
658
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids")
659
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id")
660
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2")
661
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status")
662
-
663
- end
664
- end
665
- end
666
-
667
- activity :manipulate_from_use_repo_cinemas__call_find__perform_search, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
668
- properties = data.result_use_repo_cinemas['properties']["call_find"]
669
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
670
- if result[0].class.to_s == "Hash"
671
- result[0] = RescueHash.new_from_obj(result[0])
672
- end
673
- data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
674
-
675
- end
676
-
677
- activity :manipulate_from_use_repo_cinemas__call_find, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
678
- properties = data.result_use_repo_cinemas['properties']
679
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
680
- if result[0].class.to_s == "Hash"
681
- result[0] = RescueHash.new_from_obj(result[0])
682
- end
683
- data.use_repo_cinemas__list = result[0].value('list')
684
-
685
- end
686
- activity :remove_objects_of_use_repo_cinemas__call_find, :manipulate do
687
- data.delete(:"result_use_repo_cinemas__call_find")
688
-
689
- end
690
- activity :use_repo_cinemas__merge_result, :manipulate do
691
- list = data.use_repo_cinemas__list
692
- m_list = data.use_repo_cinemas__list_merge
693
- nos = data.use_repo_cinemas__number_of_shows
694
-
695
- title = data.title
696
- date = data.date
697
- xml = XML::Smart.string("&lt;list_of_shows/&gt;")
698
- if list.class == Array
699
- list.each do |v|
700
- l = XML::Smart.string(v)
701
- xml.root.add(l.find("//show"))
702
- end
703
- elsif list.class == String
704
- l = XML::Smart.string(list)
705
- xml.root.add(l.find("//show"))
706
- else
707
- raise "Unexpected class of return-value - class: #{list.class}"
708
- end
709
- m_list = xml.root.dump
710
- nos = xml.root.children.length
711
- data.use_repo_cinemas__list = list
712
- data.use_repo_cinemas__list_merge = m_list
713
- data.use_repo_cinemas__number_of_shows = nos
714
-
715
- end
716
- choose do
717
- alternative (data.use_repo_cinemas__number_of_shows.&gt;(0)) do
718
- activity :use_repo_cinemas__perform_select, :call, :select, :templates =&gt; [ { :uri =&gt; 'http://localhost:9290/groups/Cinemas//operations/search_and_book/templates/perform_select' }, { :name =&gt; 'Select_Show' }, { :lang =&gt; 'EN' } ], :method =&gt; "post", :info =&gt; "true", :parameters =&gt; [ { :data =&gt; data.use_repo_cinemas__list_merge } ], :'call-oid' =&gt; 'perform_select' do |result|
719
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
720
- if result[0].class.to_s == "Hash"
721
- result[0] = RescueHash.new_from_obj(result[0])
722
- end
723
- data.use_repo_cinemas__show_id = result[0].value('show_id')
724
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
725
- if result[0].class.to_s == "Hash"
726
- result[0] = RescueHash.new_from_obj(result[0])
727
- end
728
- data.use_repo_cinemas__endpoint = result[0].value('target')
729
- data.result_use_repo_cinemas['status'] = result[1]
730
-
731
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
732
- if result[0].class.to_s == "Hash"
733
- result[0] = RescueHash.new_from_obj(result[0])
734
- end
735
- data.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
736
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
737
- if result[0].class.to_s == "Hash"
738
- result[0] = RescueHash.new_from_obj(result[0])
739
- end
740
- data.result_use_repo_cinemas['selected_date'] = result[0].value('date')
741
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
742
- if result[0].class.to_s == "Hash"
743
- result[0] = RescueHash.new_from_obj(result[0])
744
- end
745
- data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
746
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
747
- if result[0].class.to_s == "Hash"
748
- result[0] = RescueHash.new_from_obj(result[0])
749
- end
750
- data.result_use_repo_cinemas['hall'] = result[0].value('hall')
751
-
752
- end
753
- activity :use_repo_cinemas__set_selected_endpoint, :manipulate do
754
- ep = data.use_repo_cinemas__endpoint
755
- selected = endpoints.use_repo_cinemas__selected_cinema
756
-
757
- selected = ep
758
- data.use_repo_cinemas__endpoint = ep
759
- endpoints.use_repo_cinemas__selected_cinema = selected
760
-
761
- end
762
- activity :use_repo_cinemas__call_book, :call, :use_repo_cinemas__selected_cinema, :service =&gt; [ { :serviceoperation =&gt; "book" }, { :injection_handler =&gt; endpoints.injection_handler } ], :parameters =&gt; [ { :show_id =&gt; data.use_repo_cinemas__show_id } ], :'call-oid' =&gt; 'call_book' do |result|
763
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
764
- if result[0].class.to_s == "Hash"
765
- result[0] = RescueHash.new_from_obj(result[0])
766
- end
767
- data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
768
-
769
- end
770
- activity :use_repo_cinemas__set_status_success, :manipulate do
771
-
772
- status = 200
773
- data.result_use_repo_cinemas['status'] = status
774
-
775
- end
776
- end
777
- otherwise do
778
- activity :use_repo_cinemas__set_status_failed, :manipulate do
779
-
780
- status = 404
781
- data.result_use_repo_cinemas['status'] = status
782
-
783
- end
784
- end
785
- end
786
-
787
- activity :manipulate_from_use_repo_cinemas, :manipulate, nil,data.result_use_repo_cinemas do |result|
788
- properties = data.result_use_repo_cinemas['properties']
789
-
790
- res = result[0]
791
- if res['status'] == 200
792
- # Computing service responses
793
- data.reservation_number = res['reservation_id']
794
- data.starting_time = res['starting_time']
795
- data.selected_title = res['movie_title']
796
- data.selected_date = res['selected_date']
797
- data.hall = res['hall']
798
- # Computing properties of executed services
799
- perf_book = properties['call_book']['perform_book']
800
- data.selected_cinema = " #{perf_book.values[0]['vendor']['name']}\n#{perf_book.values[0]['address']['street']}\n#{perf_book.values[0]['address']['zip']} #{perf_book.values[0]['address']['city']}"
801
- end
802
-
803
- end
804
- activity :remove_objects_of_use_repo_cinemas, :manipulate do
805
- data.delete(:"result_use_repo_cinemas")
806
- data.delete(:"properties_use_repo_cinemas")
807
- endpoints.delete(:"use_repo_cinemas__selected_cinema")
808
- data.delete(:"use_repo_cinemas__show_id")
809
- data.delete(:"use_repo_cinemas__list")
810
- data.delete(:"use_repo_cinemas__res")
811
- data.delete(:"use_repo_cinemas__list_merge")
812
- data.delete(:"use_repo_cinemas__number_of_shows")
813
- data.delete(:"use_repo_cinemas__endpoint")
814
-
815
- end
816
- activity :confirm, :call, :select, :method =&gt; "post", :info =&gt; "true", :templates =&gt; [ { :uri =&gt; 'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl' }, { :name =&gt; 'Cinemas-Output' }, { :lang =&gt; 'EN' } ], :parameters =&gt; [ { :title =&gt; data.selected_title }, { :date =&gt; data.selected_date }, { :time =&gt; data.starting_time }, { :hall =&gt; data.hall }, { :res_nr =&gt; data.reservation_number }, { :cinema =&gt; data.selected_cinema } ]
817
- </dsl>
818
- <status>
819
- <id>0</id>
820
- <message>undefined</message>
821
- </status>
822
- <description>
823
- <description xmlns="http://cpee.org/ns/description/1.0">
824
- <call id="collect_input" endpoint="select">
825
- <parameters>
826
- <method>post</method>
827
- <info>true</info>
828
- <templates>
829
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
830
- <name>'Cinemas-Input'</name>
831
- <lang>'EN'</lang>
832
- </templates>
833
- </parameters>
834
- <manipulate output="result">
835
- data.title = result.data.value('title')
836
- data.date = result.data.value('date')
837
- data.city = result.data.value('city')
838
- </manipulate>
839
- </call>
840
- <call id="use_repo_cinemas" endpoint="services">
841
- <constraints>
842
- <constraint xpath="address/city" comparator="==" variable="city"/>
843
- </constraints>
844
- <parameters>
845
- <!--{{{-->
846
- <info>true</info>
847
- <service>
848
- <serviceoperation>"search_and_book"</serviceoperation>
849
- <injection_handler>endpoints.injection_handler</injection_handler>
850
- </service>
851
- <additional_endpoints>
852
- <selector_service>"select"</selector_service>
853
- </additional_endpoints>
854
- <parameters>
855
- <title>data.title</title>
856
- <date>data.date</date>
857
- </parameters>
858
- </parameters>
859
- <!--}}}-->
860
- </call>
861
- <group type="injection" source="use_repo_cinemas" serviceoperation="&quot;search_and_book&quot;" result="data.result_use_repo_cinemas" properties="data.result_use_repo_cinemas['properties']">
862
- <manipulate id="create_objects_for_use_repo_cinemas" generated="true"> data.result_use_repo_cinemas = RescueHash.new
863
- data.result_use_repo_cinemas['properties'] = RescueHash.new
864
- data.result_use_repo_cinemas['properties']["call_find"] = RescueHash.new
865
- data.result_use_repo_cinemas['properties']["call_book"] = RescueHash.new
866
- endpoints.use_repo_cinemas__selected_cinema = ""
867
- data.use_repo_cinemas__show_id = ''
868
- data.use_repo_cinemas__list = ''
869
- data.use_repo_cinemas__res = ''
870
- data.use_repo_cinemas__list_merge = ''
871
- data.use_repo_cinemas__number_of_shows = ''
872
- data.use_repo_cinemas__endpoint = ''
873
- </manipulate>
874
- <constraints>
875
- <constraint xpath="address/city" comparator="==" variable="city"/>
876
- </constraints>
877
- <call id="use_repo_cinemas__call_find" endpoint="services" oid="call_find">
878
- <parameters>
879
- <service>
880
- <serviceoperation>"search"</serviceoperation>
881
- <injection_handler>endpoints.injection_handler</injection_handler>
882
- </service>
883
- <parameters>
884
- <title>data.title</title>
885
- <date>data.date</date>
886
- </parameters>
887
- </parameters>
888
- </call>
889
- <group type="injection" source="use_repo_cinemas__call_find" serviceoperation="&quot;search&quot;" result="data.result_use_repo_cinemas__call_find" properties="data.result_use_repo_cinemas['properties'][&quot;call_find&quot;]">
890
- <manipulate id="create_objects_for_use_repo_cinemas__call_find" generated="true"> data.result_use_repo_cinemas__call_find = RescueHash.new
891
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"] = RescueHash.new
892
- </manipulate>
893
- <call id="use_repo_cinemas__call_find__perform_search" endpoint="services" oid="perform_search">
894
- <parameters>
895
- <service>
896
- <serviceoperation>"search"</serviceoperation>
897
- <injection_handler>endpoints.injection_handler</injection_handler>
898
- </service>
899
- <parameters>
900
- <title>data.title</title>
901
- <date>data.date</date>
902
- </parameters>
903
- </parameters>
904
- </call>
905
- <group type="injection" source="use_repo_cinemas__call_find__perform_search" serviceoperation="&quot;search&quot;" properties="data.result_use_repo_cinemas['properties'][&quot;call_find&quot;][&quot;perform_search&quot;]">
906
- <parallel generated="true">
907
- <parallel_branch generated="true">
908
- <manipulate id="create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo" generated="true"> data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
909
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
910
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = ''
911
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = ''
912
- # Filling the properties-object of the service
913
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
914
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"] = RescueHash.new
915
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["street"] = "Gumpendorferstraße 63"
916
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["zip"] = "1060"
917
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["city"] = "Vienna"
918
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["state"] = "Austria"
919
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"] = RescueHash.new
920
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["name"] = "Apollo - Das Kino Wien"
921
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["phone"] = "+43-1-5879651"
922
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
923
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["mail"] = "village.apollo@villagekinos.at"
924
- </manipulate>
925
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__preparations">datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum
926
-
927
- d = data.date
928
- date = Time.parse(d)
929
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
930
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = datum
931
- </manipulate>
932
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__Programm" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service" oid="">
933
- <parameters>
934
- <method>get</method>
935
- <parameters>
936
- <id>1</id>
937
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum</datum>
938
- <uhrzeit>"00:00:00"</uhrzeit>
939
- <version>""</version>
940
- </parameters>
941
- </parameters>
942
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
943
- if result[0].class.to_s == "Hash"
944
- result[0] = RescueHash.new_from_obj(result[0])
945
- end
946
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = result[0].value('').read
947
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['status'] = result[1]
948
-
949
- </manipulate>
950
- </call>
951
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__parse_programm">response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response
952
-
953
- date = data.date
954
- title = data.title
955
- date = Date.parse(date)
956
- str = CGI::unescapeHTML(response)
957
- str.gsub!('&amp;','--amp--')
958
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
959
- offset = str.index("value=\"", offset)
960
- d = str[offset+7..offset+16]
961
-
962
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
963
- count = 1
964
- offset = 0
965
- while (count != 0) do
966
- offset = str.index("div", offset+1)
967
- count = count+1 if str[offset-1].chr == "&lt;"
968
- count = count-1 if str[offset-1].chr == "/"
969
- end
970
- str = str[0..offset-3]
971
- resp = XML::Smart.string(str)
972
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
973
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
974
- show_title = b.find("child::tr/td[1]/a").first.text.strip
975
- show_date = Date.parse(d)
976
- if show_date.eql?(date)
977
- b.find("child::tr/td[3]/div/table").each do |show|
978
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
979
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
980
- show = list.root.add("show")
981
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/Apollo")
982
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
983
- show.add("title", show_title)
984
- show.add("date", show_date.to_s)
985
- show.add("time", s.text)
986
- show.add("hall", show_hall)
987
- end
988
- end
989
- end
990
- end
991
- list = list.root.dump
992
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = response
993
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['list'] = list
994
- </manipulate>
995
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo" generated="true"> endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service")
996
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response")
997
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum")
998
- </manipulate>
999
- </parallel_branch>
1000
- <parallel_branch generated="true">
1001
- <manipulate id="create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes" generated="true"> data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
1002
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
1003
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = ''
1004
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = ''
1005
- # Filling the properties-object of the service
1006
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
1007
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"] = RescueHash.new
1008
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["street"] = "Nußdorfer Straße 73"
1009
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["zip"] = "1090"
1010
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["city"] = "Vienna"
1011
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["state"] = "Austria"
1012
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"] = RescueHash.new
1013
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["name"] = "Das Auge Gottes Center Wien"
1014
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["phone"] = "+43-1-3176344"
1015
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
1016
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["mail"] = "village.wienmitte@villagekinos.at"
1017
- </manipulate>
1018
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__preparations">datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum
1019
-
1020
- d = data.date
1021
- date = Time.parse(d)
1022
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
1023
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = datum
1024
- </manipulate>
1025
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__Programm" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service" oid="">
1026
- <parameters>
1027
- <method>get</method>
1028
- <parameters>
1029
- <id>6</id>
1030
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum</datum>
1031
- <uhrzeit>"00:00:00"</uhrzeit>
1032
- <version>""</version>
1033
- </parameters>
1034
- </parameters>
1035
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1036
- if result[0].class.to_s == "Hash"
1037
- result[0] = RescueHash.new_from_obj(result[0])
1038
- end
1039
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = result[0].value('').read
1040
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['status'] = result[1]
1041
-
1042
- </manipulate>
1043
- </call>
1044
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__parse_programm">response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response
1045
-
1046
- date = data.date
1047
- title = data.title
1048
- date = Date.parse(date)
1049
- str = CGI::unescapeHTML(response)
1050
- str.gsub!('&amp;','--amp--')
1051
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
1052
- offset = str.index("value=\"", offset)
1053
- d = str[offset+7..offset+16]
1054
-
1055
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
1056
- count = 1
1057
- offset = 0
1058
- while (count != 0) do
1059
- offset = str.index("div", offset+1)
1060
- count = count+1 if str[offset-1].chr == "&lt;"
1061
- count = count-1 if str[offset-1].chr == "/"
1062
- end
1063
- str = str[0..offset-3]
1064
- resp = XML::Smart.string(str)
1065
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1066
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
1067
- show_title = b.find("child::tr/td[1]/a").first.text.strip
1068
- show_date = Date.parse(d)
1069
- if show_date.eql?(date)
1070
- b.find("child::tr/td[3]/div/table").each do |show|
1071
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
1072
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
1073
- show = list.root.add("show")
1074
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/AugeGottes")
1075
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
1076
- show.add("title", show_title)
1077
- show.add("date", show_date.to_s)
1078
- show.add("time", s.text)
1079
- show.add("hall", show_hall)
1080
- end
1081
- end
1082
- end
1083
- end
1084
- list = list.root.dump
1085
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = response
1086
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['list'] = list
1087
- </manipulate>
1088
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes" generated="true"> endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service")
1089
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response")
1090
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum")
1091
- </manipulate>
1092
- </parallel_branch>
1093
- <parallel_branch generated="true">
1094
- <manipulate id="create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx" generated="true"> data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
1095
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
1096
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = ''
1097
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = ''
1098
- # Filling the properties-object of the service
1099
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
1100
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"] = RescueHash.new
1101
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["street"] = "Wagramerstraße 79"
1102
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["zip"] = "1220"
1103
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["city"] = "Vienna"
1104
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["state"] = "Austria"
1105
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"] = RescueHash.new
1106
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["name"] = "Cineplexx Doanuplex"
1107
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["phone"] = "+43-1-2033322"
1108
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
1109
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
1110
- </manipulate>
1111
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__preparations">datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum
1112
-
1113
- d = data.date
1114
- date = Time.parse(d)
1115
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
1116
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = datum
1117
- </manipulate>
1118
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__Programm" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service" oid="">
1119
- <parameters>
1120
- <method>get</method>
1121
- <parameters>
1122
- <id>346</id>
1123
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum</datum>
1124
- <uhrzeit>"00:00:00"</uhrzeit>
1125
- <version>""</version>
1126
- </parameters>
1127
- </parameters>
1128
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1129
- if result[0].class.to_s == "Hash"
1130
- result[0] = RescueHash.new_from_obj(result[0])
1131
- end
1132
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = result[0].value('').read
1133
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['status'] = result[1]
1134
-
1135
- </manipulate>
1136
- </call>
1137
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__parse_programm">response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response
1138
-
1139
- date = data.date
1140
- title = data.title
1141
- date = Date.parse(date)
1142
- str = CGI::unescapeHTML(response)
1143
- str.gsub!('&amp;','--amp--')
1144
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
1145
- offset = str.index("value=\"", offset)
1146
- d = str[offset+7..offset+16]
1147
-
1148
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
1149
- count = 1
1150
- offset = 0
1151
- while (count != 0) do
1152
- offset = str.index("div", offset+1)
1153
- count = count+1 if str[offset-1].chr == "&lt;"
1154
- count = count-1 if str[offset-1].chr == "/"
1155
- end
1156
- str = str[0..offset-3]
1157
- resp = XML::Smart.string(str)
1158
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1159
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
1160
- show_title = b.find("child::tr/td[1]/a").first.text.strip
1161
- show_date = Date.parse(d)
1162
- if show_date.eql?(date)
1163
- b.find("child::tr/td[3]/div/table").each do |show|
1164
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
1165
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
1166
- show = list.root.add("show")
1167
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/DonauPlexx")
1168
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
1169
- show.add("title", show_title)
1170
- show.add("date", show_date.to_s)
1171
- show.add("time", s.text)
1172
- show.add("hall", show_hall)
1173
- end
1174
- end
1175
- end
1176
- end
1177
- list = list.root.dump
1178
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = response
1179
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['list'] = list
1180
- </manipulate>
1181
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx" generated="true"> endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service")
1182
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response")
1183
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum")
1184
- </manipulate>
1185
- </parallel_branch>
1186
- <parallel_branch generated="true">
1187
- <manipulate id="create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino" generated="true"> data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"] = RescueHash.new
1188
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl = "http://tickets.lugnerkinocity.at/sinema/service.asmx?WSDL"
1189
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service = "http://tickets.lugnerkinocity.at/sinema/service.asmx"
1190
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = ''
1191
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = Array.new
1192
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = Array.new
1193
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = ''
1194
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = ''
1195
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = ''
1196
- # Filling the properties-object of the service
1197
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"] = RescueHash.new
1198
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"] = RescueHash.new
1199
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["street"] = "Gablenzgasse 1-3"
1200
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["zip"] = "1150"
1201
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["city"] = "Vienna"
1202
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["state"] = "Austria"
1203
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"] = RescueHash.new
1204
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["name"] = "Lugner City Kino"
1205
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["phone"] = "+43-0810-584637"
1206
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["url"] = "http://www.lugnerkinocity.at/"
1207
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["mail"] = "office@lugnerkinocity.at"
1208
- </manipulate>
1209
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service" oid="">
1210
- <parameters>
1211
- <soap_operation>FilmInfo</soap_operation>
1212
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl</wsdl>
1213
- <parameters>
1214
- <SearchItem>data.title</SearchItem>
1215
- </parameters>
1216
- </parameters>
1217
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1218
- if result[0].class.to_s == "Hash"
1219
- result[0] = RescueHash.new_from_obj(result[0])
1220
- end
1221
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
1222
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
1223
- result[0].find('descendant::tns:FilmInfoResult').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
1224
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
1225
-
1226
- </manipulate>
1227
- </call>
1228
- <choose>
1229
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200))">
1230
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__pares_response">soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
1231
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
1232
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2
1233
-
1234
- from = data.date
1235
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1236
- resp.find("//film/ID").each do |id|
1237
- ids &lt;&lt; id.text
1238
- end
1239
- to = from
1240
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
1241
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
1242
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = to
1243
- </manipulate>
1244
- <loop pre_test="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids.length.&gt;(0))">
1245
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__get_film_id">ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
1246
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id
1247
-
1248
- id = ids.pop
1249
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
1250
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = id
1251
- </manipulate>
1252
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__Schedule" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service" oid="">
1253
- <parameters>
1254
- <soap_operation>Schedule</soap_operation>
1255
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl</wsdl>
1256
- <parameters>
1257
- <FilmID>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id</FilmID>
1258
- <dTo>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2</dTo>
1259
- <dFrom>data.date</dFrom>
1260
- </parameters>
1261
- </parameters>
1262
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1263
- if result[0].class.to_s == "Hash"
1264
- result[0] = RescueHash.new_from_obj(result[0])
1265
- end
1266
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
1267
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
1268
- result[0].find('descendant::tns:ScheduleResponse').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
1269
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
1270
-
1271
- </manipulate>
1272
- </call>
1273
- <choose>
1274
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200))">
1275
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__search_shows">soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
1276
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
1277
-
1278
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1279
- resp.register_namespace 'tns', "http://sitec.at/Service"
1280
- resp.find("descendant::tns:show").each do |show|
1281
- xml &lt;&lt; show.dump
1282
- end
1283
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
1284
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
1285
- </manipulate>
1286
- </alternative>
1287
- <otherwise>
1288
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__Schedule_Error">error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
1289
-
1290
- puts "An error occured in Schedule_Error"
1291
- puts error
1292
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
1293
- </manipulate>
1294
- </otherwise>
1295
- </choose>
1296
- </loop>
1297
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__generate_output">xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
1298
-
1299
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1300
- xml.each do |e|
1301
- res = XML::Smart.string(e)
1302
- node = list.root.add("show")
1303
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/LugnerCityKino")
1304
- node.add("show_id", res.find("//id").first.text)
1305
- node.add("title", res.find("//filmname").first.text)
1306
- node.add("date", res.find("//date").first.text)
1307
- node.add("time", res.find("//time").first.text)
1308
- node.add("hall", res.find("//hall").first.text)
1309
- end
1310
- list = list.root.dump
1311
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
1312
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino']['list'] = list
1313
- </manipulate>
1314
- </alternative>
1315
- <otherwise>
1316
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo_Error">error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
1317
-
1318
- puts "An eror occured in FilmInfo_Error"
1319
- puts error
1320
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
1321
- </manipulate>
1322
- </otherwise>
1323
- </choose>
1324
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino" generated="true"> endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl")
1325
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service")
1326
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response")
1327
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml")
1328
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids")
1329
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id")
1330
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2")
1331
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status")
1332
- </manipulate>
1333
- </parallel_branch>
1334
- <parallel_branch generated="true">
1335
- <manipulate id="create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood" generated="true"> data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
1336
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl = "http://scn.hollywood-megaplex.at/sinemaweb/service.asmx?WSDL"
1337
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service = "http://scn.hollywood-megaplex.at/sinemaweb/service.asmx"
1338
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = ''
1339
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = Array.new
1340
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = Array.new
1341
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = ''
1342
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = ''
1343
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = ''
1344
- # Filling the properties-object of the service
1345
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
1346
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"] = RescueHash.new
1347
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["street"] = "Ignaz Köck-Straße 1"
1348
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["zip"] = "1210"
1349
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["city"] = "Vienna"
1350
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["state"] = "Austria"
1351
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"] = RescueHash.new
1352
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["name"] = "SCN HollywoodMegaplex"
1353
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["phone"] = "+43-1-27166790"
1354
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["url"] = "http://www.hollywood-megaplex.at/scn/index.html"
1355
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["mail"] = "office@hollywood-megaplex.at"
1356
- </manipulate>
1357
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service" oid="">
1358
- <parameters>
1359
- <soap_operation>FilmInfo</soap_operation>
1360
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl</wsdl>
1361
- <parameters>
1362
- <SearchItem>data.title</SearchItem>
1363
- </parameters>
1364
- </parameters>
1365
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1366
- if result[0].class.to_s == "Hash"
1367
- result[0] = RescueHash.new_from_obj(result[0])
1368
- end
1369
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
1370
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
1371
- result[0].find('descendant::tns:FilmInfoResult').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
1372
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
1373
-
1374
- </manipulate>
1375
- </call>
1376
- <choose>
1377
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200))">
1378
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__pares_response">soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
1379
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
1380
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2
1381
-
1382
- from = data.date
1383
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1384
- resp.find("//film/ID").each do |id|
1385
- ids &lt;&lt; id.text
1386
- end
1387
- to = from
1388
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
1389
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
1390
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = to
1391
- </manipulate>
1392
- <loop pre_test="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids.length.&gt;(0))">
1393
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__get_film_id">ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
1394
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id
1395
-
1396
- id = ids.pop
1397
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
1398
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = id
1399
- </manipulate>
1400
- <call id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__Schedule" endpoint="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service" oid="">
1401
- <parameters>
1402
- <soap_operation>Schedule</soap_operation>
1403
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl</wsdl>
1404
- <parameters>
1405
- <FilmID>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id</FilmID>
1406
- <dTo>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2</dTo>
1407
- <dFrom>data.date</dFrom>
1408
- </parameters>
1409
- </parameters>
1410
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1411
- if result[0].class.to_s == "Hash"
1412
- result[0] = RescueHash.new_from_obj(result[0])
1413
- end
1414
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
1415
- result[0].register_namespace 'tns', 'http://sitec.at/Service'
1416
- result[0].find('descendant::tns:ScheduleResponse').each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
1417
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
1418
-
1419
- </manipulate>
1420
- </call>
1421
- <choose>
1422
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200))">
1423
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__search_shows">soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
1424
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
1425
-
1426
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1427
- resp.register_namespace 'tns', "http://sitec.at/Service"
1428
- resp.find("descendant::tns:show").each do |show|
1429
- xml &lt;&lt; show.dump
1430
- end
1431
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
1432
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
1433
- </manipulate>
1434
- </alternative>
1435
- <otherwise>
1436
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__Schedule_Error">error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
1437
-
1438
- puts "An error occured in Schedule_Error"
1439
- puts error
1440
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
1441
- </manipulate>
1442
- </otherwise>
1443
- </choose>
1444
- </loop>
1445
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__generate_output">xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
1446
-
1447
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1448
- xml.each do |e|
1449
- res = XML::Smart.string(e)
1450
- node = list.root.add("show")
1451
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/SCNHollywood")
1452
- node.add("show_id", res.find("//id").first.text)
1453
- node.add("title", res.find("//filmname").first.text)
1454
- node.add("date", res.find("//date").first.text)
1455
- node.add("time", res.find("//time").first.text)
1456
- node.add("hall", res.find("//hall").first.text)
1457
- end
1458
- list = list.root.dump
1459
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
1460
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/SCNHollywood']['list'] = list
1461
- </manipulate>
1462
- </alternative>
1463
- <otherwise>
1464
- <manipulate id="use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo_Error">error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
1465
-
1466
- puts "An eror occured in FilmInfo_Error"
1467
- puts error
1468
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
1469
- </manipulate>
1470
- </otherwise>
1471
- </choose>
1472
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood" generated="true"> endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl")
1473
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service")
1474
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response")
1475
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml")
1476
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids")
1477
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id")
1478
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2")
1479
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status")
1480
- </manipulate>
1481
- </parallel_branch>
1482
- </parallel>
1483
- </group>
1484
- <manipulate output="result" id="manipulate_from_use_repo_cinemas__call_find__perform_search" data="data.result_use_repo_cinemas__call_find" properties="data.result_use_repo_cinemas['properties'][&quot;call_find&quot;]">properties = data.result_use_repo_cinemas['properties']["call_find"]
1485
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1486
- if result[0].class.to_s == "Hash"
1487
- result[0] = RescueHash.new_from_obj(result[0])
1488
- end
1489
- data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
1490
- </manipulate>
1491
- </group>
1492
- <manipulate output="result" id="manipulate_from_use_repo_cinemas__call_find" data="data.result_use_repo_cinemas__call_find" properties="data.result_use_repo_cinemas['properties']">properties = data.result_use_repo_cinemas['properties']
1493
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1494
- if result[0].class.to_s == "Hash"
1495
- result[0] = RescueHash.new_from_obj(result[0])
1496
- end
1497
- data.use_repo_cinemas__list = result[0].value('list')
1498
- </manipulate>
1499
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find" generated="true"> data.delete(:"result_use_repo_cinemas__call_find")
1500
- </manipulate>
1501
- <manipulate id="use_repo_cinemas__merge_result" oid="merge_result">list = data.use_repo_cinemas__list
1502
- m_list = data.use_repo_cinemas__list_merge
1503
- nos = data.use_repo_cinemas__number_of_shows
1504
-
1505
- title = data.title
1506
- date = data.date
1507
- xml = XML::Smart.string("&lt;list_of_shows/&gt;")
1508
- if list.class == Array
1509
- list.each do |v|
1510
- l = XML::Smart.string(v)
1511
- xml.root.add(l.find("//show"))
1512
- end
1513
- elsif list.class == String
1514
- l = XML::Smart.string(list)
1515
- xml.root.add(l.find("//show"))
1516
- else
1517
- raise "Unexpected class of return-value - class: #{list.class}"
1518
- end
1519
- m_list = xml.root.dump
1520
- nos = xml.root.children.length
1521
- data.use_repo_cinemas__list = list
1522
- data.use_repo_cinemas__list_merge = m_list
1523
- data.use_repo_cinemas__number_of_shows = nos
1524
- </manipulate>
1525
- <choose>
1526
- <alternative condition="(data.use_repo_cinemas__number_of_shows.&gt;(0))">
1527
- <call id="use_repo_cinemas__perform_select" endpoint="select" oid="perform_select">
1528
- <parameters>
1529
- <templates>
1530
- <uri>'http://localhost:9290/groups/Cinemas//operations/search_and_book/templates/perform_select'</uri>
1531
- <name>'Select_Show'</name>
1532
- <lang>'EN'</lang>
1533
- </templates>
1534
- <method>post</method>
1535
- <info>true</info>
1536
- <parameters>
1537
- <data>data.use_repo_cinemas__list_merge</data>
1538
- </parameters>
1539
- </parameters>
1540
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1541
- if result[0].class.to_s == "Hash"
1542
- result[0] = RescueHash.new_from_obj(result[0])
1543
- end
1544
- data.use_repo_cinemas__show_id = result[0].value('show_id')
1545
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1546
- if result[0].class.to_s == "Hash"
1547
- result[0] = RescueHash.new_from_obj(result[0])
1548
- end
1549
- data.use_repo_cinemas__endpoint = result[0].value('target')
1550
- data.result_use_repo_cinemas['status'] = result[1]
1551
-
1552
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1553
- if result[0].class.to_s == "Hash"
1554
- result[0] = RescueHash.new_from_obj(result[0])
1555
- end
1556
- data.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
1557
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1558
- if result[0].class.to_s == "Hash"
1559
- result[0] = RescueHash.new_from_obj(result[0])
1560
- end
1561
- data.result_use_repo_cinemas['selected_date'] = result[0].value('date')
1562
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1563
- if result[0].class.to_s == "Hash"
1564
- result[0] = RescueHash.new_from_obj(result[0])
1565
- end
1566
- data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
1567
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1568
- if result[0].class.to_s == "Hash"
1569
- result[0] = RescueHash.new_from_obj(result[0])
1570
- end
1571
- data.result_use_repo_cinemas['hall'] = result[0].value('hall')
1572
- </manipulate>
1573
- </call>
1574
- <manipulate id="use_repo_cinemas__set_selected_endpoint" oid="set_selected_endpoint">ep = data.use_repo_cinemas__endpoint
1575
- selected = endpoints.use_repo_cinemas__selected_cinema
1576
-
1577
- selected = ep
1578
- data.use_repo_cinemas__endpoint = ep
1579
- endpoints.use_repo_cinemas__selected_cinema = selected
1580
- </manipulate>
1581
- <call id="use_repo_cinemas__call_book" endpoint="use_repo_cinemas__selected_cinema" oid="call_book">
1582
- <parameters>
1583
- <service>
1584
- <serviceoperation>"book"</serviceoperation>
1585
- <injection_handler>endpoints.injection_handler</injection_handler>
1586
- </service>
1587
- <parameters>
1588
- <show_id>data.use_repo_cinemas__show_id</show_id>
1589
- </parameters>
1590
- </parameters>
1591
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1592
- if result[0].class.to_s == "Hash"
1593
- result[0] = RescueHash.new_from_obj(result[0])
1594
- end
1595
- data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
1596
- </manipulate>
1597
- </call>
1598
- <manipulate id="use_repo_cinemas__set_status_success" oid="set_status_success">
1599
- status = 200
1600
- data.result_use_repo_cinemas['status'] = status
1601
- </manipulate>
1602
- </alternative>
1603
- <otherwise>
1604
- <manipulate id="use_repo_cinemas__set_status_failed" oid="set_status_failed">
1605
- status = 404
1606
- data.result_use_repo_cinemas['status'] = status
1607
- </manipulate>
1608
- </otherwise>
1609
- </choose>
1610
- </group>
1611
- <manipulate output="result" id="manipulate_from_use_repo_cinemas" data="data.result_use_repo_cinemas" properties="data.result_use_repo_cinemas['properties']">properties = data.result_use_repo_cinemas['properties']
1612
-
1613
- res = result[0]
1614
- if res['status'] == 200
1615
- # Computing service responses
1616
- data.reservation_number = res['reservation_id']
1617
- data.starting_time = res['starting_time']
1618
- data.selected_title = res['movie_title']
1619
- data.selected_date = res['selected_date']
1620
- data.hall = res['hall']
1621
- # Computing properties of executed services
1622
- perf_book = properties['call_book']['perform_book']
1623
- data.selected_cinema = " #{perf_book.values[0]['vendor']['name']}\n#{perf_book.values[0]['address']['street']}\n#{perf_book.values[0]['address']['zip']} #{perf_book.values[0]['address']['city']}"
1624
- end
1625
- </manipulate>
1626
- <manipulate id="remove_objects_of_use_repo_cinemas" generated="true"> data.delete(:"result_use_repo_cinemas")
1627
- data.delete(:"properties_use_repo_cinemas")
1628
- endpoints.delete(:"use_repo_cinemas__selected_cinema")
1629
- data.delete(:"use_repo_cinemas__show_id")
1630
- data.delete(:"use_repo_cinemas__list")
1631
- data.delete(:"use_repo_cinemas__res")
1632
- data.delete(:"use_repo_cinemas__list_merge")
1633
- data.delete(:"use_repo_cinemas__number_of_shows")
1634
- data.delete(:"use_repo_cinemas__endpoint")
1635
- </manipulate>
1636
- <call id="confirm" endpoint="select">
1637
- <parameters>
1638
- <method>post</method>
1639
- <info>true</info>
1640
- <templates>
1641
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
1642
- <!-- uri>'http://gus.lan/input-forms/cinemas.xsl'</uri -->
1643
- <name>'Cinemas-Output'</name>
1644
- <lang>'EN'</lang>
1645
- </templates>
1646
- <parameters>
1647
- <title>data.selected_title</title>
1648
- <date>data.selected_date</date>
1649
- <time>data.starting_time</time>
1650
- <hall>data.hall</hall>
1651
- <res_nr>data.reservation_number</res_nr>
1652
- <cinema>data.selected_cinema</cinema>
1653
- </parameters>
1654
- </parameters>
1655
- </call>
1656
- </description>
1657
- </description>
1658
- <transformation>
1659
- <!--{{{-->
1660
- <!--}}}-->
1661
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0" version="1.0">
1662
- <xsl:output method="text"/>
1663
- <xsl:strip-space elements="*"/>
1664
- <xsl:variable name="myspacemultiplier">2</xsl:variable>
1665
- <xsl:template match="/">
1666
- <xsl:apply-templates select="//d:description"/>
1667
- </xsl:template>
1668
- <xsl:template match="//d:description">
1669
- <xsl:apply-templates>
1670
- <xsl:with-param name="myspace">
1671
- <xsl:value-of select="-1*$myspacemultiplier"/>
1672
- </xsl:with-param>
1673
- </xsl:apply-templates>
1674
- </xsl:template>
1675
- <xsl:template match="*">
1676
- <xsl:param name="myspace"/>
1677
- <xsl:call-template name="print-space">
1678
- <xsl:with-param name="i">1</xsl:with-param>
1679
- <xsl:with-param name="count">
1680
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1681
- </xsl:with-param>
1682
- </xsl:call-template>
1683
- <xsl:if test="name()='call' or name()='manipulate'">
1684
- <xsl:text>activity :</xsl:text>
1685
- <xsl:value-of select="@id"/>
1686
- </xsl:if>
1687
- <xsl:if test="name()='call'">
1688
- <xsl:text>, :call, :</xsl:text>
1689
- <xsl:value-of select="@endpoint"/>
1690
- <xsl:apply-templates select="d:parameters"/>
1691
- <xsl:if test="@oid">
1692
- <xsl:text>, :'call-oid' =&gt; '</xsl:text>
1693
- <xsl:value-of select="@oid"/>
1694
- <xsl:text>'</xsl:text>
1695
- </xsl:if>
1696
- <xsl:apply-templates select="d:manipulate" mode="part-of-call">
1697
- <xsl:with-param name="myspace">
1698
- <xsl:value-of select="$myspace"/>
1699
- </xsl:with-param>
1700
- </xsl:apply-templates>
1701
- <xsl:call-template name="print-newline"/>
1702
- </xsl:if>
1703
- <xsl:if test="name()='manipulate'">
1704
- <xsl:text>, :manipulate</xsl:text>
1705
- <!-- RESCUE: manipulate with dataelement as result object -->
1706
- <xsl:if test="@data">
1707
- <xsl:text>, nil,</xsl:text>
1708
- <xsl:value-of select="@data"/>
1709
- </xsl:if>
1710
- <!-- RESCUE -->
1711
- <xsl:call-template name="print-content">
1712
- <xsl:with-param name="myspace">
1713
- <xsl:value-of select="$myspace"/>
1714
- </xsl:with-param>
1715
- </xsl:call-template>
1716
- <xsl:call-template name="print-newline"/>
1717
- </xsl:if>
1718
- <xsl:if test="name()='parallel'">
1719
- <xsl:text>parallel</xsl:text>
1720
- <xsl:if test="@wait">
1721
- <xsl:text> :wait =&gt; </xsl:text>
1722
- <xsl:value-of select="@wait"/>
1723
- </xsl:if>
1724
- <xsl:text> do</xsl:text>
1725
- <xsl:call-template name="print-newline"/>
1726
- <xsl:apply-templates>
1727
- <xsl:with-param name="myspace">
1728
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1729
- </xsl:with-param>
1730
- </xsl:apply-templates>
1731
- <xsl:call-template name="print-space">
1732
- <xsl:with-param name="i">1</xsl:with-param>
1733
- <xsl:with-param name="count">
1734
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1735
- </xsl:with-param>
1736
- </xsl:call-template>
1737
- <xsl:text>end</xsl:text>
1738
- <xsl:call-template name="print-newline"/>
1739
- </xsl:if>
1740
- <xsl:if test="name()='loop'">
1741
- <xsl:text>loop </xsl:text>
1742
- <xsl:if test="@pre_test">
1743
- <xsl:text>pre_test{</xsl:text>
1744
- <xsl:value-of select="@pre_test"/>
1745
- <xsl:text>} </xsl:text>
1746
- </xsl:if>
1747
- <xsl:if test="@post_test">
1748
- <xsl:text>post_test{</xsl:text>
1749
- <xsl:value-of select="@post_test"/>
1750
- <xsl:text>} </xsl:text>
1751
- </xsl:if>
1752
- <xsl:text>do</xsl:text>
1753
- <xsl:call-template name="print-newline"/>
1754
- <xsl:apply-templates>
1755
- <xsl:with-param name="myspace">
1756
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1757
- </xsl:with-param>
1758
- </xsl:apply-templates>
1759
- <xsl:call-template name="print-space">
1760
- <xsl:with-param name="i">1</xsl:with-param>
1761
- <xsl:with-param name="count">
1762
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1763
- </xsl:with-param>
1764
- </xsl:call-template>
1765
- <xsl:text>end</xsl:text>
1766
- <xsl:call-template name="print-newline"/>
1767
- </xsl:if>
1768
- <xsl:if test="name()='choose'">
1769
- <xsl:text>choose do</xsl:text>
1770
- <xsl:call-template name="print-newline"/>
1771
- <xsl:apply-templates>
1772
- <xsl:with-param name="myspace">
1773
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1774
- </xsl:with-param>
1775
- </xsl:apply-templates>
1776
- <xsl:call-template name="print-space">
1777
- <xsl:with-param name="i">1</xsl:with-param>
1778
- <xsl:with-param name="count">
1779
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1780
- </xsl:with-param>
1781
- </xsl:call-template>
1782
- <xsl:text>end</xsl:text>
1783
- <xsl:call-template name="print-newline"/>
1784
- </xsl:if>
1785
- <xsl:if test="name()='group'">
1786
- <xsl:apply-templates>
1787
- <xsl:with-param name="myspace">
1788
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1789
- </xsl:with-param>
1790
- </xsl:apply-templates>
1791
- <xsl:call-template name="print-newline"/>
1792
- </xsl:if>
1793
- <xsl:if test="name()='critical'">
1794
- <xsl:text>critical :</xsl:text>
1795
- <xsl:value-of select="@sid"/>
1796
- <xsl:text> do</xsl:text>
1797
- <xsl:call-template name="print-newline"/>
1798
- <xsl:apply-templates>
1799
- <xsl:with-param name="myspace">
1800
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1801
- </xsl:with-param>
1802
- </xsl:apply-templates>
1803
- <xsl:call-template name="print-space">
1804
- <xsl:with-param name="i">1</xsl:with-param>
1805
- <xsl:with-param name="count">
1806
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1807
- </xsl:with-param>
1808
- </xsl:call-template>
1809
- <xsl:text>end</xsl:text>
1810
- <xsl:call-template name="print-newline"/>
1811
- </xsl:if>
1812
- </xsl:template>
1813
- <xsl:template match="d:alternative">
1814
- <xsl:param name="myspace"/>
1815
- <xsl:call-template name="print-space">
1816
- <xsl:with-param name="i">1</xsl:with-param>
1817
- <xsl:with-param name="count">
1818
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1819
- </xsl:with-param>
1820
- </xsl:call-template>
1821
- <xsl:text>alternative </xsl:text>
1822
- <xsl:value-of select="@condition"/>
1823
- <xsl:text> do</xsl:text>
1824
- <xsl:call-template name="print-newline"/>
1825
- <xsl:apply-templates>
1826
- <xsl:with-param name="myspace">
1827
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1828
- </xsl:with-param>
1829
- </xsl:apply-templates>
1830
- <xsl:call-template name="print-space">
1831
- <xsl:with-param name="i">1</xsl:with-param>
1832
- <xsl:with-param name="count">
1833
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1834
- </xsl:with-param>
1835
- </xsl:call-template>
1836
- <xsl:text>end</xsl:text>
1837
- <xsl:call-template name="print-newline"/>
1838
- </xsl:template>
1839
- <xsl:template match="d:otherwise">
1840
- <xsl:param name="myspace"/>
1841
- <xsl:call-template name="print-space">
1842
- <xsl:with-param name="i">1</xsl:with-param>
1843
- <xsl:with-param name="count">
1844
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1845
- </xsl:with-param>
1846
- </xsl:call-template>
1847
- <xsl:text>otherwise do</xsl:text>
1848
- <xsl:call-template name="print-newline"/>
1849
- <xsl:apply-templates>
1850
- <xsl:with-param name="myspace">
1851
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1852
- </xsl:with-param>
1853
- </xsl:apply-templates>
1854
- <xsl:call-template name="print-space">
1855
- <xsl:with-param name="i">1</xsl:with-param>
1856
- <xsl:with-param name="count">
1857
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1858
- </xsl:with-param>
1859
- </xsl:call-template>
1860
- <xsl:text>end</xsl:text>
1861
- <xsl:call-template name="print-newline"/>
1862
- </xsl:template>
1863
- <xsl:template match="d:parallel_branch">
1864
- <xsl:param name="myspace"/>
1865
- <xsl:call-template name="print-space">
1866
- <xsl:with-param name="i">1</xsl:with-param>
1867
- <xsl:with-param name="count">
1868
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1869
- </xsl:with-param>
1870
- </xsl:call-template>
1871
- <xsl:text>parallel_branch</xsl:text>
1872
- <xsl:if test="@pass">
1873
- <xsl:text> </xsl:text>
1874
- <xsl:value-of select="@pass"/>
1875
- </xsl:if>
1876
- <xsl:text> do</xsl:text>
1877
- <xsl:if test="@local">
1878
- <xsl:text> |</xsl:text>
1879
- <xsl:value-of select="@local"/>
1880
- <xsl:text>|</xsl:text>
1881
- </xsl:if>
1882
- <xsl:call-template name="print-newline"/>
1883
- <xsl:apply-templates>
1884
- <xsl:with-param name="myspace">
1885
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1886
- </xsl:with-param>
1887
- </xsl:apply-templates>
1888
- <xsl:call-template name="print-space">
1889
- <xsl:with-param name="i">1</xsl:with-param>
1890
- <xsl:with-param name="count">
1891
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1892
- </xsl:with-param>
1893
- </xsl:call-template>
1894
- <xsl:text>end</xsl:text>
1895
- <xsl:call-template name="print-newline"/>
1896
- </xsl:template>
1897
- <xsl:template match="d:parameters">
1898
- <xsl:apply-templates select="d:*" mode="parameter"/>
1899
- </xsl:template>
1900
- <xsl:template match="d:*" mode="parameter">
1901
- <xsl:text>, :</xsl:text>
1902
- <xsl:value-of select="name()"/>
1903
- <xsl:text> =&gt; </xsl:text>
1904
- <xsl:choose>
1905
- <xsl:when test="count(*) &gt; 0">
1906
- <xsl:text>[</xsl:text>
1907
- <xsl:apply-templates select="d:*" mode="sub-parameter"/>
1908
- <xsl:text>]</xsl:text>
1909
- </xsl:when>
1910
- <xsl:otherwise>
1911
- <xsl:choose>
1912
- <xsl:when test="@type = 'symbolic'">
1913
- <xsl:value-of select="text()"/>
1914
- </xsl:when>
1915
- <xsl:otherwise>
1916
- <xsl:text>"</xsl:text>
1917
- <xsl:value-of select="text()"/>
1918
- <xsl:text>"</xsl:text>
1919
- </xsl:otherwise>
1920
- </xsl:choose>
1921
- </xsl:otherwise>
1922
- </xsl:choose>
1923
- </xsl:template>
1924
- <xsl:template match="d:*" mode="sub-parameter">
1925
- <xsl:text> { :</xsl:text>
1926
- <xsl:value-of select="name()"/>
1927
- <xsl:text> =&gt; </xsl:text>
1928
- <xsl:value-of select="text()"/>
1929
- <xsl:text> }</xsl:text>
1930
- <xsl:choose>
1931
- <xsl:when test="generate-id(.) = generate-id(../*[last()])">
1932
- <xsl:text> </xsl:text>
1933
- </xsl:when>
1934
- <xsl:otherwise>
1935
- <xsl:text>,</xsl:text>
1936
- </xsl:otherwise>
1937
- </xsl:choose>
1938
- </xsl:template>
1939
- <xsl:template match="d:manipulate" mode="part-of-call">
1940
- <xsl:param name="myspace"/>
1941
- <xsl:call-template name="print-content">
1942
- <xsl:with-param name="myspace">
1943
- <xsl:value-of select="$myspace"/>
1944
- </xsl:with-param>
1945
- </xsl:call-template>
1946
- </xsl:template>
1947
- <xsl:template name="print-content">
1948
- <xsl:param name="myspace"/>
1949
- <xsl:if test="text()">
1950
- <xsl:text> do </xsl:text>
1951
- <xsl:if test="@output">
1952
- <xsl:text>|</xsl:text>
1953
- <xsl:value-of select="@output"/>
1954
- <xsl:text>|</xsl:text>
1955
- </xsl:if>
1956
- <xsl:call-template name="print-newline"/>
1957
- <xsl:value-of select="text()"/>
1958
- <xsl:call-template name="print-newline"/>
1959
- <xsl:call-template name="print-space">
1960
- <xsl:with-param name="i">1</xsl:with-param>
1961
- <xsl:with-param name="count">
1962
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1963
- </xsl:with-param>
1964
- </xsl:call-template>
1965
- <xsl:text>end</xsl:text>
1966
- </xsl:if>
1967
- </xsl:template>
1968
- <xsl:template name="print-space">
1969
- <xsl:param name="i"/>
1970
- <xsl:param name="count"/>
1971
- <xsl:if test="$i &lt;= $count">
1972
- <xsl:text> </xsl:text>
1973
- <xsl:call-template name="print-space">
1974
- <xsl:with-param name="i">
1975
- <xsl:value-of select="$i + 1"/>
1976
- </xsl:with-param>
1977
- <xsl:with-param name="count">
1978
- <xsl:value-of select="$count"/>
1979
- </xsl:with-param>
1980
- </xsl:call-template>
1981
- </xsl:if>
1982
- </xsl:template>
1983
- <xsl:template name="print-newline">
1984
- <xsl:text>
1985
- </xsl:text>
1986
- </xsl:template>
1987
- </xsl:stylesheet>
1988
- </transformation>
1989
- </properties>