cpee 1.3.105 → 1.3.106

Sign up to get free protection for your applications and to get access to all the features.
Files changed (500) hide show
  1. checksums.yaml +4 -4
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +11 -11
  4. data/server/instances/1/notifications/topics.xml +39 -0
  5. data/server/instances/1/properties.xml +16 -200
  6. data/server/instances/10/notifications/0ad4ba057d8029cb7baf5080b4defda2/consumer-secret +1 -0
  7. data/server/instances/10/notifications/0ad4ba057d8029cb7baf5080b4defda2/producer-secret +1 -0
  8. data/server/instances/{1/notifications/0010e92c718702beba99b049a92e584d → 10/notifications/0ad4ba057d8029cb7baf5080b4defda2}/subscription.xml +0 -0
  9. data/server/instances/10/notifications/478f55276b76ae33b22591d350253ca1/consumer-secret +1 -0
  10. data/server/instances/10/notifications/478f55276b76ae33b22591d350253ca1/producer-secret +1 -0
  11. data/server/instances/{1/notifications/157078b54cf38e4d9451156da3860adb → 10/notifications/478f55276b76ae33b22591d350253ca1}/subscription.xml +0 -0
  12. data/server/instances/10/notifications/topics.xml +39 -0
  13. data/server/instances/10/properties.xml +106 -36
  14. data/server/instances/11/notifications/553000a7664a07a74655e8c53162f47b/consumer-secret +1 -0
  15. data/server/instances/11/notifications/553000a7664a07a74655e8c53162f47b/producer-secret +1 -0
  16. data/server/instances/{1/notifications/1918856047a1c6b18a7610e44a89a01b → 11/notifications/553000a7664a07a74655e8c53162f47b}/subscription.xml +0 -0
  17. data/server/instances/11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab/consumer-secret +1 -0
  18. data/server/instances/11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab/producer-secret +1 -0
  19. data/server/instances/{1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd → 11/notifications/ddc7f734e58e8cbf3dbd0eb13dbbb3ab}/subscription.xml +0 -0
  20. data/server/instances/11/notifications/topics.xml +39 -0
  21. data/server/instances/11/properties.xml +1611 -151
  22. data/server/instances/12/notifications/72b0aa58804826bbbccc6232b458e438/consumer-secret +1 -0
  23. data/server/instances/12/notifications/72b0aa58804826bbbccc6232b458e438/producer-secret +1 -0
  24. data/server/instances/{1/notifications/1d67171cffc19ef276c6422466a37a93 → 12/notifications/72b0aa58804826bbbccc6232b458e438}/subscription.xml +0 -0
  25. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/consumer-secret +1 -0
  26. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/producer-secret +1 -0
  27. data/server/instances/12/notifications/f85e429bbd680bb8fbe9e3141eb712de/subscription.xml +5 -0
  28. data/server/instances/12/notifications/topics.xml +39 -0
  29. data/server/instances/12/properties.xml +107 -169
  30. data/server/instances/13/notifications/0db5243cacbb67f6b9f2796b6e9e1390/consumer-secret +1 -0
  31. data/server/instances/13/notifications/0db5243cacbb67f6b9f2796b6e9e1390/producer-secret +1 -0
  32. data/server/instances/{1/notifications/21409c12c1e724205b543b96c00ccb6a → 13/notifications/0db5243cacbb67f6b9f2796b6e9e1390}/subscription.xml +0 -0
  33. data/server/instances/13/notifications/topics.xml +39 -0
  34. data/server/instances/13/properties.xml +1641 -36
  35. data/server/instances/14/notifications/f2740798ebfb900dbdae5f45915aca3f/consumer-secret +1 -0
  36. data/server/instances/14/notifications/f2740798ebfb900dbdae5f45915aca3f/producer-secret +1 -0
  37. data/server/instances/{1/notifications/2c11156c72dbd2f67356e3c05b93b8d1 → 14/notifications/f2740798ebfb900dbdae5f45915aca3f}/subscription.xml +0 -0
  38. data/server/instances/14/notifications/topics.xml +39 -0
  39. data/server/instances/14/properties.xml +1952 -0
  40. data/server/instances/15/notifications/8d3a1995549bd39b611a290bd83f8bdd/consumer-secret +1 -0
  41. data/server/instances/15/notifications/8d3a1995549bd39b611a290bd83f8bdd/producer-secret +1 -0
  42. data/server/instances/{1/notifications/66ad546f13c6c7c84f36215c24dd2e6e → 15/notifications/8d3a1995549bd39b611a290bd83f8bdd}/subscription.xml +0 -0
  43. data/server/instances/15/notifications/topics.xml +39 -0
  44. data/server/instances/15/properties.xml +1989 -0
  45. data/server/instances/16/notifications/329d3891fbf27e0c206d19f09395b74a/consumer-secret +1 -0
  46. data/server/instances/16/notifications/329d3891fbf27e0c206d19f09395b74a/producer-secret +1 -0
  47. data/server/instances/{1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb → 16/notifications/329d3891fbf27e0c206d19f09395b74a}/subscription.xml +0 -0
  48. data/server/instances/16/notifications/topics.xml +39 -0
  49. data/server/instances/16/properties.xml +362 -0
  50. data/server/instances/17/notifications/26557f82ecd701a2b3b5d295085f78b8/consumer-secret +1 -0
  51. data/server/instances/17/notifications/26557f82ecd701a2b3b5d295085f78b8/producer-secret +1 -0
  52. data/server/instances/{1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf → 17/notifications/26557f82ecd701a2b3b5d295085f78b8}/subscription.xml +0 -0
  53. data/server/instances/17/notifications/topics.xml +39 -0
  54. data/server/instances/17/properties.xml +1989 -0
  55. data/server/instances/18/notifications/07c4879f809677265232520a8e27aef1/consumer-secret +1 -0
  56. data/server/instances/18/notifications/07c4879f809677265232520a8e27aef1/producer-secret +1 -0
  57. data/server/instances/{1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db → 18/notifications/07c4879f809677265232520a8e27aef1}/subscription.xml +0 -0
  58. data/server/instances/18/notifications/topics.xml +39 -0
  59. data/server/instances/18/properties.xml +1448 -0
  60. data/server/instances/19/notifications/01d8db23c7f31c03f6bef07d56969c20/consumer-secret +1 -0
  61. data/server/instances/19/notifications/01d8db23c7f31c03f6bef07d56969c20/producer-secret +1 -0
  62. data/server/instances/{1/notifications/92a147faaa1c31c6dc4cf000897f2e18 → 19/notifications/01d8db23c7f31c03f6bef07d56969c20}/subscription.xml +0 -0
  63. data/server/instances/19/notifications/025e6e7a8afc2da12d55892c7b5e5da9/consumer-secret +1 -0
  64. data/server/instances/19/notifications/025e6e7a8afc2da12d55892c7b5e5da9/producer-secret +1 -0
  65. data/server/instances/{1/notifications/9f23b768395a19cc1dd6c2d2a243c78e → 19/notifications/025e6e7a8afc2da12d55892c7b5e5da9}/subscription.xml +0 -0
  66. data/server/instances/19/notifications/073c4d8dea552666408f93edd0c8053b/consumer-secret +1 -0
  67. data/server/instances/19/notifications/073c4d8dea552666408f93edd0c8053b/producer-secret +1 -0
  68. data/server/instances/{1/notifications/c1a285ed17c5d283478cc5fc6cfc628c → 19/notifications/073c4d8dea552666408f93edd0c8053b}/subscription.xml +0 -0
  69. data/server/instances/19/notifications/0968164702074c2c04e185ec74e9aec1/consumer-secret +1 -0
  70. data/server/instances/19/notifications/0968164702074c2c04e185ec74e9aec1/producer-secret +1 -0
  71. data/server/instances/{1/notifications/d705b78256ff1dc5818d20994f16fada → 19/notifications/0968164702074c2c04e185ec74e9aec1}/subscription.xml +0 -0
  72. data/server/instances/19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac/consumer-secret +1 -0
  73. data/server/instances/19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac/producer-secret +1 -0
  74. data/server/instances/{1/notifications/e4e2495e44235851b958ac6938a08140 → 19/notifications/12fb1b6fc23e8cc59fc56d2f2c2db4ac}/subscription.xml +0 -0
  75. data/server/instances/19/notifications/2fe0c6322f193588872058ffac82492d/consumer-secret +1 -0
  76. data/server/instances/19/notifications/2fe0c6322f193588872058ffac82492d/producer-secret +1 -0
  77. data/server/instances/{1/notifications/f81368a6d30d4a07eedb1db5c5cde084 → 19/notifications/2fe0c6322f193588872058ffac82492d}/subscription.xml +0 -0
  78. data/server/instances/19/notifications/3136bfa5955a8cb5f6563785a8edc318/consumer-secret +1 -0
  79. data/server/instances/19/notifications/3136bfa5955a8cb5f6563785a8edc318/producer-secret +1 -0
  80. data/server/instances/{10/notifications/0867c4a937f882af259137e36d331261 → 19/notifications/3136bfa5955a8cb5f6563785a8edc318}/subscription.xml +0 -0
  81. data/server/instances/19/notifications/3706a8b351d6392ac07d20179c254f55/consumer-secret +1 -0
  82. data/server/instances/19/notifications/3706a8b351d6392ac07d20179c254f55/producer-secret +1 -0
  83. data/server/instances/{10/notifications/28acb605c56588ec8e47431c1fcf0b20 → 19/notifications/3706a8b351d6392ac07d20179c254f55}/subscription.xml +0 -0
  84. data/server/instances/19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a/consumer-secret +1 -0
  85. data/server/instances/19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a/producer-secret +1 -0
  86. data/server/instances/{10/notifications/31d3f699def1d1e86dc18ef421f718ad → 19/notifications/3cc0b91bed7457ac07b9ae0e673ef55a}/subscription.xml +0 -0
  87. data/server/instances/19/notifications/458b06a79f956e42eb3fe79ffa12fd63/consumer-secret +1 -0
  88. data/server/instances/19/notifications/458b06a79f956e42eb3fe79ffa12fd63/producer-secret +1 -0
  89. data/server/instances/{10/notifications/380b57220000c45342fc56a1ed8e9e3f → 19/notifications/458b06a79f956e42eb3fe79ffa12fd63}/subscription.xml +0 -0
  90. data/server/instances/19/notifications/49417e6e473f568397240d2b606e1b04/consumer-secret +1 -0
  91. data/server/instances/19/notifications/49417e6e473f568397240d2b606e1b04/producer-secret +1 -0
  92. data/server/instances/{10/notifications/41eeb5d90b513781fb4b440cb97ca7f1 → 19/notifications/49417e6e473f568397240d2b606e1b04}/subscription.xml +0 -0
  93. data/server/instances/19/notifications/5307f0fe49c899b3a03ec728aa987796/consumer-secret +1 -0
  94. data/server/instances/19/notifications/5307f0fe49c899b3a03ec728aa987796/producer-secret +1 -0
  95. data/server/instances/{10/notifications/4d8c1b3a8dfdacac98144fad072c46d8 → 19/notifications/5307f0fe49c899b3a03ec728aa987796}/subscription.xml +0 -0
  96. data/server/instances/19/notifications/606911cd8ee90d60031db353ed22bdf8/consumer-secret +1 -0
  97. data/server/instances/19/notifications/606911cd8ee90d60031db353ed22bdf8/producer-secret +1 -0
  98. data/server/instances/{10/notifications/4dde696cfb001e00a7efbd8e86ba227d → 19/notifications/606911cd8ee90d60031db353ed22bdf8}/subscription.xml +0 -0
  99. data/server/instances/19/notifications/6129250b57b70d658b5286f688f319eb/consumer-secret +1 -0
  100. data/server/instances/19/notifications/6129250b57b70d658b5286f688f319eb/producer-secret +1 -0
  101. data/server/instances/{10/notifications/4e1c0065dd95f7c175bbccb874f0baea → 19/notifications/6129250b57b70d658b5286f688f319eb}/subscription.xml +0 -0
  102. data/server/instances/19/notifications/636f948cce52233117dc65bcfa493f24/consumer-secret +1 -0
  103. data/server/instances/19/notifications/636f948cce52233117dc65bcfa493f24/producer-secret +1 -0
  104. data/server/instances/{10/notifications/6198fb7d6a8249f7820e3e57eeefa8af → 19/notifications/636f948cce52233117dc65bcfa493f24}/subscription.xml +0 -0
  105. data/server/instances/19/notifications/69df7e66b7b840435ff262401e76947f/consumer-secret +1 -0
  106. data/server/instances/19/notifications/69df7e66b7b840435ff262401e76947f/producer-secret +1 -0
  107. data/server/instances/{10/notifications/6aeb90da52abc150f0f0135d8ba2dbac → 19/notifications/69df7e66b7b840435ff262401e76947f}/subscription.xml +0 -0
  108. data/server/instances/19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9/consumer-secret +1 -0
  109. data/server/instances/19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9/producer-secret +1 -0
  110. data/server/instances/{10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a → 19/notifications/6b47eedbc9fa7876a67b0089d9ae22a9}/subscription.xml +0 -0
  111. data/server/instances/19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1/consumer-secret +1 -0
  112. data/server/instances/19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1/producer-secret +1 -0
  113. data/server/instances/{10/notifications/7092411a6bb6822f651798fdcd3c4787 → 19/notifications/6d7ccf9e66baa7742b5a4ce8ddd4b3c1}/subscription.xml +0 -0
  114. data/server/instances/19/notifications/78d645b46a63a16f1fe83c7f58de8765/consumer-secret +1 -0
  115. data/server/instances/19/notifications/78d645b46a63a16f1fe83c7f58de8765/producer-secret +1 -0
  116. data/server/instances/{10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3 → 19/notifications/78d645b46a63a16f1fe83c7f58de8765}/subscription.xml +0 -0
  117. data/server/instances/19/notifications/81339ee147ce8dea48dece1d9298503a/consumer-secret +1 -0
  118. data/server/instances/19/notifications/81339ee147ce8dea48dece1d9298503a/producer-secret +1 -0
  119. data/server/instances/{10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2 → 19/notifications/81339ee147ce8dea48dece1d9298503a}/subscription.xml +0 -0
  120. data/server/instances/19/notifications/94d46212b220e994d9fa6cf5558b1eb3/consumer-secret +1 -0
  121. data/server/instances/19/notifications/94d46212b220e994d9fa6cf5558b1eb3/producer-secret +1 -0
  122. data/server/instances/{10/notifications/85760dad8f7abbd73ae1dd44140dabf1 → 19/notifications/94d46212b220e994d9fa6cf5558b1eb3}/subscription.xml +0 -0
  123. data/server/instances/19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e/consumer-secret +1 -0
  124. data/server/instances/19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e/producer-secret +1 -0
  125. data/server/instances/{10/notifications/8b9a96d109d44a1fc22858006c0f0e16 → 19/notifications/ad0a548dfd9ba6b9aab8ba11dd67ff9e}/subscription.xml +0 -0
  126. data/server/instances/19/notifications/ad87f3e3e0405b707b797d71ee96b0b3/consumer-secret +1 -0
  127. data/server/instances/19/notifications/ad87f3e3e0405b707b797d71ee96b0b3/producer-secret +1 -0
  128. data/server/instances/{10/notifications/9120a477e64d7debae2cda964a9948a0 → 19/notifications/ad87f3e3e0405b707b797d71ee96b0b3}/subscription.xml +0 -0
  129. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/consumer-secret +1 -0
  130. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/producer-secret +1 -0
  131. data/server/instances/19/notifications/c00616b96be83f9765d5d9eb2da0fddb/subscription.xml +6 -0
  132. data/server/instances/19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa/consumer-secret +1 -0
  133. data/server/instances/19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa/producer-secret +1 -0
  134. data/server/instances/{10/notifications/93c5a5ab72a745c0f9fffe2fe58db205 → 19/notifications/c1ca00b2faa342b72fa0c05c6f1389fa}/subscription.xml +0 -0
  135. data/server/instances/19/notifications/d2010a88f6612f1377e21544c9e88758/consumer-secret +1 -0
  136. data/server/instances/19/notifications/d2010a88f6612f1377e21544c9e88758/producer-secret +1 -0
  137. data/server/instances/{10/notifications/a8db1498388588bddf518878263fd898 → 19/notifications/d2010a88f6612f1377e21544c9e88758}/subscription.xml +0 -0
  138. data/server/instances/19/notifications/d276ebce5c305f46f8e72fe8c87f81ba/consumer-secret +1 -0
  139. data/server/instances/19/notifications/d276ebce5c305f46f8e72fe8c87f81ba/producer-secret +1 -0
  140. data/server/instances/{10/notifications/b534f057c1c97f65e68f59427958e78d → 19/notifications/d276ebce5c305f46f8e72fe8c87f81ba}/subscription.xml +0 -0
  141. data/server/instances/19/notifications/d62cbaaf58d06c84f59cf16fab21587f/consumer-secret +1 -0
  142. data/server/instances/19/notifications/d62cbaaf58d06c84f59cf16fab21587f/producer-secret +1 -0
  143. data/server/instances/{10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4 → 19/notifications/d62cbaaf58d06c84f59cf16fab21587f}/subscription.xml +0 -0
  144. data/server/instances/19/notifications/dd3dae13d8173f5534872b5eea75251d/consumer-secret +1 -0
  145. data/server/instances/19/notifications/dd3dae13d8173f5534872b5eea75251d/producer-secret +1 -0
  146. data/server/instances/{10/notifications/bc597391804363834987804436b8b63b → 19/notifications/dd3dae13d8173f5534872b5eea75251d}/subscription.xml +0 -0
  147. data/server/instances/19/notifications/eb02040474c60246db5616dc7330f20d/consumer-secret +1 -0
  148. data/server/instances/19/notifications/eb02040474c60246db5616dc7330f20d/producer-secret +1 -0
  149. data/server/instances/{10/notifications/bf2f6599eebcd9a08e47bdafd4a67660 → 19/notifications/eb02040474c60246db5616dc7330f20d}/subscription.xml +0 -0
  150. data/server/instances/19/notifications/ec6797efe5554a38ff6008649dfca18d/consumer-secret +1 -0
  151. data/server/instances/19/notifications/ec6797efe5554a38ff6008649dfca18d/producer-secret +1 -0
  152. data/server/instances/{10/notifications/db9cf0ae80bd61e6124c382b992a1550 → 19/notifications/ec6797efe5554a38ff6008649dfca18d}/subscription.xml +0 -0
  153. data/server/instances/19/notifications/ec80b03a1271529a846c148a7deb50bc/consumer-secret +1 -0
  154. data/server/instances/19/notifications/ec80b03a1271529a846c148a7deb50bc/producer-secret +1 -0
  155. data/server/instances/{10/notifications/e528089610c991500eb2e8b094f6f169 → 19/notifications/ec80b03a1271529a846c148a7deb50bc}/subscription.xml +0 -0
  156. data/server/instances/19/notifications/f347fe875a00ca7248a1edc5d2ee3dab/consumer-secret +1 -0
  157. data/server/instances/19/notifications/f347fe875a00ca7248a1edc5d2ee3dab/producer-secret +1 -0
  158. data/server/instances/{10/notifications/e7d3ca382d26b5f5eba00c40c29827da → 19/notifications/f347fe875a00ca7248a1edc5d2ee3dab}/subscription.xml +0 -0
  159. data/server/instances/19/notifications/f811663bd43b80d8b2439cdaf8c11edf/consumer-secret +1 -0
  160. data/server/instances/19/notifications/f811663bd43b80d8b2439cdaf8c11edf/producer-secret +1 -0
  161. data/server/instances/{10/notifications/ebdc914fde6fe299143ae4601c142738 → 19/notifications/f811663bd43b80d8b2439cdaf8c11edf}/subscription.xml +0 -0
  162. data/server/instances/19/notifications/topics.xml +39 -0
  163. data/server/instances/19/properties.xml +414 -0
  164. data/server/instances/2/notifications/6700a633221b71df4781a62d5116f823/consumer-secret +1 -0
  165. data/server/instances/2/notifications/6700a633221b71df4781a62d5116f823/producer-secret +1 -0
  166. data/server/instances/{10/notifications/f26b2b9efc10b9259647cf1a2b934694 → 2/notifications/6700a633221b71df4781a62d5116f823}/subscription.xml +0 -0
  167. data/server/instances/2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088/consumer-secret +1 -0
  168. data/server/instances/2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088/producer-secret +1 -0
  169. data/server/instances/{10/notifications/f4e1d7808171fe7c5fab4a99145ea185 → 2/notifications/80dbaaeb7d56eb1e4d99094f4ac7f088}/subscription.xml +0 -0
  170. data/server/instances/2/notifications/def05a48b306acf06c2bd6e4afe91e93/consumer-secret +1 -0
  171. data/server/instances/2/notifications/def05a48b306acf06c2bd6e4afe91e93/producer-secret +1 -0
  172. data/server/instances/{10/notifications/f7e947a1b4b32f3dad5debd44fc3236b → 2/notifications/def05a48b306acf06c2bd6e4afe91e93}/subscription.xml +0 -0
  173. data/server/instances/2/notifications/topics.xml +39 -0
  174. data/server/instances/2/properties.xml +449 -154
  175. data/server/instances/20/notifications/7b56c2397dd09134e9f5141387136ba0/consumer-secret +1 -0
  176. data/server/instances/20/notifications/7b56c2397dd09134e9f5141387136ba0/producer-secret +1 -0
  177. data/server/instances/{10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6 → 20/notifications/7b56c2397dd09134e9f5141387136ba0}/subscription.xml +0 -0
  178. data/server/instances/20/notifications/topics.xml +39 -0
  179. data/server/instances/20/properties.xml +1664 -0
  180. data/server/instances/21/notifications/03a3029b2b3f1465a0033cd247ae9b18/consumer-secret +1 -0
  181. data/server/instances/21/notifications/03a3029b2b3f1465a0033cd247ae9b18/producer-secret +1 -0
  182. data/server/instances/{11/notifications/134c18da209261bc409ccd137b2e46d3 → 21/notifications/03a3029b2b3f1465a0033cd247ae9b18}/subscription.xml +0 -0
  183. data/server/instances/21/notifications/0a797188e3e82ec753e601c26ab605f6/consumer-secret +1 -0
  184. data/server/instances/21/notifications/0a797188e3e82ec753e601c26ab605f6/producer-secret +1 -0
  185. data/server/instances/{1/notifications/fa690a88cc565dfa53b13ced355cd039 → 21/notifications/0a797188e3e82ec753e601c26ab605f6}/subscription.xml +0 -0
  186. data/server/instances/21/notifications/0ecf3c7a58e94c6aa4841eb61906276b/consumer-secret +1 -0
  187. data/server/instances/21/notifications/0ecf3c7a58e94c6aa4841eb61906276b/producer-secret +1 -0
  188. data/server/instances/{12/notifications/917f3f3d4e339ecbdfcb3626c73a6460 → 21/notifications/0ecf3c7a58e94c6aa4841eb61906276b}/subscription.xml +0 -0
  189. data/server/instances/21/notifications/1628b9524616b4df4fa069d78ceb0d26/consumer-secret +1 -0
  190. data/server/instances/21/notifications/1628b9524616b4df4fa069d78ceb0d26/producer-secret +1 -0
  191. data/server/instances/{13/notifications/bab68e2d01b9136571ecb2e1a5e9d736 → 21/notifications/1628b9524616b4df4fa069d78ceb0d26}/subscription.xml +0 -0
  192. data/server/instances/21/notifications/224e3da9513bd44d8477f29f6deaa2f5/consumer-secret +1 -0
  193. data/server/instances/21/notifications/224e3da9513bd44d8477f29f6deaa2f5/producer-secret +1 -0
  194. data/server/instances/{2/notifications/0bbfabbebf46b850383b4e1d7bd926e3 → 21/notifications/224e3da9513bd44d8477f29f6deaa2f5}/subscription.xml +0 -0
  195. data/server/instances/21/notifications/2aa12d755b5a3588394a34898d57048e/consumer-secret +1 -0
  196. data/server/instances/21/notifications/2aa12d755b5a3588394a34898d57048e/producer-secret +1 -0
  197. data/server/instances/{2/notifications/1d426895d19caa1471c713e80cc3c845 → 21/notifications/2aa12d755b5a3588394a34898d57048e}/subscription.xml +0 -0
  198. data/server/instances/21/notifications/39564e45c1008e1e73836d36b4afc7bc/consumer-secret +1 -0
  199. data/server/instances/21/notifications/39564e45c1008e1e73836d36b4afc7bc/producer-secret +1 -0
  200. data/server/instances/{2/notifications/292c8983aa798f0c5ced5ddc4b58abe4 → 21/notifications/39564e45c1008e1e73836d36b4afc7bc}/subscription.xml +0 -0
  201. data/server/instances/21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c/consumer-secret +1 -0
  202. data/server/instances/21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c/producer-secret +1 -0
  203. data/server/instances/{2/notifications/332c3026c8ad3075b092bd7e7a2b4f71 → 21/notifications/3b4a2ffb88a9a29b61e9c63e52c3430c}/subscription.xml +0 -0
  204. data/server/instances/21/notifications/45c82ecaf6566cf3873a13552120524f/consumer-secret +1 -0
  205. data/server/instances/21/notifications/45c82ecaf6566cf3873a13552120524f/producer-secret +1 -0
  206. data/server/instances/{2/notifications/d377446918808d23d03291fc1140883c → 21/notifications/45c82ecaf6566cf3873a13552120524f}/subscription.xml +0 -0
  207. data/server/instances/21/notifications/56d6362782e3acc7ea253a672facb1da/consumer-secret +1 -0
  208. data/server/instances/21/notifications/56d6362782e3acc7ea253a672facb1da/producer-secret +1 -0
  209. data/server/instances/{2/notifications/d5b65c7cbff5d259e4ee8405190ec558 → 21/notifications/56d6362782e3acc7ea253a672facb1da}/subscription.xml +0 -0
  210. data/server/instances/21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6/consumer-secret +1 -0
  211. data/server/instances/21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6/producer-secret +1 -0
  212. data/server/instances/{3/notifications/6cec45935d78709a4aa6622491006f4b → 21/notifications/669fd84fe3c99e7a9af95bb3b95c0ec6}/subscription.xml +0 -0
  213. data/server/instances/21/notifications/67b19bd42e3d88a3664cca39166efc98/consumer-secret +1 -0
  214. data/server/instances/21/notifications/67b19bd42e3d88a3664cca39166efc98/producer-secret +1 -0
  215. data/server/instances/{3/notifications/755542b2fb8d0c8fb9add29e012ec707 → 21/notifications/67b19bd42e3d88a3664cca39166efc98}/subscription.xml +0 -0
  216. data/server/instances/21/notifications/7418c1c58bd65dd067fd65ebdad110a2/consumer-secret +1 -0
  217. data/server/instances/21/notifications/7418c1c58bd65dd067fd65ebdad110a2/producer-secret +1 -0
  218. data/server/instances/{4/notifications/a89df398fcc088c067c39ae3974ec57f → 21/notifications/7418c1c58bd65dd067fd65ebdad110a2}/subscription.xml +0 -0
  219. data/server/instances/21/notifications/74781f6686f75c5ac11008645aa472a5/consumer-secret +1 -0
  220. data/server/instances/21/notifications/74781f6686f75c5ac11008645aa472a5/producer-secret +1 -0
  221. data/server/instances/{5/notifications/02ebbf888bd3efd11924f4c416d784e4 → 21/notifications/74781f6686f75c5ac11008645aa472a5}/subscription.xml +0 -0
  222. data/server/instances/21/notifications/75abcf13e693ceb476114967edb98e94/consumer-secret +1 -0
  223. data/server/instances/21/notifications/75abcf13e693ceb476114967edb98e94/producer-secret +1 -0
  224. data/server/instances/{6/notifications/282e7077e9c5b9972413cc92a6dcffc3 → 21/notifications/75abcf13e693ceb476114967edb98e94}/subscription.xml +0 -0
  225. data/server/instances/21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638/consumer-secret +1 -0
  226. data/server/instances/21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638/producer-secret +1 -0
  227. data/server/instances/{6/notifications/7e57d7438db8210766eab6873124dc02 → 21/notifications/7b92a846f5ff6d4bf8f47fa03c6c0638}/subscription.xml +0 -0
  228. data/server/instances/21/notifications/7d95a5e6b349c7087103e919cb274442/consumer-secret +1 -0
  229. data/server/instances/21/notifications/7d95a5e6b349c7087103e919cb274442/producer-secret +1 -0
  230. data/server/instances/{7/notifications/7276b795b5ed2f6638473526d9b1b1e1 → 21/notifications/7d95a5e6b349c7087103e919cb274442}/subscription.xml +0 -0
  231. data/server/instances/21/notifications/8468988ef8de34938584a4165252881b/consumer-secret +1 -0
  232. data/server/instances/21/notifications/8468988ef8de34938584a4165252881b/producer-secret +1 -0
  233. data/server/instances/{8/notifications/2854ed5a8f97a33d31f908f67544ec62 → 21/notifications/8468988ef8de34938584a4165252881b}/subscription.xml +0 -0
  234. data/server/instances/21/notifications/86b37af6d2dae8403a2c881a8ed77b69/consumer-secret +1 -0
  235. data/server/instances/21/notifications/86b37af6d2dae8403a2c881a8ed77b69/producer-secret +1 -0
  236. data/server/instances/{9/notifications/5debc1fd138fdc80940cd5647003ed45 → 21/notifications/86b37af6d2dae8403a2c881a8ed77b69}/subscription.xml +0 -0
  237. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/consumer-secret +1 -0
  238. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/producer-secret +1 -0
  239. data/server/instances/21/notifications/8f3bf73bda94452898a58a01f0949e99/subscription.xml +27 -0
  240. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/consumer-secret +1 -0
  241. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/producer-secret +1 -0
  242. data/server/instances/21/notifications/92282e004189f5dbd07ce7ef168f443d/subscription.xml +27 -0
  243. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/consumer-secret +1 -0
  244. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/producer-secret +1 -0
  245. data/server/instances/21/notifications/93dbd996b4ffc9f25d7321d6489b8600/subscription.xml +27 -0
  246. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/consumer-secret +1 -0
  247. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/producer-secret +1 -0
  248. data/server/instances/21/notifications/987a7a439d737aa026ebb9d527d13e85/subscription.xml +27 -0
  249. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/consumer-secret +1 -0
  250. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/producer-secret +1 -0
  251. data/server/instances/21/notifications/9c741aaa40026b347248199a2aee3148/subscription.xml +27 -0
  252. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/consumer-secret +1 -0
  253. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/producer-secret +1 -0
  254. data/server/instances/21/notifications/9e4789de221ad5bef21d84657298f93d/subscription.xml +27 -0
  255. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/consumer-secret +1 -0
  256. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/producer-secret +1 -0
  257. data/server/instances/21/notifications/a415ca2509c92f139fa4f0a7ec5eb131/subscription.xml +27 -0
  258. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/consumer-secret +1 -0
  259. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/producer-secret +1 -0
  260. data/server/instances/21/notifications/a8f312fd9e805baa3f28dbee6b359b86/subscription.xml +27 -0
  261. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/consumer-secret +1 -0
  262. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/producer-secret +1 -0
  263. data/server/instances/21/notifications/b39c41364627e4eea703d59219b67926/subscription.xml +27 -0
  264. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/consumer-secret +1 -0
  265. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/producer-secret +1 -0
  266. data/server/instances/21/notifications/b7b350f6cb83c347ecd275ee45459ccf/subscription.xml +27 -0
  267. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/consumer-secret +1 -0
  268. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/producer-secret +1 -0
  269. data/server/instances/21/notifications/ba2779b8feb5aaaf7208af8b7b943cb7/subscription.xml +27 -0
  270. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/consumer-secret +1 -0
  271. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/producer-secret +1 -0
  272. data/server/instances/21/notifications/c80313b80fcbbbcf12831cfd508da32b/subscription.xml +27 -0
  273. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/consumer-secret +1 -0
  274. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/producer-secret +1 -0
  275. data/server/instances/21/notifications/cb367fadd433d4b58a3b47021c39d50e/subscription.xml +27 -0
  276. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/consumer-secret +1 -0
  277. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/producer-secret +1 -0
  278. data/server/instances/21/notifications/d2c402e3dc828076a5e48e4e17097323/subscription.xml +27 -0
  279. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/consumer-secret +1 -0
  280. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/producer-secret +1 -0
  281. data/server/instances/21/notifications/ead63912ac2ab239abd54a611de516a5/subscription.xml +27 -0
  282. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/consumer-secret +1 -0
  283. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/producer-secret +1 -0
  284. data/server/instances/21/notifications/f43836933512d363fcac2677d934fe3c/subscription.xml +27 -0
  285. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/consumer-secret +1 -0
  286. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/producer-secret +1 -0
  287. data/server/instances/21/notifications/f9609d92ca84e26ca035ed9f6b6e3349/subscription.xml +27 -0
  288. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/consumer-secret +1 -0
  289. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/producer-secret +1 -0
  290. data/server/instances/21/notifications/f9f8bcf712b3dfdeec995e0593ec8335/subscription.xml +27 -0
  291. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/consumer-secret +1 -0
  292. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/producer-secret +1 -0
  293. data/server/instances/21/notifications/fcf673d782ad2d982f8b25a096ab9759/subscription.xml +27 -0
  294. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/consumer-secret +1 -0
  295. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/producer-secret +1 -0
  296. data/server/instances/21/notifications/ffb0b7159cb48fa69b0452402f942316/subscription.xml +27 -0
  297. data/server/instances/21/properties.xml +418 -0
  298. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/consumer-secret +1 -0
  299. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/producer-secret +1 -0
  300. data/server/instances/3/notifications/68205c573b98dc5d54150c1ff14e9dad/subscription.xml +27 -0
  301. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/consumer-secret +1 -0
  302. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/producer-secret +1 -0
  303. data/server/instances/3/notifications/837a31442eb4951bf219c33663bd627d/subscription.xml +27 -0
  304. data/server/instances/3/notifications/topics.xml +39 -0
  305. data/server/instances/3/properties.xml +449 -154
  306. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/consumer-secret +1 -0
  307. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/producer-secret +1 -0
  308. data/server/instances/4/notifications/9fc26db7dd4dbca648ec26ebd5ae0f47/subscription.xml +27 -0
  309. data/server/instances/4/notifications/topics.xml +39 -0
  310. data/server/instances/4/properties.xml +15 -194
  311. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/consumer-secret +1 -0
  312. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/producer-secret +1 -0
  313. data/server/instances/5/notifications/1f75042065e30b503b7a1bb0e0444ab5/subscription.xml +27 -0
  314. data/server/instances/5/notifications/topics.xml +39 -0
  315. data/server/instances/5/properties.xml +449 -154
  316. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/consumer-secret +1 -0
  317. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/producer-secret +1 -0
  318. data/server/instances/6/notifications/09a807510d6896c8008009a1b64dcd0b/subscription.xml +27 -0
  319. data/server/instances/6/notifications/topics.xml +39 -0
  320. data/server/instances/6/properties.xml +449 -154
  321. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/consumer-secret +1 -0
  322. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/producer-secret +1 -0
  323. data/server/instances/7/notifications/72f4df3441d43cc1d6b1f3839edea8ef/subscription.xml +27 -0
  324. data/server/instances/7/notifications/topics.xml +39 -0
  325. data/server/instances/7/properties.xml +449 -154
  326. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/consumer-secret +1 -0
  327. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/producer-secret +1 -0
  328. data/server/instances/8/notifications/37d217a9e1fa5fe8ec2c8f38c9e1e869/subscription.xml +27 -0
  329. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/consumer-secret +1 -0
  330. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/producer-secret +1 -0
  331. data/server/instances/8/notifications/f7a6b8d16a43c5214f5273233d505a5f/subscription.xml +27 -0
  332. data/server/instances/8/notifications/topics.xml +39 -0
  333. data/server/instances/8/properties.xml +440 -154
  334. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/consumer-secret +1 -0
  335. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/producer-secret +1 -0
  336. data/server/instances/9/notifications/90c34e012c0e25c335fd3db4cd7120a3/subscription.xml +27 -0
  337. data/server/instances/9/notifications/topics.xml +39 -0
  338. data/server/instances/9/properties.xml +1611 -151
  339. metadata +387 -293
  340. data/server/instances/1/notifications/0010e92c718702beba99b049a92e584d/consumer-secret +0 -1
  341. data/server/instances/1/notifications/0010e92c718702beba99b049a92e584d/producer-secret +0 -1
  342. data/server/instances/1/notifications/157078b54cf38e4d9451156da3860adb/consumer-secret +0 -1
  343. data/server/instances/1/notifications/157078b54cf38e4d9451156da3860adb/producer-secret +0 -1
  344. data/server/instances/1/notifications/1918856047a1c6b18a7610e44a89a01b/consumer-secret +0 -1
  345. data/server/instances/1/notifications/1918856047a1c6b18a7610e44a89a01b/producer-secret +0 -1
  346. data/server/instances/1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd/consumer-secret +0 -1
  347. data/server/instances/1/notifications/1d41ebf5e52bf039b3c3873fddb8e9bd/producer-secret +0 -1
  348. data/server/instances/1/notifications/1d67171cffc19ef276c6422466a37a93/consumer-secret +0 -1
  349. data/server/instances/1/notifications/1d67171cffc19ef276c6422466a37a93/producer-secret +0 -1
  350. data/server/instances/1/notifications/21409c12c1e724205b543b96c00ccb6a/consumer-secret +0 -1
  351. data/server/instances/1/notifications/21409c12c1e724205b543b96c00ccb6a/producer-secret +0 -1
  352. data/server/instances/1/notifications/2c11156c72dbd2f67356e3c05b93b8d1/consumer-secret +0 -1
  353. data/server/instances/1/notifications/2c11156c72dbd2f67356e3c05b93b8d1/producer-secret +0 -1
  354. data/server/instances/1/notifications/66ad546f13c6c7c84f36215c24dd2e6e/consumer-secret +0 -1
  355. data/server/instances/1/notifications/66ad546f13c6c7c84f36215c24dd2e6e/producer-secret +0 -1
  356. data/server/instances/1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb/consumer-secret +0 -1
  357. data/server/instances/1/notifications/78bfde4c4c3eb9e0225f89c5cff0dabb/producer-secret +0 -1
  358. data/server/instances/1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf/consumer-secret +0 -1
  359. data/server/instances/1/notifications/7edbe1c01634abcd7d6af78aaf49a0cf/producer-secret +0 -1
  360. data/server/instances/1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db/consumer-secret +0 -1
  361. data/server/instances/1/notifications/83064c2a5d1d7f9ad3c1f1ffb8e7e9db/producer-secret +0 -1
  362. data/server/instances/1/notifications/92a147faaa1c31c6dc4cf000897f2e18/consumer-secret +0 -1
  363. data/server/instances/1/notifications/92a147faaa1c31c6dc4cf000897f2e18/producer-secret +0 -1
  364. data/server/instances/1/notifications/9f23b768395a19cc1dd6c2d2a243c78e/consumer-secret +0 -1
  365. data/server/instances/1/notifications/9f23b768395a19cc1dd6c2d2a243c78e/producer-secret +0 -1
  366. data/server/instances/1/notifications/c1a285ed17c5d283478cc5fc6cfc628c/consumer-secret +0 -1
  367. data/server/instances/1/notifications/c1a285ed17c5d283478cc5fc6cfc628c/producer-secret +0 -1
  368. data/server/instances/1/notifications/d705b78256ff1dc5818d20994f16fada/consumer-secret +0 -1
  369. data/server/instances/1/notifications/d705b78256ff1dc5818d20994f16fada/producer-secret +0 -1
  370. data/server/instances/1/notifications/e4e2495e44235851b958ac6938a08140/consumer-secret +0 -1
  371. data/server/instances/1/notifications/e4e2495e44235851b958ac6938a08140/producer-secret +0 -1
  372. data/server/instances/1/notifications/f81368a6d30d4a07eedb1db5c5cde084/consumer-secret +0 -1
  373. data/server/instances/1/notifications/f81368a6d30d4a07eedb1db5c5cde084/producer-secret +0 -1
  374. data/server/instances/1/notifications/fa690a88cc565dfa53b13ced355cd039/consumer-secret +0 -1
  375. data/server/instances/1/notifications/fa690a88cc565dfa53b13ced355cd039/producer-secret +0 -1
  376. data/server/instances/10/notifications/0867c4a937f882af259137e36d331261/consumer-secret +0 -1
  377. data/server/instances/10/notifications/0867c4a937f882af259137e36d331261/producer-secret +0 -1
  378. data/server/instances/10/notifications/28acb605c56588ec8e47431c1fcf0b20/consumer-secret +0 -1
  379. data/server/instances/10/notifications/28acb605c56588ec8e47431c1fcf0b20/producer-secret +0 -1
  380. data/server/instances/10/notifications/31d3f699def1d1e86dc18ef421f718ad/consumer-secret +0 -1
  381. data/server/instances/10/notifications/31d3f699def1d1e86dc18ef421f718ad/producer-secret +0 -1
  382. data/server/instances/10/notifications/380b57220000c45342fc56a1ed8e9e3f/consumer-secret +0 -1
  383. data/server/instances/10/notifications/380b57220000c45342fc56a1ed8e9e3f/producer-secret +0 -1
  384. data/server/instances/10/notifications/41eeb5d90b513781fb4b440cb97ca7f1/consumer-secret +0 -1
  385. data/server/instances/10/notifications/41eeb5d90b513781fb4b440cb97ca7f1/producer-secret +0 -1
  386. data/server/instances/10/notifications/4d8c1b3a8dfdacac98144fad072c46d8/consumer-secret +0 -1
  387. data/server/instances/10/notifications/4d8c1b3a8dfdacac98144fad072c46d8/producer-secret +0 -1
  388. data/server/instances/10/notifications/4dde696cfb001e00a7efbd8e86ba227d/consumer-secret +0 -1
  389. data/server/instances/10/notifications/4dde696cfb001e00a7efbd8e86ba227d/producer-secret +0 -1
  390. data/server/instances/10/notifications/4e1c0065dd95f7c175bbccb874f0baea/consumer-secret +0 -1
  391. data/server/instances/10/notifications/4e1c0065dd95f7c175bbccb874f0baea/producer-secret +0 -1
  392. data/server/instances/10/notifications/6198fb7d6a8249f7820e3e57eeefa8af/consumer-secret +0 -1
  393. data/server/instances/10/notifications/6198fb7d6a8249f7820e3e57eeefa8af/producer-secret +0 -1
  394. data/server/instances/10/notifications/6aeb90da52abc150f0f0135d8ba2dbac/consumer-secret +0 -1
  395. data/server/instances/10/notifications/6aeb90da52abc150f0f0135d8ba2dbac/producer-secret +0 -1
  396. data/server/instances/10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a/consumer-secret +0 -1
  397. data/server/instances/10/notifications/6d77f5bac1eb9d6165394b6bfc9b492a/producer-secret +0 -1
  398. data/server/instances/10/notifications/7092411a6bb6822f651798fdcd3c4787/consumer-secret +0 -1
  399. data/server/instances/10/notifications/7092411a6bb6822f651798fdcd3c4787/producer-secret +0 -1
  400. data/server/instances/10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3/consumer-secret +0 -1
  401. data/server/instances/10/notifications/7ab29bbad4122295c05f9e33fd1e0fc3/producer-secret +0 -1
  402. data/server/instances/10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2/consumer-secret +0 -1
  403. data/server/instances/10/notifications/7fabcecc57fe0bd27ce50bedaef47bd2/producer-secret +0 -1
  404. data/server/instances/10/notifications/85760dad8f7abbd73ae1dd44140dabf1/consumer-secret +0 -1
  405. data/server/instances/10/notifications/85760dad8f7abbd73ae1dd44140dabf1/producer-secret +0 -1
  406. data/server/instances/10/notifications/8b9a96d109d44a1fc22858006c0f0e16/consumer-secret +0 -1
  407. data/server/instances/10/notifications/8b9a96d109d44a1fc22858006c0f0e16/producer-secret +0 -1
  408. data/server/instances/10/notifications/9120a477e64d7debae2cda964a9948a0/consumer-secret +0 -1
  409. data/server/instances/10/notifications/9120a477e64d7debae2cda964a9948a0/producer-secret +0 -1
  410. data/server/instances/10/notifications/93c5a5ab72a745c0f9fffe2fe58db205/consumer-secret +0 -1
  411. data/server/instances/10/notifications/93c5a5ab72a745c0f9fffe2fe58db205/producer-secret +0 -1
  412. data/server/instances/10/notifications/a8db1498388588bddf518878263fd898/consumer-secret +0 -1
  413. data/server/instances/10/notifications/a8db1498388588bddf518878263fd898/producer-secret +0 -1
  414. data/server/instances/10/notifications/b534f057c1c97f65e68f59427958e78d/consumer-secret +0 -1
  415. data/server/instances/10/notifications/b534f057c1c97f65e68f59427958e78d/producer-secret +0 -1
  416. data/server/instances/10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4/consumer-secret +0 -1
  417. data/server/instances/10/notifications/bb3d69ee3df32f3b5cb69a51d1af8ae4/producer-secret +0 -1
  418. data/server/instances/10/notifications/bc597391804363834987804436b8b63b/consumer-secret +0 -1
  419. data/server/instances/10/notifications/bc597391804363834987804436b8b63b/producer-secret +0 -1
  420. data/server/instances/10/notifications/bf2f6599eebcd9a08e47bdafd4a67660/consumer-secret +0 -1
  421. data/server/instances/10/notifications/bf2f6599eebcd9a08e47bdafd4a67660/producer-secret +0 -1
  422. data/server/instances/10/notifications/db9cf0ae80bd61e6124c382b992a1550/consumer-secret +0 -1
  423. data/server/instances/10/notifications/db9cf0ae80bd61e6124c382b992a1550/producer-secret +0 -1
  424. data/server/instances/10/notifications/e528089610c991500eb2e8b094f6f169/consumer-secret +0 -1
  425. data/server/instances/10/notifications/e528089610c991500eb2e8b094f6f169/producer-secret +0 -1
  426. data/server/instances/10/notifications/e7d3ca382d26b5f5eba00c40c29827da/consumer-secret +0 -1
  427. data/server/instances/10/notifications/e7d3ca382d26b5f5eba00c40c29827da/producer-secret +0 -1
  428. data/server/instances/10/notifications/ebdc914fde6fe299143ae4601c142738/consumer-secret +0 -1
  429. data/server/instances/10/notifications/ebdc914fde6fe299143ae4601c142738/producer-secret +0 -1
  430. data/server/instances/10/notifications/f26b2b9efc10b9259647cf1a2b934694/consumer-secret +0 -1
  431. data/server/instances/10/notifications/f26b2b9efc10b9259647cf1a2b934694/producer-secret +0 -1
  432. data/server/instances/10/notifications/f4e1d7808171fe7c5fab4a99145ea185/consumer-secret +0 -1
  433. data/server/instances/10/notifications/f4e1d7808171fe7c5fab4a99145ea185/producer-secret +0 -1
  434. data/server/instances/10/notifications/f7e947a1b4b32f3dad5debd44fc3236b/consumer-secret +0 -1
  435. data/server/instances/10/notifications/f7e947a1b4b32f3dad5debd44fc3236b/producer-secret +0 -1
  436. data/server/instances/10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6/consumer-secret +0 -1
  437. data/server/instances/10/notifications/fbf5d0ae050a50e8a2fca6bc60f5b8d6/producer-secret +0 -1
  438. data/server/instances/11/notifications/134c18da209261bc409ccd137b2e46d3/consumer-secret +0 -1
  439. data/server/instances/11/notifications/134c18da209261bc409ccd137b2e46d3/producer-secret +0 -1
  440. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/consumer-secret +0 -1
  441. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/producer-secret +0 -1
  442. data/server/instances/11/notifications/48862f47f66e8229582bc91fbc38a512/subscription.xml +0 -5
  443. data/server/instances/12/notifications/917f3f3d4e339ecbdfcb3626c73a6460/consumer-secret +0 -1
  444. data/server/instances/12/notifications/917f3f3d4e339ecbdfcb3626c73a6460/producer-secret +0 -1
  445. data/server/instances/13/notifications/bab68e2d01b9136571ecb2e1a5e9d736/consumer-secret +0 -1
  446. data/server/instances/13/notifications/bab68e2d01b9136571ecb2e1a5e9d736/producer-secret +0 -1
  447. data/server/instances/2/notifications/0bbfabbebf46b850383b4e1d7bd926e3/consumer-secret +0 -1
  448. data/server/instances/2/notifications/0bbfabbebf46b850383b4e1d7bd926e3/producer-secret +0 -1
  449. data/server/instances/2/notifications/1d426895d19caa1471c713e80cc3c845/consumer-secret +0 -1
  450. data/server/instances/2/notifications/1d426895d19caa1471c713e80cc3c845/producer-secret +0 -1
  451. data/server/instances/2/notifications/292c8983aa798f0c5ced5ddc4b58abe4/consumer-secret +0 -1
  452. data/server/instances/2/notifications/292c8983aa798f0c5ced5ddc4b58abe4/producer-secret +0 -1
  453. data/server/instances/2/notifications/332c3026c8ad3075b092bd7e7a2b4f71/consumer-secret +0 -1
  454. data/server/instances/2/notifications/332c3026c8ad3075b092bd7e7a2b4f71/producer-secret +0 -1
  455. data/server/instances/2/notifications/d377446918808d23d03291fc1140883c/consumer-secret +0 -1
  456. data/server/instances/2/notifications/d377446918808d23d03291fc1140883c/producer-secret +0 -1
  457. data/server/instances/2/notifications/d5b65c7cbff5d259e4ee8405190ec558/consumer-secret +0 -1
  458. data/server/instances/2/notifications/d5b65c7cbff5d259e4ee8405190ec558/producer-secret +0 -1
  459. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/consumer-secret +0 -1
  460. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/producer-secret +0 -1
  461. data/server/instances/2/notifications/d7ee4fedabb402dc43986dfa199e6768/subscription.xml +0 -5
  462. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/consumer-secret +0 -1
  463. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/producer-secret +0 -1
  464. data/server/instances/3/notifications/27195e2503deaf25b3291394fe97985c/subscription.xml +0 -5
  465. data/server/instances/3/notifications/6cec45935d78709a4aa6622491006f4b/consumer-secret +0 -1
  466. data/server/instances/3/notifications/6cec45935d78709a4aa6622491006f4b/producer-secret +0 -1
  467. data/server/instances/3/notifications/755542b2fb8d0c8fb9add29e012ec707/consumer-secret +0 -1
  468. data/server/instances/3/notifications/755542b2fb8d0c8fb9add29e012ec707/producer-secret +0 -1
  469. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/consumer-secret +0 -1
  470. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/producer-secret +0 -1
  471. data/server/instances/4/notifications/151e90db818eb5812905257a8eb7cea4/subscription.xml +0 -5
  472. data/server/instances/4/notifications/a89df398fcc088c067c39ae3974ec57f/consumer-secret +0 -1
  473. data/server/instances/4/notifications/a89df398fcc088c067c39ae3974ec57f/producer-secret +0 -1
  474. data/server/instances/5/notifications/02ebbf888bd3efd11924f4c416d784e4/consumer-secret +0 -1
  475. data/server/instances/5/notifications/02ebbf888bd3efd11924f4c416d784e4/producer-secret +0 -1
  476. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/consumer-secret +0 -1
  477. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/producer-secret +0 -1
  478. data/server/instances/5/notifications/0b9589d847cccf768013b6082893bce6/subscription.xml +0 -5
  479. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/consumer-secret +0 -1
  480. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/producer-secret +0 -1
  481. data/server/instances/6/notifications/23da9f5c4548f384d625e6d12b3ebe2d/subscription.xml +0 -5
  482. data/server/instances/6/notifications/282e7077e9c5b9972413cc92a6dcffc3/consumer-secret +0 -1
  483. data/server/instances/6/notifications/282e7077e9c5b9972413cc92a6dcffc3/producer-secret +0 -1
  484. data/server/instances/6/notifications/7e57d7438db8210766eab6873124dc02/consumer-secret +0 -1
  485. data/server/instances/6/notifications/7e57d7438db8210766eab6873124dc02/producer-secret +0 -1
  486. data/server/instances/7/notifications/7276b795b5ed2f6638473526d9b1b1e1/consumer-secret +0 -1
  487. data/server/instances/7/notifications/7276b795b5ed2f6638473526d9b1b1e1/producer-secret +0 -1
  488. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/consumer-secret +0 -1
  489. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/producer-secret +0 -1
  490. data/server/instances/7/notifications/f3fbbf27fcbcc02a9f8a614326461a5c/subscription.xml +0 -5
  491. data/server/instances/8/notifications/2854ed5a8f97a33d31f908f67544ec62/consumer-secret +0 -1
  492. data/server/instances/8/notifications/2854ed5a8f97a33d31f908f67544ec62/producer-secret +0 -1
  493. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/consumer-secret +0 -1
  494. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/producer-secret +0 -1
  495. data/server/instances/8/notifications/595259518a5cb2ce286bb39840f7a64c/subscription.xml +0 -5
  496. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/consumer-secret +0 -1
  497. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/producer-secret +0 -1
  498. data/server/instances/9/notifications/54e96913d66f1dd69ec82d2b52268232/subscription.xml +0 -5
  499. data/server/instances/9/notifications/5debc1fd138fdc80940cd5647003ed45/consumer-secret +0 -1
  500. data/server/instances/9/notifications/5debc1fd138fdc80940cd5647003ed45/producer-secret +0 -1
