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,27 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
2
- <topic id="running">
3
- <event>activity_calling</event>
4
- <event>activity_manipulating</event>
5
- <event>activity_failed</event>
6
- <event>activity_done</event>
7
- </topic>
8
- <topic id="properties/position">
9
- <event>change</event>
10
- </topic>
11
- <topic id="properties/description">
12
- <event>change</event>
13
- <event>error</event>
14
- </topic>
15
- <topic id="properties/state">
16
- <event>change</event>
17
- </topic>
18
- <topic id="properties/dataelements">
19
- <event>change</event>
20
- </topic>
21
- <topic id="properties/endpoints">
22
- <event>change</event>
23
- </topic>
24
- <topic id="properties/handlers">
25
- <event>change</event>
26
- </topic>
27
- </subscription>
@@ -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,1977 +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__REST_AugeGottes>after</create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes>
7
- <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>
8
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__preparations>after</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__preparations>
9
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo>at</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo>
10
- <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>
11
- </positions>
12
- <dataelements>
13
- <title>"Hobbit"</title>
14
- <date>"2013-01-16"</date>
15
- <selected_title>""</selected_title>
16
- <selected_cinema>null</selected_cinema>
17
- <selected_date>null</selected_date>
18
- <zip>1100</zip>
19
- <starting_time>""</starting_time>
20
- <hall>null</hall>
21
- <city>"Vienna"</city>
22
- <reservation_number>null</reservation_number>
23
- <result_use_repo_cinemas>{"properties":{"call_find":{"perform_search":{"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"}},"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/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"}}}},"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/DonauPlexx":{},"http://localhost:9290/groups/Cinemas//Soap/SCNHollywood":{},"http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino":{},"http://localhost:9290/groups/Cinemas//REST/AugeGottes":{},"http://localhost:9290/groups/Cinemas//REST/Apollo":{}}</result_use_repo_cinemas__call_find>
31
- <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>
32
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum>"16.01.2013"</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum>
33
- <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>
34
- <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>
35
- <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>
36
- <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>
37
- <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>
38
- <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>
39
- <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>
40
- <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>
41
- <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>
42
- <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>
43
- <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>
44
- <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>
45
- <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>
46
- <use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum>""</use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum>
47
- <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>
48
- <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>
49
- </dataelements>
50
- <endpoints>
51
- <services>http://localhost:9290/groups/Cinemas/</services>
52
- <select>http://localhost:9293/pgwl</select>
53
- <injection_handler>http://localhost:9291/</injection_handler>
54
- <use_repo_cinemas__selected_cinema/>
55
- <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>
56
- <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>
57
- <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>
58
- <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>
59
- <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>
60
- <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>
61
- <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>
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].find('descendant::tns:FilmInfoResult', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
401
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
402
-
403
-
404
- end
405
- choose do
406
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200)) do
407
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__pares_response, :manipulate do
408
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
409
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
410
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2
411
-
412
- from = data.date
413
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
414
- resp.find("//film/ID").each do |id|
415
- ids &lt;&lt; id.text
416
- end
417
- to = from
418
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
419
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
420
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = to
421
-
422
- end
423
- loop pre_test{(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids.length.&gt;(0))} do
424
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__get_film_id, :manipulate do
425
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
426
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id
427
-
428
- id = ids.pop
429
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
430
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = id
431
-
432
- end
433
- 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|
434
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
435
- if result[0].class.to_s == "Hash"
436
- result[0] = RescueHash.new_from_obj(result[0])
437
- end
438
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
439
- result[0].find('descendant::tns:ScheduleResponse', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
440
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
441
-
442
-
443
- end
444
- choose do
445
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200)) do
446
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__search_shows, :manipulate do
447
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
448
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
449
-
450
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
451
- resp.find("descendant::tns:show", {"tns"=&gt;"http://sitec.at/Service"}).each do |show|
452
- xml &lt;&lt; show.dump
453
- end
454
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
455
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
456
-
457
- end
458
- end
459
- otherwise do
460
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__Schedule_Error, :manipulate do
461
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
462
-
463
- puts "An error occured in Schedule_Error"
464
- puts error
465
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
466
-
467
- end
468
- end
469
- end
470
- end
471
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__generate_output, :manipulate do
472
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
473
-
474
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
475
- xml.each do |e|
476
- res = XML::Smart.string(e)
477
- node = list.root.add("show")
478
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/LugnerCityKino")
479
- node.add("show_id", res.find("//id").first.text)
480
- node.add("title", res.find("//filmname").first.text)
481
- node.add("date", res.find("//date").first.text)
482
- node.add("time", res.find("//time").first.text)
483
- node.add("hall", res.find("//hall").first.text)
484
- end
485
- list = list.root.dump
486
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
487
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino']['list'] = list
488
-
489
- end
490
- end
491
- otherwise do
492
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__FilmInfo_Error, :manipulate do
493
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response
494
-
495
- puts "An eror occured in FilmInfo_Error"
496
- puts error
497
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
498
-
499
- end
500
- end
501
- end
502
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino, :manipulate do
503
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl")
504
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service")
505
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response")
506
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml")
507
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids")
508
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id")
509
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2")
510
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status")
511
-
512
- end
513
- end
514
- parallel_branch do
515
- activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood, :manipulate do
516
- data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
517
- 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"
518
- 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"
519
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = ''
520
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = Array.new
521
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = Array.new
522
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = ''
523
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = ''
524
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = ''
525
- # Filling the properties-object of the service
526
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
527
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"] = RescueHash.new
528
- 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"
529
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["zip"] = "1210"
530
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["city"] = "Vienna"
531
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["state"] = "Austria"
532
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"] = RescueHash.new
533
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["name"] = "SCN HollywoodMegaplex"
534
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["phone"] = "+43-1-27166790"
535
- 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"
536
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["mail"] = "office@hollywood-megaplex.at"
537
-
538
- end
539
- 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|
540
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
541
- if result[0].class.to_s == "Hash"
542
- result[0] = RescueHash.new_from_obj(result[0])
543
- end
544
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
545
- result[0].find('descendant::tns:FilmInfoResult', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
546
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
547
-
548
-
549
- end
550
- choose do
551
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200)) do
552
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__pares_response, :manipulate do
553
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
554
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
555
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2
556
-
557
- from = data.date
558
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
559
- resp.find("//film/ID").each do |id|
560
- ids &lt;&lt; id.text
561
- end
562
- to = from
563
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
564
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
565
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = to
566
-
567
- end
568
- loop pre_test{(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids.length.&gt;(0))} do
569
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__get_film_id, :manipulate do
570
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
571
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id
572
-
573
- id = ids.pop
574
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
575
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = id
576
-
577
- end
578
- 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|
579
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
580
- if result[0].class.to_s == "Hash"
581
- result[0] = RescueHash.new_from_obj(result[0])
582
- end
583
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
584
- result[0].find('descendant::tns:ScheduleResponse', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
585
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
586
-
587
-
588
- end
589
- choose do
590
- alternative (data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200)) do
591
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__search_shows, :manipulate do
592
- soap = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
593
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
594
-
595
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
596
- resp.find("descendant::tns:show", {"tns"=&gt;"http://sitec.at/Service"}).each do |show|
597
- xml &lt;&lt; show.dump
598
- end
599
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
600
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
601
-
602
- end
603
- end
604
- otherwise do
605
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__Schedule_Error, :manipulate do
606
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
607
-
608
- puts "An error occured in Schedule_Error"
609
- puts error
610
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
611
-
612
- end
613
- end
614
- end
615
- end
616
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__generate_output, :manipulate do
617
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
618
-
619
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
620
- xml.each do |e|
621
- res = XML::Smart.string(e)
622
- node = list.root.add("show")
623
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/SCNHollywood")
624
- node.add("show_id", res.find("//id").first.text)
625
- node.add("title", res.find("//filmname").first.text)
626
- node.add("date", res.find("//date").first.text)
627
- node.add("time", res.find("//time").first.text)
628
- node.add("hall", res.find("//hall").first.text)
629
- end
630
- list = list.root.dump
631
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
632
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/SCNHollywood']['list'] = list
633
-
634
- end
635
- end
636
- otherwise do
637
- activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__FilmInfo_Error, :manipulate do
638
- error = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response
639
-
640
- puts "An eror occured in FilmInfo_Error"
641
- puts error
642
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
643
-
644
- end
645
- end
646
- end
647
- activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__Soap_SCNHollywood, :manipulate do
648
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl")
649
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service")
650
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response")
651
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml")
652
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids")
653
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id")
654
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2")
655
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status")
656
-
657
- end
658
- end
659
- end
660
-
661
- activity :manipulate_from_use_repo_cinemas__call_find__perform_search, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
662
- properties = data.result_use_repo_cinemas['properties']["call_find"]
663
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
664
- if result[0].class.to_s == "Hash"
665
- result[0] = RescueHash.new_from_obj(result[0])
666
- end
667
- data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
668
-
669
- end
670
-
671
- activity :manipulate_from_use_repo_cinemas__call_find, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
672
- properties = data.result_use_repo_cinemas['properties']
673
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
674
- if result[0].class.to_s == "Hash"
675
- result[0] = RescueHash.new_from_obj(result[0])
676
- end
677
- data.use_repo_cinemas__list = result[0].value('list')
678
-
679
- end
680
- activity :remove_objects_of_use_repo_cinemas__call_find, :manipulate do
681
- data.delete(:"result_use_repo_cinemas__call_find")
682
-
683
- end
684
- activity :use_repo_cinemas__merge_result, :manipulate do
685
- list = data.use_repo_cinemas__list
686
- m_list = data.use_repo_cinemas__list_merge
687
- nos = data.use_repo_cinemas__number_of_shows
688
-
689
- title = data.title
690
- date = data.date
691
- xml = XML::Smart.string("&lt;list_of_shows/&gt;")
692
- if list.class == Array
693
- list.each do |v|
694
- l = XML::Smart.string(v)
695
- xml.root.add(l.find("//show"))
696
- end
697
- elsif list.class == String
698
- l = XML::Smart.string(list)
699
- xml.root.add(l.find("//show"))
700
- else
701
- raise "Unexpected class of return-value - class: #{list.class}"
702
- end
703
- m_list = xml.root.dump
704
- nos = xml.root.children.length
705
- data.use_repo_cinemas__list = list
706
- data.use_repo_cinemas__list_merge = m_list
707
- data.use_repo_cinemas__number_of_shows = nos
708
-
709
- end
710
- choose do
711
- alternative (data.use_repo_cinemas__number_of_shows.&gt;(0)) do
712
- 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|
713
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
714
- if result[0].class.to_s == "Hash"
715
- result[0] = RescueHash.new_from_obj(result[0])
716
- end
717
- data.use_repo_cinemas__show_id = result[0].value('show_id')
718
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
719
- if result[0].class.to_s == "Hash"
720
- result[0] = RescueHash.new_from_obj(result[0])
721
- end
722
- data.use_repo_cinemas__endpoint = result[0].value('target')
723
- data.result_use_repo_cinemas['status'] = result[1]
724
-
725
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
726
- if result[0].class.to_s == "Hash"
727
- result[0] = RescueHash.new_from_obj(result[0])
728
- end
729
- data.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
730
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
731
- if result[0].class.to_s == "Hash"
732
- result[0] = RescueHash.new_from_obj(result[0])
733
- end
734
- data.result_use_repo_cinemas['selected_date'] = result[0].value('date')
735
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
736
- if result[0].class.to_s == "Hash"
737
- result[0] = RescueHash.new_from_obj(result[0])
738
- end
739
- data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
740
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
741
- if result[0].class.to_s == "Hash"
742
- result[0] = RescueHash.new_from_obj(result[0])
743
- end
744
- data.result_use_repo_cinemas['hall'] = result[0].value('hall')
745
-
746
- end
747
- activity :use_repo_cinemas__set_selected_endpoint, :manipulate do
748
- ep = data.use_repo_cinemas__endpoint
749
- selected = endpoints.use_repo_cinemas__selected_cinema
750
-
751
- selected = ep
752
- data.use_repo_cinemas__endpoint = ep
753
- endpoints.use_repo_cinemas__selected_cinema = selected
754
-
755
- end
756
- 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|
757
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
758
- if result[0].class.to_s == "Hash"
759
- result[0] = RescueHash.new_from_obj(result[0])
760
- end
761
- data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
762
-
763
- end
764
- activity :use_repo_cinemas__set_status_success, :manipulate do
765
-
766
- status = 200
767
- data.result_use_repo_cinemas['status'] = status
768
-
769
- end
770
- end
771
- otherwise do
772
- activity :use_repo_cinemas__set_status_failed, :manipulate do
773
-
774
- status = 404
775
- data.result_use_repo_cinemas['status'] = status
776
-
777
- end
778
- end
779
- end
780
-
781
- activity :manipulate_from_use_repo_cinemas, :manipulate, nil,data.result_use_repo_cinemas do |result|
782
- properties = data.result_use_repo_cinemas['properties']
783
-
784
- res = result[0]
785
- if res['status'] == 200
786
- # Computing service responses
787
- data.reservation_number = res['reservation_id']
788
- data.starting_time = res['starting_time']
789
- data.selected_title = res['movie_title']
790
- data.selected_date = res['selected_date']
791
- data.hall = res['hall']
792
- # Computing properties of executed services
793
- perf_book = properties['call_book']['perform_book']
794
- 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']}"
795
- end
796
-
797
- end
798
- activity :remove_objects_of_use_repo_cinemas, :manipulate do
799
- data.delete(:"result_use_repo_cinemas")
800
- data.delete(:"properties_use_repo_cinemas")
801
- endpoints.delete(:"use_repo_cinemas__selected_cinema")
802
- data.delete(:"use_repo_cinemas__show_id")
803
- data.delete(:"use_repo_cinemas__list")
804
- data.delete(:"use_repo_cinemas__res")
805
- data.delete(:"use_repo_cinemas__list_merge")
806
- data.delete(:"use_repo_cinemas__number_of_shows")
807
- data.delete(:"use_repo_cinemas__endpoint")
808
-
809
- end
810
- 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 } ]
811
- </dsl>
812
- <status>
813
- <id>0</id>
814
- <message>undefined</message>
815
- </status>
816
- <description>
817
- <description xmlns="http://cpee.org/ns/description/1.0">
818
- <call id="collect_input" endpoint="select">
819
- <parameters>
820
- <method>post</method>
821
- <info>true</info>
822
- <templates>
823
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
824
- <name>'Cinemas-Input'</name>
825
- <lang>'EN'</lang>
826
- </templates>
827
- </parameters>
828
- <manipulate output="result">
829
- data.title = result.data.value('title')
830
- data.date = result.data.value('date')
831
- data.city = result.data.value('city')
832
- </manipulate>
833
- </call>
834
- <call id="use_repo_cinemas" endpoint="services">
835
- <constraints>
836
- <constraint xpath="address/city" comparator="==" variable="city"/>
837
- </constraints>
838
- <parameters>
839
- <!--{{{-->
840
- <info>true</info>
841
- <service>
842
- <serviceoperation>"search_and_book"</serviceoperation>
843
- <injection_handler>endpoints.injection_handler</injection_handler>
844
- </service>
845
- <additional_endpoints>
846
- <selector_service>"select"</selector_service>
847
- </additional_endpoints>
848
- <parameters>
849
- <title>data.title</title>
850
- <date>data.date</date>
851
- </parameters>
852
- </parameters>
853
- <!--}}}-->
854
- </call>
855
- <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']">
856
- <manipulate id="create_objects_for_use_repo_cinemas" generated="true"> data.result_use_repo_cinemas = RescueHash.new
857
- data.result_use_repo_cinemas['properties'] = RescueHash.new
858
- data.result_use_repo_cinemas['properties']["call_find"] = RescueHash.new
859
- data.result_use_repo_cinemas['properties']["call_book"] = RescueHash.new
860
- endpoints.use_repo_cinemas__selected_cinema = ""
861
- data.use_repo_cinemas__show_id = ''
862
- data.use_repo_cinemas__list = ''
863
- data.use_repo_cinemas__res = ''
864
- data.use_repo_cinemas__list_merge = ''
865
- data.use_repo_cinemas__number_of_shows = ''
866
- data.use_repo_cinemas__endpoint = ''
867
- </manipulate>
868
- <constraints>
869
- <constraint xpath="address/city" comparator="==" variable="city"/>
870
- </constraints>
871
- <call id="use_repo_cinemas__call_find" endpoint="services" oid="call_find">
872
- <parameters>
873
- <service>
874
- <serviceoperation>"search"</serviceoperation>
875
- <injection_handler>endpoints.injection_handler</injection_handler>
876
- </service>
877
- <parameters>
878
- <title>data.title</title>
879
- <date>data.date</date>
880
- </parameters>
881
- </parameters>
882
- </call>
883
- <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;]">
884
- <manipulate id="create_objects_for_use_repo_cinemas__call_find" generated="true"> data.result_use_repo_cinemas__call_find = RescueHash.new
885
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"] = RescueHash.new
886
- </manipulate>
887
- <call id="use_repo_cinemas__call_find__perform_search" endpoint="services" oid="perform_search">
888
- <parameters>
889
- <service>
890
- <serviceoperation>"search"</serviceoperation>
891
- <injection_handler>endpoints.injection_handler</injection_handler>
892
- </service>
893
- <parameters>
894
- <title>data.title</title>
895
- <date>data.date</date>
896
- </parameters>
897
- </parameters>
898
- </call>
899
- <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;]">
900
- <parallel generated="true">
901
- <parallel_branch generated="true">
902
- <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
903
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
904
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = ''
905
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = ''
906
- # Filling the properties-object of the service
907
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
908
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"] = RescueHash.new
909
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["street"] = "Gumpendorferstraße 63"
910
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["zip"] = "1060"
911
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["city"] = "Vienna"
912
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["state"] = "Austria"
913
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"] = RescueHash.new
914
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["name"] = "Apollo - Das Kino Wien"
915
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["phone"] = "+43-1-5879651"
916
- 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"
917
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["mail"] = "village.apollo@villagekinos.at"
918
- </manipulate>
919
- <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
920
-
921
- d = data.date
922
- date = Time.parse(d)
923
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
924
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = datum
925
- </manipulate>
926
- <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="">
927
- <parameters>
928
- <method>get</method>
929
- <parameters>
930
- <id>1</id>
931
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum</datum>
932
- <uhrzeit>"00:00:00"</uhrzeit>
933
- <version>""</version>
934
- </parameters>
935
- </parameters>
936
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
937
- if result[0].class.to_s == "Hash"
938
- result[0] = RescueHash.new_from_obj(result[0])
939
- end
940
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = result[0].value('').read
941
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['status'] = result[1]
942
-
943
- </manipulate>
944
- </call>
945
- <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
946
-
947
- date = data.date
948
- title = data.title
949
- date = Date.parse(date)
950
- str = CGI::unescapeHTML(response)
951
- str.gsub!('&amp;','--amp--')
952
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
953
- offset = str.index("value=\"", offset)
954
- d = str[offset+7..offset+16]
955
-
956
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
957
- count = 1
958
- offset = 0
959
- while (count != 0) do
960
- offset = str.index("div", offset+1)
961
- count = count+1 if str[offset-1].chr == "&lt;"
962
- count = count-1 if str[offset-1].chr == "/"
963
- end
964
- str = str[0..offset-3]
965
- resp = XML::Smart.string(str)
966
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
967
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
968
- show_title = b.find("child::tr/td[1]/a").first.text.strip
969
- show_date = Date.parse(d)
970
- if show_date.eql?(date)
971
- b.find("child::tr/td[3]/div/table").each do |show|
972
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
973
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
974
- show = list.root.add("show")
975
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/Apollo")
976
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
977
- show.add("title", show_title)
978
- show.add("date", show_date.to_s)
979
- show.add("time", s.text)
980
- show.add("hall", show_hall)
981
- end
982
- end
983
- end
984
- end
985
- list = list.root.dump
986
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = response
987
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['list'] = list
988
- </manipulate>
989
- <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")
990
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response")
991
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum")
992
- </manipulate>
993
- </parallel_branch>
994
- <parallel_branch generated="true">
995
- <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
996
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
997
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = ''
998
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = ''
999
- # Filling the properties-object of the service
1000
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
1001
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"] = RescueHash.new
1002
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["street"] = "Nußdorfer Straße 73"
1003
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["zip"] = "1090"
1004
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["city"] = "Vienna"
1005
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["state"] = "Austria"
1006
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"] = RescueHash.new
1007
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["name"] = "Das Auge Gottes Center Wien"
1008
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["phone"] = "+43-1-3176344"
1009
- 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"
1010
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["mail"] = "village.wienmitte@villagekinos.at"
1011
- </manipulate>
1012
- <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
1013
-
1014
- d = data.date
1015
- date = Time.parse(d)
1016
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
1017
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = datum
1018
- </manipulate>
1019
- <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="">
1020
- <parameters>
1021
- <method>get</method>
1022
- <parameters>
1023
- <id>6</id>
1024
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum</datum>
1025
- <uhrzeit>"00:00:00"</uhrzeit>
1026
- <version>""</version>
1027
- </parameters>
1028
- </parameters>
1029
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1030
- if result[0].class.to_s == "Hash"
1031
- result[0] = RescueHash.new_from_obj(result[0])
1032
- end
1033
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = result[0].value('').read
1034
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['status'] = result[1]
1035
-
1036
- </manipulate>
1037
- </call>
1038
- <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
1039
-
1040
- date = data.date
1041
- title = data.title
1042
- date = Date.parse(date)
1043
- str = CGI::unescapeHTML(response)
1044
- str.gsub!('&amp;','--amp--')
1045
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
1046
- offset = str.index("value=\"", offset)
1047
- d = str[offset+7..offset+16]
1048
-
1049
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
1050
- count = 1
1051
- offset = 0
1052
- while (count != 0) do
1053
- offset = str.index("div", offset+1)
1054
- count = count+1 if str[offset-1].chr == "&lt;"
1055
- count = count-1 if str[offset-1].chr == "/"
1056
- end
1057
- str = str[0..offset-3]
1058
- resp = XML::Smart.string(str)
1059
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1060
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
1061
- show_title = b.find("child::tr/td[1]/a").first.text.strip
1062
- show_date = Date.parse(d)
1063
- if show_date.eql?(date)
1064
- b.find("child::tr/td[3]/div/table").each do |show|
1065
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
1066
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
1067
- show = list.root.add("show")
1068
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/AugeGottes")
1069
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
1070
- show.add("title", show_title)
1071
- show.add("date", show_date.to_s)
1072
- show.add("time", s.text)
1073
- show.add("hall", show_hall)
1074
- end
1075
- end
1076
- end
1077
- end
1078
- list = list.root.dump
1079
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = response
1080
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['list'] = list
1081
- </manipulate>
1082
- <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")
1083
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response")
1084
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum")
1085
- </manipulate>
1086
- </parallel_branch>
1087
- <parallel_branch generated="true">
1088
- <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
1089
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
1090
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = ''
1091
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = ''
1092
- # Filling the properties-object of the service
1093
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
1094
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"] = RescueHash.new
1095
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["street"] = "Wagramerstraße 79"
1096
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["zip"] = "1220"
1097
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["city"] = "Vienna"
1098
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["state"] = "Austria"
1099
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"] = RescueHash.new
1100
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["name"] = "Cineplexx Doanuplex"
1101
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["phone"] = "+43-1-2033322"
1102
- 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"
1103
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
1104
- </manipulate>
1105
- <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
1106
-
1107
- d = data.date
1108
- date = Time.parse(d)
1109
- datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
1110
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = datum
1111
- </manipulate>
1112
- <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="">
1113
- <parameters>
1114
- <method>get</method>
1115
- <parameters>
1116
- <id>346</id>
1117
- <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum</datum>
1118
- <uhrzeit>"00:00:00"</uhrzeit>
1119
- <version>""</version>
1120
- </parameters>
1121
- </parameters>
1122
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1123
- if result[0].class.to_s == "Hash"
1124
- result[0] = RescueHash.new_from_obj(result[0])
1125
- end
1126
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = result[0].value('').read
1127
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['status'] = result[1]
1128
-
1129
- </manipulate>
1130
- </call>
1131
- <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
1132
-
1133
- date = data.date
1134
- title = data.title
1135
- date = Date.parse(date)
1136
- str = CGI::unescapeHTML(response)
1137
- str.gsub!('&amp;','--amp--')
1138
- offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
1139
- offset = str.index("value=\"", offset)
1140
- d = str[offset+7..offset+16]
1141
-
1142
- str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
1143
- count = 1
1144
- offset = 0
1145
- while (count != 0) do
1146
- offset = str.index("div", offset+1)
1147
- count = count+1 if str[offset-1].chr == "&lt;"
1148
- count = count-1 if str[offset-1].chr == "/"
1149
- end
1150
- str = str[0..offset-3]
1151
- resp = XML::Smart.string(str)
1152
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1153
- resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
1154
- show_title = b.find("child::tr/td[1]/a").first.text.strip
1155
- show_date = Date.parse(d)
1156
- if show_date.eql?(date)
1157
- b.find("child::tr/td[3]/div/table").each do |show|
1158
- show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
1159
- show.find("child::tr/td[2]/span/a[text()]").each do |s|
1160
- show = list.root.add("show")
1161
- show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/DonauPlexx")
1162
- show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
1163
- show.add("title", show_title)
1164
- show.add("date", show_date.to_s)
1165
- show.add("time", s.text)
1166
- show.add("hall", show_hall)
1167
- end
1168
- end
1169
- end
1170
- end
1171
- list = list.root.dump
1172
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = response
1173
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['list'] = list
1174
- </manipulate>
1175
- <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")
1176
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response")
1177
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum")
1178
- </manipulate>
1179
- </parallel_branch>
1180
- <parallel_branch generated="true">
1181
- <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
1182
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl = "http://tickets.lugnerkinocity.at/sinema/service.asmx?WSDL"
1183
- endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service = "http://tickets.lugnerkinocity.at/sinema/service.asmx"
1184
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = ''
1185
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = Array.new
1186
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = Array.new
1187
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = ''
1188
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = ''
1189
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = ''
1190
- # Filling the properties-object of the service
1191
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"] = RescueHash.new
1192
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"] = RescueHash.new
1193
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["street"] = "Gablenzgasse 1-3"
1194
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["zip"] = "1150"
1195
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["city"] = "Vienna"
1196
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["address"]["state"] = "Austria"
1197
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"] = RescueHash.new
1198
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["name"] = "Lugner City Kino"
1199
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["phone"] = "+43-0810-584637"
1200
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["url"] = "http://www.lugnerkinocity.at/"
1201
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino"]["vendor"]["mail"] = "office@lugnerkinocity.at"
1202
- </manipulate>
1203
- <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="">
1204
- <parameters>
1205
- <soap_operation>FilmInfo</soap_operation>
1206
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl</wsdl>
1207
- <parameters>
1208
- <SearchItem>data.title</SearchItem>
1209
- </parameters>
1210
- </parameters>
1211
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1212
- if result[0].class.to_s == "Hash"
1213
- result[0] = RescueHash.new_from_obj(result[0])
1214
- end
1215
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
1216
- result[0].find('descendant::tns:FilmInfoResult', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
1217
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
1218
-
1219
- </manipulate>
1220
- </call>
1221
- <choose>
1222
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200))">
1223
- <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
1224
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids
1225
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2
1226
-
1227
- from = data.date
1228
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1229
- resp.find("//film/ID").each do |id|
1230
- ids &lt;&lt; id.text
1231
- end
1232
- to = from
1233
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
1234
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
1235
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2 = to
1236
- </manipulate>
1237
- <loop pre_test="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids.length.&gt;(0))">
1238
- <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
1239
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id
1240
-
1241
- id = ids.pop
1242
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids = ids
1243
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id = id
1244
- </manipulate>
1245
- <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="">
1246
- <parameters>
1247
- <soap_operation>Schedule</soap_operation>
1248
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__wsdl</wsdl>
1249
- <parameters>
1250
- <FilmID>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id</FilmID>
1251
- <dTo>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2</dTo>
1252
- <dFrom>data.date</dFrom>
1253
- </parameters>
1254
- </parameters>
1255
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1256
- if result[0].class.to_s == "Hash"
1257
- result[0] = RescueHash.new_from_obj(result[0])
1258
- end
1259
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = Array.new
1260
- result[0].find('descendant::tns:ScheduleResponse', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response &lt;&lt; "#{n.dump}"}
1261
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status = result[1]
1262
-
1263
- </manipulate>
1264
- </call>
1265
- <choose>
1266
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status.==(200))">
1267
- <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
1268
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml
1269
-
1270
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1271
- resp.find("descendant::tns:show", {"tns"=&gt;"http://sitec.at/Service"}).each do |show|
1272
- xml &lt;&lt; show.dump
1273
- end
1274
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = soap
1275
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
1276
- </manipulate>
1277
- </alternative>
1278
- <otherwise>
1279
- <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
1280
-
1281
- puts "An error occured in Schedule_Error"
1282
- puts error
1283
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
1284
- </manipulate>
1285
- </otherwise>
1286
- </choose>
1287
- </loop>
1288
- <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
1289
-
1290
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1291
- xml.each do |e|
1292
- res = XML::Smart.string(e)
1293
- node = list.root.add("show")
1294
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/LugnerCityKino")
1295
- node.add("show_id", res.find("//id").first.text)
1296
- node.add("title", res.find("//filmname").first.text)
1297
- node.add("date", res.find("//date").first.text)
1298
- node.add("time", res.find("//time").first.text)
1299
- node.add("hall", res.find("//hall").first.text)
1300
- end
1301
- list = list.root.dump
1302
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml = xml
1303
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/LugnerCityKino']['list'] = list
1304
- </manipulate>
1305
- </alternative>
1306
- <otherwise>
1307
- <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
1308
-
1309
- puts "An eror occured in FilmInfo_Error"
1310
- puts error
1311
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response = error
1312
- </manipulate>
1313
- </otherwise>
1314
- </choose>
1315
- <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")
1316
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_service")
1317
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__soap_response")
1318
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__xml")
1319
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_ids")
1320
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__film_id")
1321
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__date2")
1322
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_LugnerCityKino__status")
1323
- </manipulate>
1324
- </parallel_branch>
1325
- <parallel_branch generated="true">
1326
- <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
1327
- 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"
1328
- 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"
1329
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = ''
1330
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = Array.new
1331
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = Array.new
1332
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = ''
1333
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = ''
1334
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = ''
1335
- # Filling the properties-object of the service
1336
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"] = RescueHash.new
1337
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"] = RescueHash.new
1338
- 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"
1339
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["zip"] = "1210"
1340
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["city"] = "Vienna"
1341
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["address"]["state"] = "Austria"
1342
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"] = RescueHash.new
1343
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["name"] = "SCN HollywoodMegaplex"
1344
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["phone"] = "+43-1-27166790"
1345
- 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"
1346
- data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//Soap/SCNHollywood"]["vendor"]["mail"] = "office@hollywood-megaplex.at"
1347
- </manipulate>
1348
- <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="">
1349
- <parameters>
1350
- <soap_operation>FilmInfo</soap_operation>
1351
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl</wsdl>
1352
- <parameters>
1353
- <SearchItem>data.title</SearchItem>
1354
- </parameters>
1355
- </parameters>
1356
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1357
- if result[0].class.to_s == "Hash"
1358
- result[0] = RescueHash.new_from_obj(result[0])
1359
- end
1360
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
1361
- result[0].find('descendant::tns:FilmInfoResult', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
1362
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
1363
-
1364
- </manipulate>
1365
- </call>
1366
- <choose>
1367
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200))">
1368
- <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
1369
- ids = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids
1370
- to = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2
1371
-
1372
- from = data.date
1373
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1374
- resp.find("//film/ID").each do |id|
1375
- ids &lt;&lt; id.text
1376
- end
1377
- to = from
1378
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
1379
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
1380
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2 = to
1381
- </manipulate>
1382
- <loop pre_test="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids.length.&gt;(0))">
1383
- <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
1384
- id = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id
1385
-
1386
- id = ids.pop
1387
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids = ids
1388
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id = id
1389
- </manipulate>
1390
- <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="">
1391
- <parameters>
1392
- <soap_operation>Schedule</soap_operation>
1393
- <wsdl type="symbolic">endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__wsdl</wsdl>
1394
- <parameters>
1395
- <FilmID>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id</FilmID>
1396
- <dTo>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2</dTo>
1397
- <dFrom>data.date</dFrom>
1398
- </parameters>
1399
- </parameters>
1400
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1401
- if result[0].class.to_s == "Hash"
1402
- result[0] = RescueHash.new_from_obj(result[0])
1403
- end
1404
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = Array.new
1405
- result[0].find('descendant::tns:ScheduleResponse', {'tns'=&gt;'http://sitec.at/Service'}).each {|n| data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response &lt;&lt; "#{n.dump}"}
1406
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status = result[1]
1407
-
1408
- </manipulate>
1409
- </call>
1410
- <choose>
1411
- <alternative condition="(data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status.==(200))">
1412
- <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
1413
- xml = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml
1414
-
1415
- resp = XML::Smart.string(CGI::unescapeHTML(soap[0]))
1416
- resp.find("descendant::tns:show", {"tns"=&gt;"http://sitec.at/Service"}).each do |show|
1417
- xml &lt;&lt; show.dump
1418
- end
1419
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = soap
1420
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
1421
- </manipulate>
1422
- </alternative>
1423
- <otherwise>
1424
- <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
1425
-
1426
- puts "An error occured in Schedule_Error"
1427
- puts error
1428
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
1429
- </manipulate>
1430
- </otherwise>
1431
- </choose>
1432
- </loop>
1433
- <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
1434
-
1435
- list = XML::Smart.string("&lt;list_of_shows/&gt;")
1436
- xml.each do |e|
1437
- res = XML::Smart.string(e)
1438
- node = list.root.add("show")
1439
- node.add("cinema_uri", "http://localhost:9290/groups/Cinemas/Soap/SCNHollywood")
1440
- node.add("show_id", res.find("//id").first.text)
1441
- node.add("title", res.find("//filmname").first.text)
1442
- node.add("date", res.find("//date").first.text)
1443
- node.add("time", res.find("//time").first.text)
1444
- node.add("hall", res.find("//hall").first.text)
1445
- end
1446
- list = list.root.dump
1447
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml = xml
1448
- data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//Soap/SCNHollywood']['list'] = list
1449
- </manipulate>
1450
- </alternative>
1451
- <otherwise>
1452
- <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
1453
-
1454
- puts "An eror occured in FilmInfo_Error"
1455
- puts error
1456
- data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response = error
1457
- </manipulate>
1458
- </otherwise>
1459
- </choose>
1460
- <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")
1461
- endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_service")
1462
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__soap_response")
1463
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__xml")
1464
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_ids")
1465
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__film_id")
1466
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__date2")
1467
- data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__Soap_SCNHollywood__status")
1468
- </manipulate>
1469
- </parallel_branch>
1470
- </parallel>
1471
- </group>
1472
- <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"]
1473
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1474
- if result[0].class.to_s == "Hash"
1475
- result[0] = RescueHash.new_from_obj(result[0])
1476
- end
1477
- data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
1478
- </manipulate>
1479
- </group>
1480
- <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']
1481
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1482
- if result[0].class.to_s == "Hash"
1483
- result[0] = RescueHash.new_from_obj(result[0])
1484
- end
1485
- data.use_repo_cinemas__list = result[0].value('list')
1486
- </manipulate>
1487
- <manipulate id="remove_objects_of_use_repo_cinemas__call_find" generated="true"> data.delete(:"result_use_repo_cinemas__call_find")
1488
- </manipulate>
1489
- <manipulate id="use_repo_cinemas__merge_result" oid="merge_result">list = data.use_repo_cinemas__list
1490
- m_list = data.use_repo_cinemas__list_merge
1491
- nos = data.use_repo_cinemas__number_of_shows
1492
-
1493
- title = data.title
1494
- date = data.date
1495
- xml = XML::Smart.string("&lt;list_of_shows/&gt;")
1496
- if list.class == Array
1497
- list.each do |v|
1498
- l = XML::Smart.string(v)
1499
- xml.root.add(l.find("//show"))
1500
- end
1501
- elsif list.class == String
1502
- l = XML::Smart.string(list)
1503
- xml.root.add(l.find("//show"))
1504
- else
1505
- raise "Unexpected class of return-value - class: #{list.class}"
1506
- end
1507
- m_list = xml.root.dump
1508
- nos = xml.root.children.length
1509
- data.use_repo_cinemas__list = list
1510
- data.use_repo_cinemas__list_merge = m_list
1511
- data.use_repo_cinemas__number_of_shows = nos
1512
- </manipulate>
1513
- <choose>
1514
- <alternative condition="(data.use_repo_cinemas__number_of_shows.&gt;(0))">
1515
- <call id="use_repo_cinemas__perform_select" endpoint="select" oid="perform_select">
1516
- <parameters>
1517
- <templates>
1518
- <uri>'http://localhost:9290/groups/Cinemas//operations/search_and_book/templates/perform_select'</uri>
1519
- <name>'Select_Show'</name>
1520
- <lang>'EN'</lang>
1521
- </templates>
1522
- <method>post</method>
1523
- <info>true</info>
1524
- <parameters>
1525
- <data>data.use_repo_cinemas__list_merge</data>
1526
- </parameters>
1527
- </parameters>
1528
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1529
- if result[0].class.to_s == "Hash"
1530
- result[0] = RescueHash.new_from_obj(result[0])
1531
- end
1532
- data.use_repo_cinemas__show_id = result[0].value('show_id')
1533
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1534
- if result[0].class.to_s == "Hash"
1535
- result[0] = RescueHash.new_from_obj(result[0])
1536
- end
1537
- data.use_repo_cinemas__endpoint = result[0].value('target')
1538
- data.result_use_repo_cinemas['status'] = result[1]
1539
-
1540
- # 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.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
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.result_use_repo_cinemas['selected_date'] = result[0].value('date')
1550
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1551
- if result[0].class.to_s == "Hash"
1552
- result[0] = RescueHash.new_from_obj(result[0])
1553
- end
1554
- data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
1555
- # Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1556
- if result[0].class.to_s == "Hash"
1557
- result[0] = RescueHash.new_from_obj(result[0])
1558
- end
1559
- data.result_use_repo_cinemas['hall'] = result[0].value('hall')
1560
- </manipulate>
1561
- </call>
1562
- <manipulate id="use_repo_cinemas__set_selected_endpoint" oid="set_selected_endpoint">ep = data.use_repo_cinemas__endpoint
1563
- selected = endpoints.use_repo_cinemas__selected_cinema
1564
-
1565
- selected = ep
1566
- data.use_repo_cinemas__endpoint = ep
1567
- endpoints.use_repo_cinemas__selected_cinema = selected
1568
- </manipulate>
1569
- <call id="use_repo_cinemas__call_book" endpoint="use_repo_cinemas__selected_cinema" oid="call_book">
1570
- <parameters>
1571
- <service>
1572
- <serviceoperation>"book"</serviceoperation>
1573
- <injection_handler>endpoints.injection_handler</injection_handler>
1574
- </service>
1575
- <parameters>
1576
- <show_id>data.use_repo_cinemas__show_id</show_id>
1577
- </parameters>
1578
- </parameters>
1579
- <manipulate output="result"># Dirty, Dirty, Dirty Monkey-Hacking, but I coudln't figure out the JSON Problem with this Object
1580
- if result[0].class.to_s == "Hash"
1581
- result[0] = RescueHash.new_from_obj(result[0])
1582
- end
1583
- data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
1584
- </manipulate>
1585
- </call>
1586
- <manipulate id="use_repo_cinemas__set_status_success" oid="set_status_success">
1587
- status = 200
1588
- data.result_use_repo_cinemas['status'] = status
1589
- </manipulate>
1590
- </alternative>
1591
- <otherwise>
1592
- <manipulate id="use_repo_cinemas__set_status_failed" oid="set_status_failed">
1593
- status = 404
1594
- data.result_use_repo_cinemas['status'] = status
1595
- </manipulate>
1596
- </otherwise>
1597
- </choose>
1598
- </group>
1599
- <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']
1600
-
1601
- res = result[0]
1602
- if res['status'] == 200
1603
- # Computing service responses
1604
- data.reservation_number = res['reservation_id']
1605
- data.starting_time = res['starting_time']
1606
- data.selected_title = res['movie_title']
1607
- data.selected_date = res['selected_date']
1608
- data.hall = res['hall']
1609
- # Computing properties of executed services
1610
- perf_book = properties['call_book']['perform_book']
1611
- 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']}"
1612
- end
1613
- </manipulate>
1614
- <manipulate id="remove_objects_of_use_repo_cinemas" generated="true"> data.delete(:"result_use_repo_cinemas")
1615
- data.delete(:"properties_use_repo_cinemas")
1616
- endpoints.delete(:"use_repo_cinemas__selected_cinema")
1617
- data.delete(:"use_repo_cinemas__show_id")
1618
- data.delete(:"use_repo_cinemas__list")
1619
- data.delete(:"use_repo_cinemas__res")
1620
- data.delete(:"use_repo_cinemas__list_merge")
1621
- data.delete(:"use_repo_cinemas__number_of_shows")
1622
- data.delete(:"use_repo_cinemas__endpoint")
1623
- </manipulate>
1624
- <call id="confirm" endpoint="select">
1625
- <parameters>
1626
- <method>post</method>
1627
- <info>true</info>
1628
- <templates>
1629
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
1630
- <!-- uri>'http://gus.lan/input-forms/cinemas.xsl'</uri -->
1631
- <name>'Cinemas-Output'</name>
1632
- <lang>'EN'</lang>
1633
- </templates>
1634
- <parameters>
1635
- <title>data.selected_title</title>
1636
- <date>data.selected_date</date>
1637
- <time>data.starting_time</time>
1638
- <hall>data.hall</hall>
1639
- <res_nr>data.reservation_number</res_nr>
1640
- <cinema>data.selected_cinema</cinema>
1641
- </parameters>
1642
- </parameters>
1643
- </call>
1644
- </description>
1645
- </description>
1646
- <transformation>
1647
- <!--{{{-->
1648
- <!--}}}-->
1649
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0" version="1.0">
1650
- <xsl:output method="text"/>
1651
- <xsl:strip-space elements="*"/>
1652
- <xsl:variable name="myspacemultiplier">2</xsl:variable>
1653
- <xsl:template match="/">
1654
- <xsl:apply-templates select="//d:description"/>
1655
- </xsl:template>
1656
- <xsl:template match="//d:description">
1657
- <xsl:apply-templates>
1658
- <xsl:with-param name="myspace">
1659
- <xsl:value-of select="-1*$myspacemultiplier"/>
1660
- </xsl:with-param>
1661
- </xsl:apply-templates>
1662
- </xsl:template>
1663
- <xsl:template match="*">
1664
- <xsl:param name="myspace"/>
1665
- <xsl:call-template name="print-space">
1666
- <xsl:with-param name="i">1</xsl:with-param>
1667
- <xsl:with-param name="count">
1668
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1669
- </xsl:with-param>
1670
- </xsl:call-template>
1671
- <xsl:if test="name()='call' or name()='manipulate'">
1672
- <xsl:text>activity :</xsl:text>
1673
- <xsl:value-of select="@id"/>
1674
- </xsl:if>
1675
- <xsl:if test="name()='call'">
1676
- <xsl:text>, :call, :</xsl:text>
1677
- <xsl:value-of select="@endpoint"/>
1678
- <xsl:apply-templates select="d:parameters"/>
1679
- <xsl:if test="@oid">
1680
- <xsl:text>, :'call-oid' =&gt; '</xsl:text>
1681
- <xsl:value-of select="@oid"/>
1682
- <xsl:text>'</xsl:text>
1683
- </xsl:if>
1684
- <xsl:apply-templates select="d:manipulate" mode="part-of-call">
1685
- <xsl:with-param name="myspace">
1686
- <xsl:value-of select="$myspace"/>
1687
- </xsl:with-param>
1688
- </xsl:apply-templates>
1689
- <xsl:call-template name="print-newline"/>
1690
- </xsl:if>
1691
- <xsl:if test="name()='manipulate'">
1692
- <xsl:text>, :manipulate</xsl:text>
1693
- <!-- RESCUE: manipulate with dataelement as result object -->
1694
- <xsl:if test="@data">
1695
- <xsl:text>, nil,</xsl:text>
1696
- <xsl:value-of select="@data"/>
1697
- </xsl:if>
1698
- <!-- RESCUE -->
1699
- <xsl:call-template name="print-content">
1700
- <xsl:with-param name="myspace">
1701
- <xsl:value-of select="$myspace"/>
1702
- </xsl:with-param>
1703
- </xsl:call-template>
1704
- <xsl:call-template name="print-newline"/>
1705
- </xsl:if>
1706
- <xsl:if test="name()='parallel'">
1707
- <xsl:text>parallel</xsl:text>
1708
- <xsl:if test="@wait">
1709
- <xsl:text> :wait =&gt; </xsl:text>
1710
- <xsl:value-of select="@wait"/>
1711
- </xsl:if>
1712
- <xsl:text> do</xsl:text>
1713
- <xsl:call-template name="print-newline"/>
1714
- <xsl:apply-templates>
1715
- <xsl:with-param name="myspace">
1716
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1717
- </xsl:with-param>
1718
- </xsl:apply-templates>
1719
- <xsl:call-template name="print-space">
1720
- <xsl:with-param name="i">1</xsl:with-param>
1721
- <xsl:with-param name="count">
1722
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1723
- </xsl:with-param>
1724
- </xsl:call-template>
1725
- <xsl:text>end</xsl:text>
1726
- <xsl:call-template name="print-newline"/>
1727
- </xsl:if>
1728
- <xsl:if test="name()='loop'">
1729
- <xsl:text>loop </xsl:text>
1730
- <xsl:if test="@pre_test">
1731
- <xsl:text>pre_test{</xsl:text>
1732
- <xsl:value-of select="@pre_test"/>
1733
- <xsl:text>} </xsl:text>
1734
- </xsl:if>
1735
- <xsl:if test="@post_test">
1736
- <xsl:text>post_test{</xsl:text>
1737
- <xsl:value-of select="@post_test"/>
1738
- <xsl:text>} </xsl:text>
1739
- </xsl:if>
1740
- <xsl:text>do</xsl:text>
1741
- <xsl:call-template name="print-newline"/>
1742
- <xsl:apply-templates>
1743
- <xsl:with-param name="myspace">
1744
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1745
- </xsl:with-param>
1746
- </xsl:apply-templates>
1747
- <xsl:call-template name="print-space">
1748
- <xsl:with-param name="i">1</xsl:with-param>
1749
- <xsl:with-param name="count">
1750
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1751
- </xsl:with-param>
1752
- </xsl:call-template>
1753
- <xsl:text>end</xsl:text>
1754
- <xsl:call-template name="print-newline"/>
1755
- </xsl:if>
1756
- <xsl:if test="name()='choose'">
1757
- <xsl:text>choose do</xsl:text>
1758
- <xsl:call-template name="print-newline"/>
1759
- <xsl:apply-templates>
1760
- <xsl:with-param name="myspace">
1761
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1762
- </xsl:with-param>
1763
- </xsl:apply-templates>
1764
- <xsl:call-template name="print-space">
1765
- <xsl:with-param name="i">1</xsl:with-param>
1766
- <xsl:with-param name="count">
1767
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1768
- </xsl:with-param>
1769
- </xsl:call-template>
1770
- <xsl:text>end</xsl:text>
1771
- <xsl:call-template name="print-newline"/>
1772
- </xsl:if>
1773
- <xsl:if test="name()='group'">
1774
- <xsl:apply-templates>
1775
- <xsl:with-param name="myspace">
1776
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1777
- </xsl:with-param>
1778
- </xsl:apply-templates>
1779
- <xsl:call-template name="print-newline"/>
1780
- </xsl:if>
1781
- <xsl:if test="name()='critical'">
1782
- <xsl:text>critical :</xsl:text>
1783
- <xsl:value-of select="@sid"/>
1784
- <xsl:text> do</xsl:text>
1785
- <xsl:call-template name="print-newline"/>
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-space">
1792
- <xsl:with-param name="i">1</xsl:with-param>
1793
- <xsl:with-param name="count">
1794
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1795
- </xsl:with-param>
1796
- </xsl:call-template>
1797
- <xsl:text>end</xsl:text>
1798
- <xsl:call-template name="print-newline"/>
1799
- </xsl:if>
1800
- </xsl:template>
1801
- <xsl:template match="d:alternative">
1802
- <xsl:param name="myspace"/>
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>alternative </xsl:text>
1810
- <xsl:value-of select="@condition"/>
1811
- <xsl:text> do</xsl:text>
1812
- <xsl:call-template name="print-newline"/>
1813
- <xsl:apply-templates>
1814
- <xsl:with-param name="myspace">
1815
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1816
- </xsl:with-param>
1817
- </xsl:apply-templates>
1818
- <xsl:call-template name="print-space">
1819
- <xsl:with-param name="i">1</xsl:with-param>
1820
- <xsl:with-param name="count">
1821
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1822
- </xsl:with-param>
1823
- </xsl:call-template>
1824
- <xsl:text>end</xsl:text>
1825
- <xsl:call-template name="print-newline"/>
1826
- </xsl:template>
1827
- <xsl:template match="d:otherwise">
1828
- <xsl:param name="myspace"/>
1829
- <xsl:call-template name="print-space">
1830
- <xsl:with-param name="i">1</xsl:with-param>
1831
- <xsl:with-param name="count">
1832
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1833
- </xsl:with-param>
1834
- </xsl:call-template>
1835
- <xsl:text>otherwise do</xsl:text>
1836
- <xsl:call-template name="print-newline"/>
1837
- <xsl:apply-templates>
1838
- <xsl:with-param name="myspace">
1839
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1840
- </xsl:with-param>
1841
- </xsl:apply-templates>
1842
- <xsl:call-template name="print-space">
1843
- <xsl:with-param name="i">1</xsl:with-param>
1844
- <xsl:with-param name="count">
1845
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1846
- </xsl:with-param>
1847
- </xsl:call-template>
1848
- <xsl:text>end</xsl:text>
1849
- <xsl:call-template name="print-newline"/>
1850
- </xsl:template>
1851
- <xsl:template match="d:parallel_branch">
1852
- <xsl:param name="myspace"/>
1853
- <xsl:call-template name="print-space">
1854
- <xsl:with-param name="i">1</xsl:with-param>
1855
- <xsl:with-param name="count">
1856
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1857
- </xsl:with-param>
1858
- </xsl:call-template>
1859
- <xsl:text>parallel_branch</xsl:text>
1860
- <xsl:if test="@pass">
1861
- <xsl:text> </xsl:text>
1862
- <xsl:value-of select="@pass"/>
1863
- </xsl:if>
1864
- <xsl:text> do</xsl:text>
1865
- <xsl:if test="@local">
1866
- <xsl:text> |</xsl:text>
1867
- <xsl:value-of select="@local"/>
1868
- <xsl:text>|</xsl:text>
1869
- </xsl:if>
1870
- <xsl:call-template name="print-newline"/>
1871
- <xsl:apply-templates>
1872
- <xsl:with-param name="myspace">
1873
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1874
- </xsl:with-param>
1875
- </xsl:apply-templates>
1876
- <xsl:call-template name="print-space">
1877
- <xsl:with-param name="i">1</xsl:with-param>
1878
- <xsl:with-param name="count">
1879
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1880
- </xsl:with-param>
1881
- </xsl:call-template>
1882
- <xsl:text>end</xsl:text>
1883
- <xsl:call-template name="print-newline"/>
1884
- </xsl:template>
1885
- <xsl:template match="d:parameters">
1886
- <xsl:apply-templates select="d:*" mode="parameter"/>
1887
- </xsl:template>
1888
- <xsl:template match="d:*" mode="parameter">
1889
- <xsl:text>, :</xsl:text>
1890
- <xsl:value-of select="name()"/>
1891
- <xsl:text> =&gt; </xsl:text>
1892
- <xsl:choose>
1893
- <xsl:when test="count(*) &gt; 0">
1894
- <xsl:text>[</xsl:text>
1895
- <xsl:apply-templates select="d:*" mode="sub-parameter"/>
1896
- <xsl:text>]</xsl:text>
1897
- </xsl:when>
1898
- <xsl:otherwise>
1899
- <xsl:choose>
1900
- <xsl:when test="@type = 'symbolic'">
1901
- <xsl:value-of select="text()"/>
1902
- </xsl:when>
1903
- <xsl:otherwise>
1904
- <xsl:text>"</xsl:text>
1905
- <xsl:value-of select="text()"/>
1906
- <xsl:text>"</xsl:text>
1907
- </xsl:otherwise>
1908
- </xsl:choose>
1909
- </xsl:otherwise>
1910
- </xsl:choose>
1911
- </xsl:template>
1912
- <xsl:template match="d:*" mode="sub-parameter">
1913
- <xsl:text> { :</xsl:text>
1914
- <xsl:value-of select="name()"/>
1915
- <xsl:text> =&gt; </xsl:text>
1916
- <xsl:value-of select="text()"/>
1917
- <xsl:text> }</xsl:text>
1918
- <xsl:choose>
1919
- <xsl:when test="generate-id(.) = generate-id(../*[last()])">
1920
- <xsl:text> </xsl:text>
1921
- </xsl:when>
1922
- <xsl:otherwise>
1923
- <xsl:text>,</xsl:text>
1924
- </xsl:otherwise>
1925
- </xsl:choose>
1926
- </xsl:template>
1927
- <xsl:template match="d:manipulate" mode="part-of-call">
1928
- <xsl:param name="myspace"/>
1929
- <xsl:call-template name="print-content">
1930
- <xsl:with-param name="myspace">
1931
- <xsl:value-of select="$myspace"/>
1932
- </xsl:with-param>
1933
- </xsl:call-template>
1934
- </xsl:template>
1935
- <xsl:template name="print-content">
1936
- <xsl:param name="myspace"/>
1937
- <xsl:if test="text()">
1938
- <xsl:text> do </xsl:text>
1939
- <xsl:if test="@output">
1940
- <xsl:text>|</xsl:text>
1941
- <xsl:value-of select="@output"/>
1942
- <xsl:text>|</xsl:text>
1943
- </xsl:if>
1944
- <xsl:call-template name="print-newline"/>
1945
- <xsl:value-of select="text()"/>
1946
- <xsl:call-template name="print-newline"/>
1947
- <xsl:call-template name="print-space">
1948
- <xsl:with-param name="i">1</xsl:with-param>
1949
- <xsl:with-param name="count">
1950
- <xsl:value-of select="$myspace+$myspacemultiplier"/>
1951
- </xsl:with-param>
1952
- </xsl:call-template>
1953
- <xsl:text>end</xsl:text>
1954
- </xsl:if>
1955
- </xsl:template>
1956
- <xsl:template name="print-space">
1957
- <xsl:param name="i"/>
1958
- <xsl:param name="count"/>
1959
- <xsl:if test="$i &lt;= $count">
1960
- <xsl:text> </xsl:text>
1961
- <xsl:call-template name="print-space">
1962
- <xsl:with-param name="i">
1963
- <xsl:value-of select="$i + 1"/>
1964
- </xsl:with-param>
1965
- <xsl:with-param name="count">
1966
- <xsl:value-of select="$count"/>
1967
- </xsl:with-param>
1968
- </xsl:call-template>
1969
- </xsl:if>
1970
- </xsl:template>
1971
- <xsl:template name="print-newline">
1972
- <xsl:text>
1973
- </xsl:text>
1974
- </xsl:template>
1975
- </xsl:stylesheet>
1976
- </transformation>
1977
- </properties>