@@ -0,0 +1,39 @@
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>
@@ -0,0 +1,1448 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <name>RESCUE - Book Movie - Local</name>
3
+ <state>finished</state>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <positions/>
6
+ <dataelements>
7
+ <date>"2013-01-16"</date>
8
+ <title>"Hobbit"</title>
9
+ <selected_date>"2013-01-16"</selected_date>
10
+ <selected_title>"Der Hobbit"</selected_title>
11
+ <starting_time>"14:10"</starting_time>
12
+ <selected_cinema>" Cineplexx Doanuplex\nWagramerstraße 79\n1220 Vienna"</selected_cinema>
13
+ <hall>"Saal 10"</hall>
14
+ <zip>1100</zip>
15
+ <city>"Vienna"</city>
16
+ <reservation_number>[null]</reservation_number>
17
+ </dataelements>
18
+ <endpoints>
19
+ <select>http://localhost:9293/pgwl</select>
20
+ <injection_handler>http://localhost:9291/</injection_handler>
21
+ <services>http://localhost:9290/groups/Cinemas/</services>
22
+ </endpoints>
23
+ <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|
24
+
25
+ data.title = result.data.value('title')
26
+ data.date = result.data.value('date')
27
+ data.city = result.data.value('city')
28
+
29
+ end
30
+ 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 } ]
31
+ activity :create_objects_for_use_repo_cinemas, :manipulate do
32
+ data.result_use_repo_cinemas = RescueHash.new
33
+ data.result_use_repo_cinemas['properties'] = RescueHash.new
34
+ data.result_use_repo_cinemas['properties']["call_find"] = RescueHash.new
35
+ data.result_use_repo_cinemas['properties']["call_book"] = RescueHash.new
36
+ endpoints.use_repo_cinemas__selected_cinema = ""
37
+ data.use_repo_cinemas__show_id = ''
38
+ data.use_repo_cinemas__list = ''
39
+ data.use_repo_cinemas__res = ''
40
+ data.use_repo_cinemas__list_merge = ''
41
+ data.use_repo_cinemas__number_of_shows = ''
42
+ data.use_repo_cinemas__endpoint = ''
43
+
44
+ end
45
+ 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'
46
+ activity :create_objects_for_use_repo_cinemas__call_find, :manipulate do
47
+ data.result_use_repo_cinemas__call_find = RescueHash.new
48
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"] = RescueHash.new
49
+
50
+ end
51
+ 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'
52
+ parallel do
53
+ parallel_branch do
54
+ activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo, :manipulate do
55
+ data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
56
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
57
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = ''
58
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = ''
59
+ # Filling the properties-object of the service
60
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
61
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"] = RescueHash.new
62
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["street"] = "Gumpendorferstraße 63"
63
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["zip"] = "1060"
64
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["city"] = "Vienna"
65
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["state"] = "Austria"
66
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"] = RescueHash.new
67
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["name"] = "Apollo - Das Kino Wien"
68
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["phone"] = "+43-1-5879651"
69
+ 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"
70
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["mail"] = "village.apollo@villagekinos.at"
71
+
72
+ end
73
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__preparations, :manipulate do
74
+ datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum
75
+
76
+ d = data.date
77
+ date = Time.parse(d)
78
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
79
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = datum
80
+
81
+ end
82
+ 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|
83
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
84
+ result[0] = RescueHash.new_from_obj(result[0])
85
+ end
86
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = result[0].value('').read
87
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['status'] = result[1]
88
+
89
+
90
+ end
91
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__parse_programm, :manipulate do
92
+ response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response
93
+
94
+ date = data.date
95
+ title = data.title
96
+ date = Date.parse(date)
97
+ str = CGI::unescapeHTML(response)
98
+ str.gsub!('&amp;','--amp--')
99
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
100
+ offset = str.index("value=\"", offset)
101
+ d = str[offset+7..offset+16]
102
+
103
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
104
+ count = 1
105
+ offset = 0
106
+ while (count != 0) do
107
+ offset = str.index("div", offset+1)
108
+ count = count+1 if str[offset-1].chr == "&lt;"
109
+ count = count-1 if str[offset-1].chr == "/"
110
+ end
111
+ str = str[0..offset-3]
112
+ resp = XML::Smart.string(str)
113
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
114
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
115
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
116
+ show_date = Date.parse(d)
117
+ if show_date.eql?(date)
118
+ b.find("child::tr/td[3]/div/table").each do |show|
119
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
120
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
121
+ show = list.root.add("show")
122
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/Apollo")
123
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
124
+ show.add("title", show_title)
125
+ show.add("date", show_date.to_s)
126
+ show.add("time", s.text)
127
+ show.add("hall", show_hall)
128
+ end
129
+ end
130
+ end
131
+ end
132
+ list = list.root.dump
133
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = response
134
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['list'] = list
135
+
136
+ end
137
+ activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_Apollo, :manipulate do
138
+ endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service")
139
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response")
140
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum")
141
+
142
+ end
143
+ end
144
+ parallel_branch do
145
+ activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes, :manipulate do
146
+ data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
147
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
148
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = ''
149
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = ''
150
+ # Filling the properties-object of the service
151
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
152
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"] = RescueHash.new
153
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["street"] = "Nußdorfer Straße 73"
154
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["zip"] = "1090"
155
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["city"] = "Vienna"
156
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["state"] = "Austria"
157
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"] = RescueHash.new
158
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["name"] = "Das Auge Gottes Center Wien"
159
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["phone"] = "+43-1-3176344"
160
+ 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"
161
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["mail"] = "village.wienmitte@villagekinos.at"
162
+
163
+ end
164
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__preparations, :manipulate do
165
+ datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum
166
+
167
+ d = data.date
168
+ date = Time.parse(d)
169
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
170
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = datum
171
+
172
+ end
173
+ 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|
174
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
175
+ result[0] = RescueHash.new_from_obj(result[0])
176
+ end
177
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = result[0].value('').read
178
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['status'] = result[1]
179
+
180
+
181
+ end
182
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__parse_programm, :manipulate do
183
+ response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response
184
+
185
+ date = data.date
186
+ title = data.title
187
+ date = Date.parse(date)
188
+ str = CGI::unescapeHTML(response)
189
+ str.gsub!('&amp;','--amp--')
190
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
191
+ offset = str.index("value=\"", offset)
192
+ d = str[offset+7..offset+16]
193
+
194
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
195
+ count = 1
196
+ offset = 0
197
+ while (count != 0) do
198
+ offset = str.index("div", offset+1)
199
+ count = count+1 if str[offset-1].chr == "&lt;"
200
+ count = count-1 if str[offset-1].chr == "/"
201
+ end
202
+ str = str[0..offset-3]
203
+ resp = XML::Smart.string(str)
204
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
205
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
206
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
207
+ show_date = Date.parse(d)
208
+ if show_date.eql?(date)
209
+ b.find("child::tr/td[3]/div/table").each do |show|
210
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
211
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
212
+ show = list.root.add("show")
213
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/AugeGottes")
214
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
215
+ show.add("title", show_title)
216
+ show.add("date", show_date.to_s)
217
+ show.add("time", s.text)
218
+ show.add("hall", show_hall)
219
+ end
220
+ end
221
+ end
222
+ end
223
+ list = list.root.dump
224
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = response
225
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['list'] = list
226
+
227
+ end
228
+ activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_AugeGottes, :manipulate do
229
+ endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service")
230
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response")
231
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum")
232
+
233
+ end
234
+ end
235
+ parallel_branch do
236
+ activity :create_objects_for_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx, :manipulate do
237
+ data.result_use_repo_cinemas__call_find["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
238
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
239
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = ''
240
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = ''
241
+ # Filling the properties-object of the service
242
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
243
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"] = RescueHash.new
244
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["street"] = "Wagramerstraße 79"
245
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["zip"] = "1220"
246
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["city"] = "Vienna"
247
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["state"] = "Austria"
248
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"] = RescueHash.new
249
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["name"] = "Cineplexx Doanuplex"
250
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["phone"] = "+43-1-2033322"
251
+ 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"
252
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
253
+
254
+ end
255
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__preparations, :manipulate do
256
+ datum = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum
257
+
258
+ d = data.date
259
+ date = Time.parse(d)
260
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
261
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = datum
262
+
263
+ end
264
+ 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|
265
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
266
+ result[0] = RescueHash.new_from_obj(result[0])
267
+ end
268
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = result[0].value('').read
269
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['status'] = result[1]
270
+
271
+
272
+ end
273
+ activity :use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__parse_programm, :manipulate do
274
+ response = data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response
275
+
276
+ date = data.date
277
+ title = data.title
278
+ date = Date.parse(date)
279
+ str = CGI::unescapeHTML(response)
280
+ str.gsub!('&amp;','--amp--')
281
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
282
+ offset = str.index("value=\"", offset)
283
+ d = str[offset+7..offset+16]
284
+
285
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
286
+ count = 1
287
+ offset = 0
288
+ while (count != 0) do
289
+ offset = str.index("div", offset+1)
290
+ count = count+1 if str[offset-1].chr == "&lt;"
291
+ count = count-1 if str[offset-1].chr == "/"
292
+ end
293
+ str = str[0..offset-3]
294
+ resp = XML::Smart.string(str)
295
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
296
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
297
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
298
+ show_date = Date.parse(d)
299
+ if show_date.eql?(date)
300
+ b.find("child::tr/td[3]/div/table").each do |show|
301
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
302
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
303
+ show = list.root.add("show")
304
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/DonauPlexx")
305
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
306
+ show.add("title", show_title)
307
+ show.add("date", show_date.to_s)
308
+ show.add("time", s.text)
309
+ show.add("hall", show_hall)
310
+ end
311
+ end
312
+ end
313
+ end
314
+ list = list.root.dump
315
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = response
316
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['list'] = list
317
+
318
+ end
319
+ activity :remove_objects_of_use_repo_cinemas__call_find__perform_search_service_http___localhost_9290_groups_Cinemas__REST_DonauPlexx, :manipulate do
320
+ endpoints.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service")
321
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response")
322
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum")
323
+
324
+ end
325
+ end
326
+ end
327
+
328
+ activity :manipulate_from_use_repo_cinemas__call_find__perform_search, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
329
+ properties = data.result_use_repo_cinemas['properties']["call_find"]
330
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
331
+ result[0] = RescueHash.new_from_obj(result[0])
332
+ end
333
+ data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
334
+
335
+ end
336
+
337
+ activity :manipulate_from_use_repo_cinemas__call_find, :manipulate, nil,data.result_use_repo_cinemas__call_find do |result|
338
+ properties = data.result_use_repo_cinemas['properties']
339
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
340
+ result[0] = RescueHash.new_from_obj(result[0])
341
+ end
342
+ data.use_repo_cinemas__list = result[0].value('list')
343
+
344
+ end
345
+ activity :remove_objects_of_use_repo_cinemas__call_find, :manipulate do
346
+ data.delete(:"result_use_repo_cinemas__call_find")
347
+
348
+ end
349
+ activity :use_repo_cinemas__merge_result, :manipulate do
350
+ list = data.use_repo_cinemas__list
351
+ m_list = data.use_repo_cinemas__list_merge
352
+ nos = data.use_repo_cinemas__number_of_shows
353
+
354
+ title = data.title
355
+ date = data.date
356
+ xml = XML::Smart.string("&lt;list_of_shows/&gt;")
357
+ if list.class == Array
358
+ list.each do |v|
359
+ l = XML::Smart.string(v)
360
+ xml.root.add(l.find("//show"))
361
+ end
362
+ elsif list.class == String
363
+ l = XML::Smart.string(list)
364
+ xml.root.add(l.find("//show"))
365
+ else
366
+ raise "Unexpected class of return-value - class: #{list.class}"
367
+ end
368
+ m_list = xml.root.dump
369
+ nos = xml.root.children.length
370
+ data.use_repo_cinemas__list = list
371
+ data.use_repo_cinemas__list_merge = m_list
372
+ data.use_repo_cinemas__number_of_shows = nos
373
+
374
+ end
375
+ choose do
376
+ alternative (data.use_repo_cinemas__number_of_shows.&gt;(0)) do
377
+ 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|
378
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
379
+ result[0] = RescueHash.new_from_obj(result[0])
380
+ end
381
+ data.use_repo_cinemas__show_id = result[0].value('show_id')
382
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
383
+ result[0] = RescueHash.new_from_obj(result[0])
384
+ end
385
+ data.use_repo_cinemas__endpoint = result[0].value('target')
386
+ data.result_use_repo_cinemas['status'] = result[1]
387
+
388
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
389
+ result[0] = RescueHash.new_from_obj(result[0])
390
+ end
391
+ data.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
392
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
393
+ result[0] = RescueHash.new_from_obj(result[0])
394
+ end
395
+ data.result_use_repo_cinemas['selected_date'] = result[0].value('date')
396
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
397
+ result[0] = RescueHash.new_from_obj(result[0])
398
+ end
399
+ data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
400
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
401
+ result[0] = RescueHash.new_from_obj(result[0])
402
+ end
403
+ data.result_use_repo_cinemas['hall'] = result[0].value('hall')
404
+
405
+ end
406
+ activity :use_repo_cinemas__set_selected_endpoint, :manipulate do
407
+ ep = data.use_repo_cinemas__endpoint
408
+ selected = endpoints.use_repo_cinemas__selected_cinema
409
+
410
+ selected = ep
411
+ data.use_repo_cinemas__endpoint = ep
412
+ endpoints.use_repo_cinemas__selected_cinema = selected
413
+
414
+ end
415
+ 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'
416
+ activity :create_objects_for_use_repo_cinemas__call_book, :manipulate do
417
+ data.result_use_repo_cinemas__call_book = RescueHash.new
418
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"] = RescueHash.new
419
+
420
+ end
421
+ activity :use_repo_cinemas__call_book__perform_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; 'perform_book'
422
+ parallel do
423
+ parallel_branch do
424
+ activity :create_objects_for_use_repo_cinemas__call_book__perform_book_service_http___localhost_9290_groups_Cinemas_REST_DonauPlexx_, :manipulate do
425
+ data.result_use_repo_cinemas__call_book["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"] = RescueHash.new
426
+ endpoints.use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep = "http://gruppe.wst.univie.ac.at/~ralph/Testservices/Cinema.php"
427
+ # Filling the properties-object of the service
428
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"] = RescueHash.new
429
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"] = RescueHash.new
430
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["street"] = "Wagramerstraße 79"
431
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["zip"] = "1220"
432
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["city"] = "Vienna"
433
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["state"] = "Austria"
434
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"] = RescueHash.new
435
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["name"] = "Cineplexx Doanuplex"
436
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["phone"] = "+43-1-2033322"
437
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
438
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
439
+
440
+ end
441
+ activity :use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___book, :call, :use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep, :method =&gt; "post", :parameters =&gt; [ { :showID =&gt; data.use_repo_cinemas__show_id } ], :'call-oid' =&gt; '' do |result|
442
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
443
+ result[0] = RescueHash.new_from_obj(result[0])
444
+ end
445
+ data.result_use_repo_cinemas__call_book['http://localhost:9290/groups/Cinemas/REST/DonauPlexx/']['reservation_id'] = result[0].value('resID')
446
+
447
+ end
448
+ activity :remove_objects_of_use_repo_cinemas__call_book__perform_book_service_http___localhost_9290_groups_Cinemas_REST_DonauPlexx_, :manipulate do
449
+ endpoints.delete(:"use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep")
450
+
451
+ end
452
+ end
453
+ end
454
+
455
+ activity :manipulate_from_use_repo_cinemas__call_book__perform_book, :manipulate, nil,data.result_use_repo_cinemas__call_book do |result|
456
+ properties = data.result_use_repo_cinemas['properties']["call_book"]
457
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
458
+ result[0] = RescueHash.new_from_obj(result[0])
459
+ end
460
+ data.result_use_repo_cinemas__call_book['reservation_number'] = result[0].value('reservation_id')
461
+
462
+ end
463
+
464
+ activity :manipulate_from_use_repo_cinemas__call_book, :manipulate, nil,data.result_use_repo_cinemas__call_book do |result|
465
+ properties = data.result_use_repo_cinemas['properties']
466
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
467
+ result[0] = RescueHash.new_from_obj(result[0])
468
+ end
469
+ data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
470
+
471
+ end
472
+ activity :remove_objects_of_use_repo_cinemas__call_book, :manipulate do
473
+ data.delete(:"result_use_repo_cinemas__call_book")
474
+
475
+ end
476
+ activity :use_repo_cinemas__set_status_success, :manipulate do
477
+
478
+ status = 200
479
+ data.result_use_repo_cinemas['status'] = status
480
+
481
+ end
482
+ end
483
+ otherwise do
484
+ activity :use_repo_cinemas__set_status_failed, :manipulate do
485
+
486
+ status = 404
487
+ data.result_use_repo_cinemas['status'] = status
488
+
489
+ end
490
+ end
491
+ end
492
+
493
+ activity :manipulate_from_use_repo_cinemas, :manipulate, nil,data.result_use_repo_cinemas do |result|
494
+ properties = data.result_use_repo_cinemas['properties']
495
+
496
+ res = result[0]
497
+ if res['status'] == 200
498
+ # Computing service responses
499
+ data.reservation_number = res['reservation_id']
500
+ data.starting_time = res['starting_time']
501
+ data.selected_title = res['movie_title']
502
+ data.selected_date = res['selected_date']
503
+ data.hall = res['hall']
504
+ # Computing properties of executed services
505
+ perf_book = properties['call_book']['perform_book']
506
+ 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']}"
507
+ end
508
+
509
+ end
510
+ activity :remove_objects_of_use_repo_cinemas, :manipulate do
511
+ data.delete(:"result_use_repo_cinemas")
512
+ data.delete(:"properties_use_repo_cinemas")
513
+ endpoints.delete(:"use_repo_cinemas__selected_cinema")
514
+ data.delete(:"use_repo_cinemas__show_id")
515
+ data.delete(:"use_repo_cinemas__list")
516
+ data.delete(:"use_repo_cinemas__res")
517
+ data.delete(:"use_repo_cinemas__list_merge")
518
+ data.delete(:"use_repo_cinemas__number_of_shows")
519
+ data.delete(:"use_repo_cinemas__endpoint")
520
+
521
+ end
522
+ 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 } ]
523
+ </dsl>
524
+ <status>
525
+ <id>0</id>
526
+ <message>undefined</message>
527
+ </status>
528
+ <description>
529
+ <description xmlns="http://cpee.org/ns/description/1.0">
530
+ <call id="collect_input" endpoint="select">
531
+ <parameters>
532
+ <method>post</method>
533
+ <info>true</info>
534
+ <templates>
535
+ <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
536
+ <name>'Cinemas-Input'</name>
537
+ <lang>'EN'</lang>
538
+ </templates>
539
+ </parameters>
540
+ <manipulate output="result">
541
+ data.title = result.data.value('title')
542
+ data.date = result.data.value('date')
543
+ data.city = result.data.value('city')
544
+ </manipulate>
545
+ </call>
546
+ <call id="use_repo_cinemas" endpoint="services">
547
+ <constraints>
548
+ <constraint xpath="address/city" comparator="==" variable="city"/>
549
+ </constraints>
550
+ <parameters>
551
+ <!--{{{-->
552
+ <info>true</info>
553
+ <service>
554
+ <serviceoperation>"search_and_book"</serviceoperation>
555
+ <injection_handler>endpoints.injection_handler</injection_handler>
556
+ </service>
557
+ <additional_endpoints>
558
+ <selector_service>"select"</selector_service>
559
+ </additional_endpoints>
560
+ <parameters>
561
+ <title>data.title</title>
562
+ <date>data.date</date>
563
+ </parameters>
564
+ </parameters>
565
+ <!--}}}-->
566
+ </call>
567
+ <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']">
568
+ <manipulate id="create_objects_for_use_repo_cinemas" generated="true"> data.result_use_repo_cinemas = RescueHash.new
569
+ data.result_use_repo_cinemas['properties'] = RescueHash.new
570
+ data.result_use_repo_cinemas['properties']["call_find"] = RescueHash.new
571
+ data.result_use_repo_cinemas['properties']["call_book"] = RescueHash.new
572
+ endpoints.use_repo_cinemas__selected_cinema = ""
573
+ data.use_repo_cinemas__show_id = ''
574
+ data.use_repo_cinemas__list = ''
575
+ data.use_repo_cinemas__res = ''
576
+ data.use_repo_cinemas__list_merge = ''
577
+ data.use_repo_cinemas__number_of_shows = ''
578
+ data.use_repo_cinemas__endpoint = ''
579
+ </manipulate>
580
+ <constraints>
581
+ <constraint xpath="address/city" comparator="==" variable="city"/>
582
+ </constraints>
583
+ <call id="use_repo_cinemas__call_find" endpoint="services" oid="call_find">
584
+ <parameters>
585
+ <service>
586
+ <serviceoperation>"search"</serviceoperation>
587
+ <injection_handler>endpoints.injection_handler</injection_handler>
588
+ </service>
589
+ <parameters>
590
+ <title>data.title</title>
591
+ <date>data.date</date>
592
+ </parameters>
593
+ </parameters>
594
+ </call>
595
+ <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;]">
596
+ <manipulate id="create_objects_for_use_repo_cinemas__call_find" generated="true"> data.result_use_repo_cinemas__call_find = RescueHash.new
597
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"] = RescueHash.new
598
+ </manipulate>
599
+ <call id="use_repo_cinemas__call_find__perform_search" endpoint="services" oid="perform_search">
600
+ <parameters>
601
+ <service>
602
+ <serviceoperation>"search"</serviceoperation>
603
+ <injection_handler>endpoints.injection_handler</injection_handler>
604
+ </service>
605
+ <parameters>
606
+ <title>data.title</title>
607
+ <date>data.date</date>
608
+ </parameters>
609
+ </parameters>
610
+ </call>
611
+ <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;]">
612
+ <parallel generated="true">
613
+ <parallel_branch generated="true">
614
+ <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
615
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
616
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = ''
617
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = ''
618
+ # Filling the properties-object of the service
619
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"] = RescueHash.new
620
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"] = RescueHash.new
621
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["street"] = "Gumpendorferstraße 63"
622
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["zip"] = "1060"
623
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["city"] = "Vienna"
624
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["address"]["state"] = "Austria"
625
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"] = RescueHash.new
626
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["name"] = "Apollo - Das Kino Wien"
627
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["phone"] = "+43-1-5879651"
628
+ 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"
629
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/Apollo"]["vendor"]["mail"] = "village.apollo@villagekinos.at"
630
+ </manipulate>
631
+ <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
632
+
633
+ d = data.date
634
+ date = Time.parse(d)
635
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
636
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum = datum
637
+ </manipulate>
638
+ <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="">
639
+ <parameters>
640
+ <method>get</method>
641
+ <parameters>
642
+ <id>1</id>
643
+ <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum</datum>
644
+ <uhrzeit>"00:00:00"</uhrzeit>
645
+ <version>""</version>
646
+ </parameters>
647
+ </parameters>
648
+ <manipulate output="result">if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
649
+ result[0] = RescueHash.new_from_obj(result[0])
650
+ end
651
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = result[0].value('').read
652
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['status'] = result[1]
653
+
654
+ </manipulate>
655
+ </call>
656
+ <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
657
+
658
+ date = data.date
659
+ title = data.title
660
+ date = Date.parse(date)
661
+ str = CGI::unescapeHTML(response)
662
+ str.gsub!('&amp;','--amp--')
663
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
664
+ offset = str.index("value=\"", offset)
665
+ d = str[offset+7..offset+16]
666
+
667
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
668
+ count = 1
669
+ offset = 0
670
+ while (count != 0) do
671
+ offset = str.index("div", offset+1)
672
+ count = count+1 if str[offset-1].chr == "&lt;"
673
+ count = count-1 if str[offset-1].chr == "/"
674
+ end
675
+ str = str[0..offset-3]
676
+ resp = XML::Smart.string(str)
677
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
678
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
679
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
680
+ show_date = Date.parse(d)
681
+ if show_date.eql?(date)
682
+ b.find("child::tr/td[3]/div/table").each do |show|
683
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
684
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
685
+ show = list.root.add("show")
686
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/Apollo")
687
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
688
+ show.add("title", show_title)
689
+ show.add("date", show_date.to_s)
690
+ show.add("time", s.text)
691
+ show.add("hall", show_hall)
692
+ end
693
+ end
694
+ end
695
+ end
696
+ list = list.root.dump
697
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response = response
698
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/Apollo']['list'] = list
699
+ </manipulate>
700
+ <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")
701
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__response")
702
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_Apollo__datum")
703
+ </manipulate>
704
+ </parallel_branch>
705
+ <parallel_branch generated="true">
706
+ <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
707
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
708
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = ''
709
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = ''
710
+ # Filling the properties-object of the service
711
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"] = RescueHash.new
712
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"] = RescueHash.new
713
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["street"] = "Nußdorfer Straße 73"
714
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["zip"] = "1090"
715
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["city"] = "Vienna"
716
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["address"]["state"] = "Austria"
717
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"] = RescueHash.new
718
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["name"] = "Das Auge Gottes Center Wien"
719
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["phone"] = "+43-1-3176344"
720
+ 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"
721
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/AugeGottes"]["vendor"]["mail"] = "village.wienmitte@villagekinos.at"
722
+ </manipulate>
723
+ <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
724
+
725
+ d = data.date
726
+ date = Time.parse(d)
727
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
728
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum = datum
729
+ </manipulate>
730
+ <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="">
731
+ <parameters>
732
+ <method>get</method>
733
+ <parameters>
734
+ <id>6</id>
735
+ <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum</datum>
736
+ <uhrzeit>"00:00:00"</uhrzeit>
737
+ <version>""</version>
738
+ </parameters>
739
+ </parameters>
740
+ <manipulate output="result">if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
741
+ result[0] = RescueHash.new_from_obj(result[0])
742
+ end
743
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = result[0].value('').read
744
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['status'] = result[1]
745
+
746
+ </manipulate>
747
+ </call>
748
+ <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
749
+
750
+ date = data.date
751
+ title = data.title
752
+ date = Date.parse(date)
753
+ str = CGI::unescapeHTML(response)
754
+ str.gsub!('&amp;','--amp--')
755
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
756
+ offset = str.index("value=\"", offset)
757
+ d = str[offset+7..offset+16]
758
+
759
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
760
+ count = 1
761
+ offset = 0
762
+ while (count != 0) do
763
+ offset = str.index("div", offset+1)
764
+ count = count+1 if str[offset-1].chr == "&lt;"
765
+ count = count-1 if str[offset-1].chr == "/"
766
+ end
767
+ str = str[0..offset-3]
768
+ resp = XML::Smart.string(str)
769
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
770
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
771
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
772
+ show_date = Date.parse(d)
773
+ if show_date.eql?(date)
774
+ b.find("child::tr/td[3]/div/table").each do |show|
775
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
776
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
777
+ show = list.root.add("show")
778
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/AugeGottes")
779
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
780
+ show.add("title", show_title)
781
+ show.add("date", show_date.to_s)
782
+ show.add("time", s.text)
783
+ show.add("hall", show_hall)
784
+ end
785
+ end
786
+ end
787
+ end
788
+ list = list.root.dump
789
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response = response
790
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/AugeGottes']['list'] = list
791
+ </manipulate>
792
+ <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")
793
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__response")
794
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_AugeGottes__datum")
795
+ </manipulate>
796
+ </parallel_branch>
797
+ <parallel_branch generated="true">
798
+ <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
799
+ endpoints.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__service = "http://www.cineplexx.at/content/kinos/kinoprogramm.aspx"
800
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = ''
801
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = ''
802
+ # Filling the properties-object of the service
803
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"] = RescueHash.new
804
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"] = RescueHash.new
805
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["street"] = "Wagramerstraße 79"
806
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["zip"] = "1220"
807
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["city"] = "Vienna"
808
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["address"]["state"] = "Austria"
809
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"] = RescueHash.new
810
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["name"] = "Cineplexx Doanuplex"
811
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["phone"] = "+43-1-2033322"
812
+ 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"
813
+ data.result_use_repo_cinemas['properties']["call_find"]["perform_search"]["http://localhost:9290/groups/Cinemas//REST/DonauPlexx"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
814
+ </manipulate>
815
+ <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
816
+
817
+ d = data.date
818
+ date = Time.parse(d)
819
+ datum = "#{date.mday &lt; 10 ? "0#{date.mday}" : date.mday}.#{date.mon &lt; 10 ? "0#{date.mon}" : date.mon}.#{date.year}"
820
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum = datum
821
+ </manipulate>
822
+ <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="">
823
+ <parameters>
824
+ <method>get</method>
825
+ <parameters>
826
+ <id>346</id>
827
+ <datum>data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum</datum>
828
+ <uhrzeit>"00:00:00"</uhrzeit>
829
+ <version>""</version>
830
+ </parameters>
831
+ </parameters>
832
+ <manipulate output="result">if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
833
+ result[0] = RescueHash.new_from_obj(result[0])
834
+ end
835
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = result[0].value('').read
836
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['status'] = result[1]
837
+
838
+ </manipulate>
839
+ </call>
840
+ <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
841
+
842
+ date = data.date
843
+ title = data.title
844
+ date = Date.parse(date)
845
+ str = CGI::unescapeHTML(response)
846
+ str.gsub!('&amp;','--amp--')
847
+ offset = str.index("selected=\"selected\"", str.index("uclKinoprogramm$DDL_Datum"))
848
+ offset = str.index("value=\"", offset)
849
+ d = str[offset+7..offset+16]
850
+
851
+ str = str[str.index("&lt;div id=\"uclKinoprogramm_P_Filme\"&gt;")..-1]
852
+ count = 1
853
+ offset = 0
854
+ while (count != 0) do
855
+ offset = str.index("div", offset+1)
856
+ count = count+1 if str[offset-1].chr == "&lt;"
857
+ count = count-1 if str[offset-1].chr == "/"
858
+ end
859
+ str = str[0..offset-3]
860
+ resp = XML::Smart.string(str)
861
+ list = XML::Smart.string("&lt;list_of_shows/&gt;")
862
+ resp.find("//table[descendant::td/a[contains(text(),'#{title}')]]").each do |b|
863
+ show_title = b.find("child::tr/td[1]/a").first.text.strip
864
+ show_date = Date.parse(d)
865
+ if show_date.eql?(date)
866
+ b.find("child::tr/td[3]/div/table").each do |show|
867
+ show_hall = show.find("child::tr/td[1]/h4/span").first.text.strip
868
+ show.find("child::tr/td[2]/span/a[text()]").each do |s|
869
+ show = list.root.add("show")
870
+ show.add("cinema_uri", "http://localhost:9290/groups/Cinemas/REST/DonauPlexx")
871
+ show.add("show_id", s.attributes['href'].gsub('--amp--','&amp;'))
872
+ show.add("title", show_title)
873
+ show.add("date", show_date.to_s)
874
+ show.add("time", s.text)
875
+ show.add("hall", show_hall)
876
+ end
877
+ end
878
+ end
879
+ end
880
+ list = list.root.dump
881
+ data.use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response = response
882
+ data.result_use_repo_cinemas__call_find['http://localhost:9290/groups/Cinemas//REST/DonauPlexx']['list'] = list
883
+ </manipulate>
884
+ <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")
885
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__response")
886
+ data.delete(:"use_repo_cinemas__call_find__perform_search__http___localhost_9290_groups_Cinemas__REST_DonauPlexx__datum")
887
+ </manipulate>
888
+ </parallel_branch>
889
+ </parallel>
890
+ </group>
891
+ <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"]
892
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
893
+ result[0] = RescueHash.new_from_obj(result[0])
894
+ end
895
+ data.result_use_repo_cinemas__call_find['list_shows'] = result[0].value('list')
896
+ </manipulate>
897
+ </group>
898
+ <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']
899
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
900
+ result[0] = RescueHash.new_from_obj(result[0])
901
+ end
902
+ data.use_repo_cinemas__list = result[0].value('list')
903
+ </manipulate>
904
+ <manipulate id="remove_objects_of_use_repo_cinemas__call_find" generated="true"> data.delete(:"result_use_repo_cinemas__call_find")
905
+ </manipulate>
906
+ <manipulate id="use_repo_cinemas__merge_result" oid="merge_result">list = data.use_repo_cinemas__list
907
+ m_list = data.use_repo_cinemas__list_merge
908
+ nos = data.use_repo_cinemas__number_of_shows
909
+
910
+ title = data.title
911
+ date = data.date
912
+ xml = XML::Smart.string("&lt;list_of_shows/&gt;")
913
+ if list.class == Array
914
+ list.each do |v|
915
+ l = XML::Smart.string(v)
916
+ xml.root.add(l.find("//show"))
917
+ end
918
+ elsif list.class == String
919
+ l = XML::Smart.string(list)
920
+ xml.root.add(l.find("//show"))
921
+ else
922
+ raise "Unexpected class of return-value - class: #{list.class}"
923
+ end
924
+ m_list = xml.root.dump
925
+ nos = xml.root.children.length
926
+ data.use_repo_cinemas__list = list
927
+ data.use_repo_cinemas__list_merge = m_list
928
+ data.use_repo_cinemas__number_of_shows = nos
929
+ </manipulate>
930
+ <choose>
931
+ <alternative condition="(data.use_repo_cinemas__number_of_shows.&gt;(0))">
932
+ <call id="use_repo_cinemas__perform_select" endpoint="select" oid="perform_select">
933
+ <parameters>
934
+ <templates>
935
+ <uri>'http://localhost:9290/groups/Cinemas//operations/search_and_book/templates/perform_select'</uri>
936
+ <name>'Select_Show'</name>
937
+ <lang>'EN'</lang>
938
+ </templates>
939
+ <method>post</method>
940
+ <info>true</info>
941
+ <parameters>
942
+ <data>data.use_repo_cinemas__list_merge</data>
943
+ </parameters>
944
+ </parameters>
945
+ <manipulate output="result">if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
946
+ result[0] = RescueHash.new_from_obj(result[0])
947
+ end
948
+ data.use_repo_cinemas__show_id = result[0].value('show_id')
949
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
950
+ result[0] = RescueHash.new_from_obj(result[0])
951
+ end
952
+ data.use_repo_cinemas__endpoint = result[0].value('target')
953
+ data.result_use_repo_cinemas['status'] = result[1]
954
+
955
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
956
+ result[0] = RescueHash.new_from_obj(result[0])
957
+ end
958
+ data.result_use_repo_cinemas['movie_title'] = result[0].value('movie_title')
959
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
960
+ result[0] = RescueHash.new_from_obj(result[0])
961
+ end
962
+ data.result_use_repo_cinemas['selected_date'] = result[0].value('date')
963
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
964
+ result[0] = RescueHash.new_from_obj(result[0])
965
+ end
966
+ data.result_use_repo_cinemas['starting_time'] = result[0].value('starting_time')
967
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
968
+ result[0] = RescueHash.new_from_obj(result[0])
969
+ end
970
+ data.result_use_repo_cinemas['hall'] = result[0].value('hall')
971
+ </manipulate>
972
+ </call>
973
+ <manipulate id="use_repo_cinemas__set_selected_endpoint" oid="set_selected_endpoint">ep = data.use_repo_cinemas__endpoint
974
+ selected = endpoints.use_repo_cinemas__selected_cinema
975
+
976
+ selected = ep
977
+ data.use_repo_cinemas__endpoint = ep
978
+ endpoints.use_repo_cinemas__selected_cinema = selected
979
+ </manipulate>
980
+ <call id="use_repo_cinemas__call_book" endpoint="use_repo_cinemas__selected_cinema" oid="call_book">
981
+ <parameters>
982
+ <service>
983
+ <serviceoperation>"book"</serviceoperation>
984
+ <injection_handler>endpoints.injection_handler</injection_handler>
985
+ </service>
986
+ <parameters>
987
+ <show_id>data.use_repo_cinemas__show_id</show_id>
988
+ </parameters>
989
+ </parameters>
990
+ </call>
991
+ <group type="injection" source="use_repo_cinemas__call_book" serviceoperation="&quot;book&quot;" result="data.result_use_repo_cinemas__call_book" properties="data.result_use_repo_cinemas['properties'][&quot;call_book&quot;]">
992
+ <manipulate id="create_objects_for_use_repo_cinemas__call_book" generated="true"> data.result_use_repo_cinemas__call_book = RescueHash.new
993
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"] = RescueHash.new
994
+ </manipulate>
995
+ <call id="use_repo_cinemas__call_book__perform_book" endpoint="use_repo_cinemas__selected_cinema" oid="perform_book">
996
+ <parameters>
997
+ <service>
998
+ <serviceoperation>"book"</serviceoperation>
999
+ <injection_handler>endpoints.injection_handler</injection_handler>
1000
+ </service>
1001
+ <parameters>
1002
+ <show_id>data.use_repo_cinemas__show_id</show_id>
1003
+ </parameters>
1004
+ </parameters>
1005
+ </call>
1006
+ <group type="injection" source="use_repo_cinemas__call_book__perform_book" serviceoperation="&quot;book&quot;" properties="data.result_use_repo_cinemas['properties'][&quot;call_book&quot;][&quot;perform_book&quot;]">
1007
+ <parallel generated="true">
1008
+ <parallel_branch generated="true">
1009
+ <manipulate id="create_objects_for_use_repo_cinemas__call_book__perform_book_service_http___localhost_9290_groups_Cinemas_REST_DonauPlexx_" generated="true"> data.result_use_repo_cinemas__call_book["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"] = RescueHash.new
1010
+ endpoints.use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep = "http://gruppe.wst.univie.ac.at/~ralph/Testservices/Cinema.php"
1011
+ # Filling the properties-object of the service
1012
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"] = RescueHash.new
1013
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"] = RescueHash.new
1014
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["street"] = "Wagramerstraße 79"
1015
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["zip"] = "1220"
1016
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["city"] = "Vienna"
1017
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["address"]["state"] = "Austria"
1018
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"] = RescueHash.new
1019
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["name"] = "Cineplexx Doanuplex"
1020
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["phone"] = "+43-1-2033322"
1021
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["url"] = "http://www.cineplexx.at/content/kinos/kinodetails.aspx"
1022
+ data.result_use_repo_cinemas['properties']["call_book"]["perform_book"]["http://localhost:9290/groups/Cinemas/REST/DonauPlexx/"]["vendor"]["mail"] = "village.donauplex@villagekinos.at"
1023
+ </manipulate>
1024
+ <call id="use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___book" endpoint="use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep" oid="">
1025
+ <parameters>
1026
+ <method>post</method>
1027
+ <parameters>
1028
+ <showID>data.use_repo_cinemas__show_id</showID>
1029
+ </parameters>
1030
+ </parameters>
1031
+ <manipulate output="result">if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
1032
+ result[0] = RescueHash.new_from_obj(result[0])
1033
+ end
1034
+ data.result_use_repo_cinemas__call_book['http://localhost:9290/groups/Cinemas/REST/DonauPlexx/']['reservation_id'] = result[0].value('resID')
1035
+ </manipulate>
1036
+ </call>
1037
+ <manipulate id="remove_objects_of_use_repo_cinemas__call_book__perform_book_service_http___localhost_9290_groups_Cinemas_REST_DonauPlexx_" generated="true"> endpoints.delete(:"use_repo_cinemas__call_book__perform_book__http___localhost_9290_groups_Cinemas_REST_DonauPlexx___ep")
1038
+ </manipulate>
1039
+ </parallel_branch>
1040
+ </parallel>
1041
+ </group>
1042
+ <manipulate output="result" id="manipulate_from_use_repo_cinemas__call_book__perform_book" data="data.result_use_repo_cinemas__call_book" properties="data.result_use_repo_cinemas['properties'][&quot;call_book&quot;]">properties = data.result_use_repo_cinemas['properties']["call_book"]
1043
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
1044
+ result[0] = RescueHash.new_from_obj(result[0])
1045
+ end
1046
+ data.result_use_repo_cinemas__call_book['reservation_number'] = result[0].value('reservation_id')
1047
+ </manipulate>
1048
+ </group>
1049
+ <manipulate output="result" id="manipulate_from_use_repo_cinemas__call_book" data="data.result_use_repo_cinemas__call_book" properties="data.result_use_repo_cinemas['properties']">properties = data.result_use_repo_cinemas['properties']
1050
+ if result[0].class.to_s == "Hash" # to allows access to nested Hash-Keys
1051
+ result[0] = RescueHash.new_from_obj(result[0])
1052
+ end
1053
+ data.result_use_repo_cinemas['reservation_id'] = result[0].value('reservation_number')
1054
+ </manipulate>
1055
+ <manipulate id="remove_objects_of_use_repo_cinemas__call_book" generated="true"> data.delete(:"result_use_repo_cinemas__call_book")
1056
+ </manipulate>
1057
+ <manipulate id="use_repo_cinemas__set_status_success" oid="set_status_success">
1058
+ status = 200
1059
+ data.result_use_repo_cinemas['status'] = status
1060
+ </manipulate>
1061
+ </alternative>
1062
+ <otherwise>
1063
+ <manipulate id="use_repo_cinemas__set_status_failed" oid="set_status_failed">
1064
+ status = 404
1065
+ data.result_use_repo_cinemas['status'] = status
1066
+ </manipulate>
1067
+ </otherwise>
1068
+ </choose>
1069
+ </group>
1070
+ <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']
1071
+
1072
+ res = result[0]
1073
+ if res['status'] == 200
1074
+ # Computing service responses
1075
+ data.reservation_number = res['reservation_id']
1076
+ data.starting_time = res['starting_time']
1077
+ data.selected_title = res['movie_title']
1078
+ data.selected_date = res['selected_date']
1079
+ data.hall = res['hall']
1080
+ # Computing properties of executed services
1081
+ perf_book = properties['call_book']['perform_book']
1082
+ 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']}"
1083
+ end
1084
+ </manipulate>
1085
+ <manipulate id="remove_objects_of_use_repo_cinemas" generated="true"> data.delete(:"result_use_repo_cinemas")
1086
+ data.delete(:"properties_use_repo_cinemas")
1087
+ endpoints.delete(:"use_repo_cinemas__selected_cinema")
1088
+ data.delete(:"use_repo_cinemas__show_id")
1089
+ data.delete(:"use_repo_cinemas__list")
1090
+ data.delete(:"use_repo_cinemas__res")
1091
+ data.delete(:"use_repo_cinemas__list_merge")
1092
+ data.delete(:"use_repo_cinemas__number_of_shows")
1093
+ data.delete(:"use_repo_cinemas__endpoint")
1094
+ </manipulate>
1095
+ <call id="confirm" endpoint="select">
1096
+ <parameters>
1097
+ <method>post</method>
1098
+ <info>true</info>
1099
+ <templates>
1100
+ <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
1101
+ <!-- uri>'http://gus.lan/input-forms/cinemas.xsl'</uri -->
1102
+ <name>'Cinemas-Output'</name>
1103
+ <lang>'EN'</lang>
1104
+ </templates>
1105
+ <parameters>
1106
+ <title>data.selected_title</title>
1107
+ <date>data.selected_date</date>
1108
+ <time>data.starting_time</time>
1109
+ <hall>data.hall</hall>
1110
+ <res_nr>data.reservation_number</res_nr>
1111
+ <cinema>data.selected_cinema</cinema>
1112
+ </parameters>
1113
+ </parameters>
1114
+ </call>
1115
+ </description>
1116
+ </description>
1117
+ <transformation>
1118
+ <!--{{{-->
1119
+ <!--}}}-->
1120
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0" version="1.0">
1121
+ <xsl:output method="text"/>
1122
+ <xsl:strip-space elements="*"/>
1123
+ <xsl:variable name="myspacemultiplier">2</xsl:variable>
1124
+ <xsl:template match="/">
1125
+ <xsl:apply-templates select="//d:description"/>
1126
+ </xsl:template>
1127
+ <xsl:template match="//d:description">
1128
+ <xsl:apply-templates>
1129
+ <xsl:with-param name="myspace">
1130
+ <xsl:value-of select="-1*$myspacemultiplier"/>
1131
+ </xsl:with-param>
1132
+ </xsl:apply-templates>
1133
+ </xsl:template>
1134
+ <xsl:template match="*">
1135
+ <xsl:param name="myspace"/>
1136
+ <xsl:call-template name="print-space">
1137
+ <xsl:with-param name="i">1</xsl:with-param>
1138
+ <xsl:with-param name="count">
1139
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1140
+ </xsl:with-param>
1141
+ </xsl:call-template>
1142
+ <xsl:if test="name()='call' or name()='manipulate'">
1143
+ <xsl:text>activity :</xsl:text>
1144
+ <xsl:value-of select="@id"/>
1145
+ </xsl:if>
1146
+ <xsl:if test="name()='call'">
1147
+ <xsl:text>, :call, :</xsl:text>
1148
+ <xsl:value-of select="@endpoint"/>
1149
+ <xsl:apply-templates select="d:parameters"/>
1150
+ <xsl:if test="@oid">
1151
+ <xsl:text>, :'call-oid' =&gt; '</xsl:text>
1152
+ <xsl:value-of select="@oid"/>
1153
+ <xsl:text>'</xsl:text>
1154
+ </xsl:if>
1155
+ <xsl:apply-templates select="d:manipulate" mode="part-of-call">
1156
+ <xsl:with-param name="myspace">
1157
+ <xsl:value-of select="$myspace"/>
1158
+ </xsl:with-param>
1159
+ </xsl:apply-templates>
1160
+ <xsl:call-template name="print-newline"/>
1161
+ </xsl:if>
1162
+ <xsl:if test="name()='manipulate'">
1163
+ <xsl:text>, :manipulate</xsl:text>
1164
+ <!-- RESCUE: manipulate with dataelement as result object -->
1165
+ <xsl:if test="@data">
1166
+ <xsl:text>, nil,</xsl:text>
1167
+ <xsl:value-of select="@data"/>
1168
+ </xsl:if>
1169
+ <!-- RESCUE -->
1170
+ <xsl:call-template name="print-content">
1171
+ <xsl:with-param name="myspace">
1172
+ <xsl:value-of select="$myspace"/>
1173
+ </xsl:with-param>
1174
+ </xsl:call-template>
1175
+ <xsl:call-template name="print-newline"/>
1176
+ </xsl:if>
1177
+ <xsl:if test="name()='parallel'">
1178
+ <xsl:text>parallel</xsl:text>
1179
+ <xsl:if test="@wait">
1180
+ <xsl:text> :wait =&gt; </xsl:text>
1181
+ <xsl:value-of select="@wait"/>
1182
+ </xsl:if>
1183
+ <xsl:text> do</xsl:text>
1184
+ <xsl:call-template name="print-newline"/>
1185
+ <xsl:apply-templates>
1186
+ <xsl:with-param name="myspace">
1187
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1188
+ </xsl:with-param>
1189
+ </xsl:apply-templates>
1190
+ <xsl:call-template name="print-space">
1191
+ <xsl:with-param name="i">1</xsl:with-param>
1192
+ <xsl:with-param name="count">
1193
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1194
+ </xsl:with-param>
1195
+ </xsl:call-template>
1196
+ <xsl:text>end</xsl:text>
1197
+ <xsl:call-template name="print-newline"/>
1198
+ </xsl:if>
1199
+ <xsl:if test="name()='loop'">
1200
+ <xsl:text>loop </xsl:text>
1201
+ <xsl:if test="@pre_test">
1202
+ <xsl:text>pre_test{</xsl:text>
1203
+ <xsl:value-of select="@pre_test"/>
1204
+ <xsl:text>} </xsl:text>
1205
+ </xsl:if>
1206
+ <xsl:if test="@post_test">
1207
+ <xsl:text>post_test{</xsl:text>
1208
+ <xsl:value-of select="@post_test"/>
1209
+ <xsl:text>} </xsl:text>
1210
+ </xsl:if>
1211
+ <xsl:text>do</xsl:text>
1212
+ <xsl:call-template name="print-newline"/>
1213
+ <xsl:apply-templates>
1214
+ <xsl:with-param name="myspace">
1215
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1216
+ </xsl:with-param>
1217
+ </xsl:apply-templates>
1218
+ <xsl:call-template name="print-space">
1219
+ <xsl:with-param name="i">1</xsl:with-param>
1220
+ <xsl:with-param name="count">
1221
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1222
+ </xsl:with-param>
1223
+ </xsl:call-template>
1224
+ <xsl:text>end</xsl:text>
1225
+ <xsl:call-template name="print-newline"/>
1226
+ </xsl:if>
1227
+ <xsl:if test="name()='choose'">
1228
+ <xsl:text>choose do</xsl:text>
1229
+ <xsl:call-template name="print-newline"/>
1230
+ <xsl:apply-templates>
1231
+ <xsl:with-param name="myspace">
1232
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1233
+ </xsl:with-param>
1234
+ </xsl:apply-templates>
1235
+ <xsl:call-template name="print-space">
1236
+ <xsl:with-param name="i">1</xsl:with-param>
1237
+ <xsl:with-param name="count">
1238
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1239
+ </xsl:with-param>
1240
+ </xsl:call-template>
1241
+ <xsl:text>end</xsl:text>
1242
+ <xsl:call-template name="print-newline"/>
1243
+ </xsl:if>
1244
+ <xsl:if test="name()='group'">
1245
+ <xsl:apply-templates>
1246
+ <xsl:with-param name="myspace">
1247
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1248
+ </xsl:with-param>
1249
+ </xsl:apply-templates>
1250
+ <xsl:call-template name="print-newline"/>
1251
+ </xsl:if>
1252
+ <xsl:if test="name()='critical'">
1253
+ <xsl:text>critical :</xsl:text>
1254
+ <xsl:value-of select="@sid"/>
1255
+ <xsl:text> do</xsl:text>
1256
+ <xsl:call-template name="print-newline"/>
1257
+ <xsl:apply-templates>
1258
+ <xsl:with-param name="myspace">
1259
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1260
+ </xsl:with-param>
1261
+ </xsl:apply-templates>
1262
+ <xsl:call-template name="print-space">
1263
+ <xsl:with-param name="i">1</xsl:with-param>
1264
+ <xsl:with-param name="count">
1265
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1266
+ </xsl:with-param>
1267
+ </xsl:call-template>
1268
+ <xsl:text>end</xsl:text>
1269
+ <xsl:call-template name="print-newline"/>
1270
+ </xsl:if>
1271
+ </xsl:template>
1272
+ <xsl:template match="d:alternative">
1273
+ <xsl:param name="myspace"/>
1274
+ <xsl:call-template name="print-space">
1275
+ <xsl:with-param name="i">1</xsl:with-param>
1276
+ <xsl:with-param name="count">
1277
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1278
+ </xsl:with-param>
1279
+ </xsl:call-template>
1280
+ <xsl:text>alternative </xsl:text>
1281
+ <xsl:value-of select="@condition"/>
1282
+ <xsl:text> do</xsl:text>
1283
+ <xsl:call-template name="print-newline"/>
1284
+ <xsl:apply-templates>
1285
+ <xsl:with-param name="myspace">
1286
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1287
+ </xsl:with-param>
1288
+ </xsl:apply-templates>
1289
+ <xsl:call-template name="print-space">
1290
+ <xsl:with-param name="i">1</xsl:with-param>
1291
+ <xsl:with-param name="count">
1292
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1293
+ </xsl:with-param>
1294
+ </xsl:call-template>
1295
+ <xsl:text>end</xsl:text>
1296
+ <xsl:call-template name="print-newline"/>
1297
+ </xsl:template>
1298
+ <xsl:template match="d:otherwise">
1299
+ <xsl:param name="myspace"/>
1300
+ <xsl:call-template name="print-space">
1301
+ <xsl:with-param name="i">1</xsl:with-param>
1302
+ <xsl:with-param name="count">
1303
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1304
+ </xsl:with-param>
1305
+ </xsl:call-template>
1306
+ <xsl:text>otherwise do</xsl:text>
1307
+ <xsl:call-template name="print-newline"/>
1308
+ <xsl:apply-templates>
1309
+ <xsl:with-param name="myspace">
1310
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1311
+ </xsl:with-param>
1312
+ </xsl:apply-templates>
1313
+ <xsl:call-template name="print-space">
1314
+ <xsl:with-param name="i">1</xsl:with-param>
1315
+ <xsl:with-param name="count">
1316
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1317
+ </xsl:with-param>
1318
+ </xsl:call-template>
1319
+ <xsl:text>end</xsl:text>
1320
+ <xsl:call-template name="print-newline"/>
1321
+ </xsl:template>
1322
+ <xsl:template match="d:parallel_branch">
1323
+ <xsl:param name="myspace"/>
1324
+ <xsl:call-template name="print-space">
1325
+ <xsl:with-param name="i">1</xsl:with-param>
1326
+ <xsl:with-param name="count">
1327
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1328
+ </xsl:with-param>
1329
+ </xsl:call-template>
1330
+ <xsl:text>parallel_branch</xsl:text>
1331
+ <xsl:if test="@pass">
1332
+ <xsl:text> </xsl:text>
1333
+ <xsl:value-of select="@pass"/>
1334
+ </xsl:if>
1335
+ <xsl:text> do</xsl:text>
1336
+ <xsl:if test="@local">
1337
+ <xsl:text> |</xsl:text>
1338
+ <xsl:value-of select="@local"/>
1339
+ <xsl:text>|</xsl:text>
1340
+ </xsl:if>
1341
+ <xsl:call-template name="print-newline"/>
1342
+ <xsl:apply-templates>
1343
+ <xsl:with-param name="myspace">
1344
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1345
+ </xsl:with-param>
1346
+ </xsl:apply-templates>
1347
+ <xsl:call-template name="print-space">
1348
+ <xsl:with-param name="i">1</xsl:with-param>
1349
+ <xsl:with-param name="count">
1350
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1351
+ </xsl:with-param>
1352
+ </xsl:call-template>
1353
+ <xsl:text>end</xsl:text>
1354
+ <xsl:call-template name="print-newline"/>
1355
+ </xsl:template>
1356
+ <xsl:template match="d:parameters">
1357
+ <xsl:apply-templates select="d:*" mode="parameter"/>
1358
+ </xsl:template>
1359
+ <xsl:template match="d:*" mode="parameter">
1360
+ <xsl:text>, :</xsl:text>
1361
+ <xsl:value-of select="name()"/>
1362
+ <xsl:text> =&gt; </xsl:text>
1363
+ <xsl:choose>
1364
+ <xsl:when test="count(*) &gt; 0">
1365
+ <xsl:text>[</xsl:text>
1366
+ <xsl:apply-templates select="d:*" mode="sub-parameter"/>
1367
+ <xsl:text>]</xsl:text>
1368
+ </xsl:when>
1369
+ <xsl:otherwise>
1370
+ <xsl:choose>
1371
+ <xsl:when test="@type = 'symbolic'">
1372
+ <xsl:value-of select="text()"/>
1373
+ </xsl:when>
1374
+ <xsl:otherwise>
1375
+ <xsl:text>"</xsl:text>
1376
+ <xsl:value-of select="text()"/>
1377
+ <xsl:text>"</xsl:text>
1378
+ </xsl:otherwise>
1379
+ </xsl:choose>
1380
+ </xsl:otherwise>
1381
+ </xsl:choose>
1382
+ </xsl:template>
1383
+ <xsl:template match="d:*" mode="sub-parameter">
1384
+ <xsl:text> { :</xsl:text>
1385
+ <xsl:value-of select="name()"/>
1386
+ <xsl:text> =&gt; </xsl:text>
1387
+ <xsl:value-of select="text()"/>
1388
+ <xsl:text> }</xsl:text>
1389
+ <xsl:choose>
1390
+ <xsl:when test="generate-id(.) = generate-id(../*[last()])">
1391
+ <xsl:text> </xsl:text>
1392
+ </xsl:when>
1393
+ <xsl:otherwise>
1394
+ <xsl:text>,</xsl:text>
1395
+ </xsl:otherwise>
1396
+ </xsl:choose>
1397
+ </xsl:template>
1398
+ <xsl:template match="d:manipulate" mode="part-of-call">
1399
+ <xsl:param name="myspace"/>
1400
+ <xsl:call-template name="print-content">
1401
+ <xsl:with-param name="myspace">
1402
+ <xsl:value-of select="$myspace"/>
1403
+ </xsl:with-param>
1404
+ </xsl:call-template>
1405
+ </xsl:template>
1406
+ <xsl:template name="print-content">
1407
+ <xsl:param name="myspace"/>
1408
+ <xsl:if test="text()">
1409
+ <xsl:text> do </xsl:text>
1410
+ <xsl:if test="@output">
1411
+ <xsl:text>|</xsl:text>
1412
+ <xsl:value-of select="@output"/>
1413
+ <xsl:text>|</xsl:text>
1414
+ </xsl:if>
1415
+ <xsl:call-template name="print-newline"/>
1416
+ <xsl:value-of select="text()"/>
1417
+ <xsl:call-template name="print-newline"/>
1418
+ <xsl:call-template name="print-space">
1419
+ <xsl:with-param name="i">1</xsl:with-param>
1420
+ <xsl:with-param name="count">
1421
+ <xsl:value-of select="$myspace+$myspacemultiplier"/>
1422
+ </xsl:with-param>
1423
+ </xsl:call-template>
1424
+ <xsl:text>end</xsl:text>
1425
+ </xsl:if>
1426
+ </xsl:template>
1427
+ <xsl:template name="print-space">
1428
+ <xsl:param name="i"/>
1429
+ <xsl:param name="count"/>
1430
+ <xsl:if test="$i &lt;= $count">
1431
+ <xsl:text> </xsl:text>
1432
+ <xsl:call-template name="print-space">
1433
+ <xsl:with-param name="i">
1434
+ <xsl:value-of select="$i + 1"/>
1435
+ </xsl:with-param>
1436
+ <xsl:with-param name="count">
1437
+ <xsl:value-of select="$count"/>
1438
+ </xsl:with-param>
1439
+ </xsl:call-template>
1440
+ </xsl:if>
1441
+ </xsl:template>
1442
+ <xsl:template name="print-newline">
1443
+ <xsl:text>
1444
+ </xsl:text>
1445
+ </xsl:template>
1446
+ </xsl:stylesheet>
1447
+ </transformation>
1448
+ </properties>