cpee 1.3.201 → 1.3.202

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/wfadaptor.css +6 -0
  3. data/cockpit/index.html +0 -21
  4. data/cockpit/testsets/Lego Crane.xml +113 -0
  5. data/cockpit/testsets/Lego Ejector.xml +2 -2
  6. data/cockpit/testsets/Lego Plate.xml +36 -0
  7. data/cockpit/testsets/testsets.xml +2 -1
  8. data/cockpit/themes/default/theme.js +1 -1
  9. data/cpee.gemspec +1 -1
  10. data/server/handlerwrappers/default.rb +9 -9
  11. data/server/instances/1/properties.xml +33 -33
  12. data/server/instances/10/properties.xml +10 -128
  13. data/server/instances/11/properties.xml +34 -122
  14. data/server/instances/12/properties.xml +24 -22
  15. data/server/instances/13/properties.xml +32 -120
  16. data/server/instances/14/properties.xml +107 -69
  17. data/server/instances/15/properties.xml +40 -85
  18. data/server/instances/16/properties.xml +36 -87
  19. data/server/instances/17/properties.xml +9 -128
  20. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/consumer-secret +1 -0
  21. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/producer-secret +1 -0
  22. data/server/instances/{69/notifications/4fa830eafc09f4c0d0070a3453cac985 → 18/notifications/b4e45a42c61d03b052d768c1693af99f}/subscription.xml +7 -3
  23. data/server/instances/18/properties.xml +24 -24
  24. data/server/instances/2/properties.xml +9 -808
  25. data/server/instances/3/properties.xml +39 -7
  26. data/server/instances/4/properties.xml +30 -117
  27. data/server/instances/5/properties.xml +28 -115
  28. data/server/instances/6/properties.xml +11 -129
  29. data/server/instances/7/properties.xml +30 -117
  30. data/server/instances/8/properties.xml +10 -128
  31. data/server/instances/9/properties.xml +39 -7
  32. data/server/resources/transformation_dslx.xsl +35 -28
  33. data/server/weel.rb +1 -0
  34. metadata +8 -69
  35. data/server/instances/19/properties.xml +0 -115
  36. data/server/instances/20/properties.xml +0 -114
  37. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +0 -1
  38. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +0 -1
  39. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +0 -6
  40. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +0 -1
  41. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +0 -1
  42. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +0 -23
  43. data/server/instances/21/properties.xml +0 -150
  44. data/server/instances/22/properties.xml +0 -114
  45. data/server/instances/23/properties.xml +0 -89
  46. data/server/instances/24/properties.xml +0 -169
  47. data/server/instances/25/properties.xml +0 -150
  48. data/server/instances/26/properties.xml +0 -114
  49. data/server/instances/27/properties.xml +0 -142
  50. data/server/instances/28/properties.xml +0 -150
  51. data/server/instances/29/properties.xml +0 -150
  52. data/server/instances/30/properties.xml +0 -114
  53. data/server/instances/31/properties.xml +0 -150
  54. data/server/instances/32/properties.xml +0 -31
  55. data/server/instances/33/properties.xml +0 -150
  56. data/server/instances/34/properties.xml +0 -150
  57. data/server/instances/35/properties.xml +0 -150
  58. data/server/instances/36/properties.xml +0 -165
  59. data/server/instances/37/properties.xml +0 -114
  60. data/server/instances/38/properties.xml +0 -163
  61. data/server/instances/39/log.xes +0 -137
  62. data/server/instances/39/properties.xml +0 -177
  63. data/server/instances/40/properties.xml +0 -45
  64. data/server/instances/41/log.xes +0 -138
  65. data/server/instances/41/properties.xml +0 -177
  66. data/server/instances/42/log.xes +0 -138
  67. data/server/instances/42/properties.xml +0 -177
  68. data/server/instances/43/log.xes +0 -138
  69. data/server/instances/43/properties.xml +0 -177
  70. data/server/instances/44/log.xes +0 -138
  71. data/server/instances/44/properties.xml +0 -177
  72. data/server/instances/45/log.xes +0 -10
  73. data/server/instances/45/properties.xml +0 -177
  74. data/server/instances/46/properties.xml +0 -31
  75. data/server/instances/47/properties.xml +0 -150
  76. data/server/instances/48/log.xes +0 -122
  77. data/server/instances/48/properties.xml +0 -187
  78. data/server/instances/49/properties.xml +0 -187
  79. data/server/instances/50/properties.xml +0 -114
  80. data/server/instances/51/properties.xml +0 -130
  81. data/server/instances/52/properties.xml +0 -130
  82. data/server/instances/53/properties.xml +0 -31
  83. data/server/instances/54/properties.xml +0 -130
  84. data/server/instances/55/properties.xml +0 -31
  85. data/server/instances/56/properties.xml +0 -31
  86. data/server/instances/57/properties.xml +0 -561
  87. data/server/instances/58/properties.xml +0 -550
  88. data/server/instances/59/properties.xml +0 -418
  89. data/server/instances/60/properties.xml +0 -150
  90. data/server/instances/61/properties.xml +0 -150
  91. data/server/instances/62/properties.xml +0 -114
  92. data/server/instances/63/properties.xml +0 -150
  93. data/server/instances/64/properties.xml +0 -114
  94. data/server/instances/65/properties.xml +0 -114
  95. data/server/instances/66/properties.xml +0 -114
  96. data/server/instances/67/properties.xml +0 -114
  97. data/server/instances/68/properties.xml +0 -112
  98. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/consumer-secret +0 -1
  99. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/producer-secret +0 -1
  100. data/server/instances/69/properties.xml +0 -114
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c91ee6d1810df19080fad58b40f785557d931606
4
- data.tar.gz: 130f95a0241b97dd1c283c99decfda35bd7ce92d
3
+ metadata.gz: 39abc9d97536d864171e4924da4921935aa43e2c
4
+ data.tar.gz: 8a762337462e552b74335bdd0713a2062557a246
5
5
  SHA512:
6
- metadata.gz: 0dbecc6df1c73c1fe9e8f8890cc22bae96eb572e8de028f418126dc31505a5ed0172e3c9d5603d8a9c128f287b6783713b56c22b3923709e588f1c6a8aed4ed9
7
- data.tar.gz: d4562daa9c4bfd36e90f15aa4c3267af128822a17d0643f386f264282e3561720319da705a3c8b7d8aad7b5105451aa617123387969df6f5644554292cb31d77
6
+ metadata.gz: c91404e6234785fd1504da9436983e7b82b448309369202b8de410299f59dc321d9f73b480a4d1581cd87bcbd592b62400d54eefc893d787cb0726741478b65d
7
+ data.tar.gz: 621927fc29868c2fc2f1984f1073b8a56fa09235bddc723ea6b1a6065c59298ceb5b792d25e3a87474fd22de0acea43cce00089a94c9844ce8f5fa84b27ccd42
@@ -94,6 +94,12 @@ svg .black {
94
94
  stroke-dasharray:none;
95
95
  }
96
96
 
97
+ svg .clicked {
98
+ fill: grey;
99
+ stroke: grey;
100
+ filter: drop-shadow(16px 16px 0.5em rgba(0,0,0,0.9));
101
+ }
102
+
97
103
  svg .unknown {
98
104
  fill:#FF0000;
99
105
  fill-opacity:1;
@@ -105,11 +105,6 @@
105
105
  <style>
106
106
  /* has to be fucking inline, because firefox and chrome disagree how to handle filter urls */
107
107
  /* shit balls, no elegance is left in this world */
108
- svg .clicked {
109
- fill: grey;
110
- stroke: grey;
111
- filter: url(#black-glow);
112
- }
113
108
  </style>
114
109
  </head>
115
110
  <body data-defaultport="9298" data-theme-base="themes" is="x-ui">
@@ -163,22 +158,6 @@
163
158
  </p>
164
159
  </div> <!--}}}-->
165
160
 
166
- <svg xmlns="http://www.w3.org/2000/svg" height="0">
167
- <defs>
168
- <filter id="black-glow">
169
- <feColorMatrix type="matrix" values=
170
- "0 0 0 0 0
171
- 0 0 0 0 0
172
- 0 0 0 0 0
173
- 0 0 0 1 0"/>
174
- <feGaussianBlur stdDeviation="1.5" result="coloredBlur"/>
175
- <feMerge>
176
- <feMergeNode in="coloredBlur"/>
177
- <feMergeNode in="SourceGraphic"/>
178
- </feMerge>
179
- </filter>
180
- </defs>
181
- </svg>
182
161
  <div class='hidden' id='relaxngworker'></div>
183
162
 
184
163
  <div class='menu' id='predefinedtestsets'></div>
@@ -0,0 +1,113 @@
1
+ <testset>
2
+ <dataelements/>
3
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
4
+ <endpoints>
5
+ <timeout xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
6
+ <movex xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://crane.wst.univie.ac.at:9200/move/x</movex>
7
+ <vacuum xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://crane.wst.univie.ac.at:9200/vacuum</vacuum>
8
+ <movey xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://crane.wst.univie.ac.at:9200/move/y</movey>
9
+ </endpoints>
10
+ <positions/>
11
+ <description>
12
+ <description xmlns="http://cpee.org/ns/description/1.0">
13
+ <call id="a1" endpoint="movex">
14
+ <parameters>
15
+ <label>Go to Conveyor</label>
16
+ <method>:post</method>
17
+ <arguments>
18
+ <pos>"conveyor"</pos>
19
+ </arguments>
20
+ </parameters>
21
+ </call>
22
+ <call id="a2" endpoint="vacuum">
23
+ <parameters>
24
+ <label/>
25
+ <method>:post</method>
26
+ <arguments>
27
+ <switch>true</switch>
28
+ </arguments>
29
+ </parameters>
30
+ </call>
31
+ <call id="a3" endpoint="movey">
32
+ <parameters>
33
+ <label>Raise Crane</label>
34
+ <method>:post</method>
35
+ <arguments>
36
+ <up>true</up>
37
+ </arguments>
38
+ </parameters>
39
+ </call>
40
+ <call id="a4" endpoint="movex">
41
+ <parameters>
42
+ <label>Go to Plate</label>
43
+ <method>:post</method>
44
+ <arguments>
45
+ <pos>"plate"</pos>
46
+ </arguments>
47
+ </parameters>
48
+ </call>
49
+ <call id="a5" endpoint="movey">
50
+ <parameters>
51
+ <label>Lower Crane</label>
52
+ <method>:post</method>
53
+ <arguments>
54
+ <up>false</up>
55
+ </arguments>
56
+ </parameters>
57
+ </call>
58
+ <call id="a6" endpoint="vacuum">
59
+ <parameters>
60
+ <label>Turn off vacuum</label>
61
+ <method>:post</method>
62
+ <arguments/>
63
+ </parameters>
64
+ </call>
65
+ <call id="a7" endpoint="timeout">
66
+ <parameters>
67
+ <label>Wait a bissl</label>
68
+ <method>:post</method>
69
+ <arguments>
70
+ <timeout>5</timeout>
71
+ </arguments>
72
+ </parameters>
73
+ </call>
74
+ <call id="a8" endpoint="movey">
75
+ <parameters>
76
+ <label>Raise Vacuum</label>
77
+ <method>:post</method>
78
+ <arguments>
79
+ <up>true</up>
80
+ </arguments>
81
+ </parameters>
82
+ </call>
83
+ <call id="a9" endpoint="movex">
84
+ <parameters>
85
+ <label>Go to Conveyor</label>
86
+ <method>:post</method>
87
+ <arguments>
88
+ <pos>"conveyor"</pos>
89
+ </arguments>
90
+ </parameters>
91
+ </call>
92
+ <call id="a10" endpoint="movey">
93
+ <parameters>
94
+ <label>Lower Crane</label>
95
+ <method>:post</method>
96
+ <arguments>
97
+ <up>false</up>
98
+ </arguments>
99
+ </parameters>
100
+ </call>
101
+ </description>
102
+ </description>
103
+ <transformation>
104
+ <description type="copy"/>
105
+ <dataelements type="none"/>
106
+ <endpoints type="none"/>
107
+ </transformation>
108
+ <attributes>
109
+ <info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">Lego Crane</info>
110
+ <modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
111
+ <theme xmlns="http://riddl.org/ns/common-patterns/properties/1.0">default</theme>
112
+ </attributes>
113
+ </testset>
@@ -3,8 +3,8 @@
3
3
  <dataelements/>
4
4
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
5
  <endpoints>
6
- <pickUp xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://crane.wst.univie.ac.at:9200/pickUp</pickUp>
7
- <eject xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://crane.wst.univie.ac.at:9200/eject</eject>
6
+ <pickUp xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://ejector.wst.univie.ac.at:9200/pickUp</pickUp>
7
+ <eject xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://ejector.wst.univie.ac.at:9200/eject</eject>
8
8
  </endpoints>
9
9
  <positions/>
10
10
  <description>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0"?>
2
+ <testset>
3
+ <dataelements>
4
+ <i xmlns="http://riddl.org/ns/common-patterns/properties/1.0">0</i>
5
+ </dataelements>
6
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
7
+ <endpoints>
8
+ <timeout xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
9
+ <move xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://plate.wst.univie.ac.at:9200/go-next</move>
10
+ </endpoints>
11
+ <positions/>
12
+ <description>
13
+ <description xmlns="http://cpee.org/ns/description/1.0">
14
+ <loop mode="pre_test" condition="data.i&lt;2">
15
+ <call id="a1" endpoint="move">
16
+ <parameters>
17
+ <label>Move to next station</label>
18
+ <method>:post</method>
19
+ <arguments/>
20
+ </parameters>
21
+ <finalize output="result">data.i= data.i + 1</finalize>
22
+ <update output="result"/>
23
+ </call>
24
+ </loop>
25
+ </description>
26
+ </description>
27
+ <transformation>
28
+ <description type="copy"/>
29
+ <dataelements type="none"/>
30
+ <endpoints type="none"/>
31
+ </transformation>
32
+ <attributes>
33
+ <info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">Lego Plate</info>
34
+ <modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
35
+ </attributes>
36
+ </testset>
@@ -15,7 +15,6 @@
15
15
  <testset>Syncing P34 1</testset>
16
16
  <testset>Syncing P34 2</testset>
17
17
  <testset>Syncing P34 3</testset>
18
- <testset>Signavio Model Base</testset>
19
18
  <testset>Worklist Test</testset>
20
19
  <testset>Worklist Test CPEE</testset>
21
20
  <testset>Worklist Parallel</testset>
@@ -24,4 +23,6 @@
24
23
  <testset>Lego Conveyor</testset>
25
24
  <testset>Lego Transporter</testset>
26
25
  <testset>Lego Ejector</testset>
26
+ <testset>Lego Crane</testset>
27
+ <testset>Lego Plate</testset>
27
28
  </testsets>
@@ -211,7 +211,7 @@ function WFAdaptorManifestation(adaptor) {
211
211
  'params': [self.adaptor.description.elements.alternative, node]}];
212
212
  if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
213
213
  childs.push({'label': 'Otherwise',
214
- 'function_call': func,
214
+ 'function_call': self.adaptor.description.insert_last_into,
215
215
  'menu_icon': self.elements.otherwise.illustrator.svg.clone(),
216
216
  'params': [self.adaptor.description.elements.otherwise, node]});
217
217
  if(node.parents('parallel').length > node.parents('parallel_branch').length)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.201"
3
+ s.version = "1.3.202"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -47,15 +47,11 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
47
47
  if passthrough.nil?
48
48
  params = []
49
49
  callback = Digest::MD5.hexdigest(Kernel::rand().to_s)
50
- (parameters[:arguments] || {}).each do |k,v|
51
- if v.is_a?(Struct)
52
- if v.respond_to?(:mimetype)
53
- params << Riddl::Parameter::Complex.new("#{k}",v.mimetype,v.value)
54
- else
55
- params << Riddl::Parameter::Simple.new("#{k}",CPEE::ValueHelper::generate(v.value))
56
- end
50
+ (parameters[:arguments] || []).each do |s|
51
+ if s.respond_to?(:mimetype)
52
+ params << Riddl::Parameter::Complex.new(s.name.to_s,v.mimetype,v.value)
57
53
  else
58
- params << Riddl::Parameter::Simple.new("#{k}",CPEE::ValueHelper::generate(v))
54
+ params << Riddl::Parameter::Simple.new(s.name.to_s,CPEE::ValueHelper::generate(s.value))
59
55
  end
60
56
  end
61
57
  params << Riddl::Header.new("CPEE_BASE",@controller.base_url)
@@ -151,8 +147,12 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
151
147
  result = XML::Smart::string(result[0].value.read) rescue nil
152
148
  elsif result[0].mimetype == 'text/plain'
153
149
  result = result[0].value.read
150
+ result = result.to_f if result == result.to_f.to_s
151
+ result = result.to_i if result == result.to_i.to_s
154
152
  elsif result[0].mimetype == 'text/html'
155
- result[0].value.read
153
+ result = result[0].value.read
154
+ result = result.to_f if result == result.to_f.to_s
155
+ result = result.to_i if result == result.to_i.to_s
156
156
  else
157
157
  result = result[0]
158
158
  end
@@ -1,37 +1,38 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <info>Enter info here</info>
3
+ <uuid>618e7837-ef17-4a56-9039-b37f5b7e0fbd</uuid>
4
+ <info>Lego Plate</info>
4
5
  <modeltype>CPEE</modeltype>
5
- <uuid>c91f5bd9-a75b-4013-98d9-1f9b42f9e2bf</uuid>
6
6
  </attributes>
7
- <state>ready</state>
7
+ <state>stopped</state>
8
8
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
9
9
  <positions/>
10
- <dataelements/>
10
+ <dataelements>
11
+ <i>0</i>
12
+ </dataelements>
11
13
  <endpoints>
12
14
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
+ <move>http://plate.wst.univie.ac.at:9200/go-next</move>
13
16
  </endpoints>
14
- <dsl>manipulate :a1
15
- parallel do
16
- parallel_branch do
17
- call :a2, nil, parameters: { :label =&gt; "", :method =&gt; :post, :parameters =&gt; nil }
18
- end
17
+ <dsl>loop pre_test{i&lt;2} do
18
+ call :a1, :move, parameters: { :label =&gt; "Move to next station", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
19
+ data.i= data.i + 1
20
+ END
19
21
  end
20
22
  </dsl>
21
23
  <dslx>
22
24
  <description xmlns="http://cpee.org/ns/description/1.0">
23
- <manipulate id="a1" svg-label=""/>
24
- <parallel svg-label="">
25
- <parallel_branch svg-label="">
26
- <call id="a2" endpoint="" svg-label="">
27
- <parameters>
28
- <label>""</label>
29
- <method>:post</method>
30
- <parameters/>
31
- </parameters>
32
- </call>
33
- </parallel_branch>
34
- </parallel>
25
+ <loop mode="pre_test" condition="i&lt;2">
26
+ <call id="a1" endpoint="move">
27
+ <parameters>
28
+ <label>Move to next station</label>
29
+ <method>:post</method>
30
+ <arguments/>
31
+ </parameters>
32
+ <finalize output="result">data.i= data.i + 1</finalize>
33
+ <update output="result"/>
34
+ </call>
35
+ </loop>
35
36
  </description>
36
37
  </dslx>
37
38
  <status>
@@ -40,18 +41,17 @@ end
40
41
  </status>
41
42
  <description>
42
43
  <description xmlns="http://cpee.org/ns/description/1.0">
43
- <manipulate id="a1" svg-label=""/>
44
- <parallel svg-label="">
45
- <parallel_branch svg-label="">
46
- <call id="a2" endpoint="" svg-label="">
47
- <parameters>
48
- <label>""</label>
49
- <method>:post</method>
50
- <parameters/>
51
- </parameters>
52
- </call>
53
- </parallel_branch>
54
- </parallel>
44
+ <loop mode="pre_test" condition="i&lt;2">
45
+ <call id="a1" endpoint="move">
46
+ <parameters>
47
+ <label>Move to next station</label>
48
+ <method>:post</method>
49
+ <arguments/>
50
+ </parameters>
51
+ <finalize output="result">data.i= data.i + 1</finalize>
52
+ <update output="result"/>
53
+ </call>
54
+ </loop>
55
55
  </description>
56
56
  </description>
57
57
  <transformation>
@@ -1,149 +1,31 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <info>Enter info here</info>
3
+ <uuid>8a7ed2d4-5a9a-4d0e-876e-bd924297d286</uuid>
4
+ <info/>
4
5
  <modeltype>CPEE</modeltype>
5
- <uuid>482ca806-03a1-4f99-a395-19a77fb209fd</uuid>
6
+ <theme>default</theme>
6
7
  </attributes>
7
8
  <state>ready</state>
8
9
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
9
10
  <positions/>
10
- <dataelements>
11
- <persons>3</persons>
12
- <card>Visa_12345</card>
13
- <airline>null</airline>
14
- <hotels>[]</hotels>
15
- <from>Vienna</from>
16
- <to>Prague</to>
17
- <costs>0</costs>
18
- </dataelements>
11
+ <dataelements/>
19
12
  <endpoints>
20
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
21
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
22
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
13
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
23
14
  </endpoints>
24
- <dsl>call :a1, :bookAir, parameters: { :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, finalize: &lt;&lt;-END
25
- data.airline = result.value('id')
26
- data.costs += result.value('costs').to_f
27
- status.update 1, 'Hotel'
28
- END
29
- parallel do
30
- loop , :mode =&gt; "pre_test", :condition =&gt; "data.persons &gt; 0" do
31
- parallel_branch data.persons do |p|
32
- call :a2, :bookHotel, parameters: { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, finalize: &lt;&lt;-END
33
- data.hotels &lt;&lt; result.value('id')
34
- data.costs += result.value('costs').to_f
35
- END
36
- end
37
- manipulate :a3, &lt;&lt;-END
38
- data.persons -= 1
39
- END
40
- end
41
- end
42
- choose :inclusive do
43
- alternative "data.costs &gt; 700" do
44
- call :a4, :approve, parameters: { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
45
- end
46
- end
47
- </dsl>
15
+ <dsl/>
48
16
  <dslx>
49
- <description xmlns="http://cpee.org/ns/description/1.0">
50
- <call id="a1" endpoint="bookAir">
51
- <parameters>
52
- <method>:post</method>
53
- <arguments>
54
- <from>data.from</from>
55
- <to>data.to</to>
56
- <persons>data.persons</persons>
57
- </arguments>
58
- </parameters>
59
- <finalize output="result"> data.airline = result.value('id')
60
- data.costs += result.value('costs').to_f
61
- status.update 1, 'Hotel'</finalize>
62
- </call>
63
- <parallel>
64
- <loop mode="pre_test" condition="data.persons &gt; 0">
65
- <parallel_branch pass="data.persons" local="p">
66
- <call id="a2" endpoint="bookHotel">
67
- <parameters>
68
- <method>:post</method>
69
- <parameters>
70
- <to>data.to</to>
71
- </parameters>
72
- </parameters>
73
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
74
- data.costs += result.value('costs').to_f</finalize>
75
- </call>
76
- </parallel_branch>
77
- <manipulate id="a3"> data.persons -= 1</manipulate>
78
- </loop>
79
- </parallel>
80
- <choose>
81
- <alternative condition="data.costs &gt; 700">
82
- <call id="a4" endpoint="approve">
83
- <parameters>
84
- <method>:post</method>
85
- <parameters>
86
- <costs>data.costs</costs>
87
- </parameters>
88
- </parameters>
89
- </call>
90
- </alternative>
91
- </choose>
92
- </description>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
93
18
  </dslx>
94
19
  <status>
95
20
  <id>0</id>
96
21
  <message>undefined</message>
97
22
  </status>
98
23
  <description>
99
- <description xmlns="http://cpee.org/ns/description/1.0">
100
- <call id="a1" endpoint="bookAir">
101
- <parameters>
102
- <method>:post</method>
103
- <arguments>
104
- <from>data.from</from>
105
- <to>data.to</to>
106
- <persons>data.persons</persons>
107
- </arguments>
108
- </parameters>
109
- <finalize output="result"> data.airline = result.value('id')
110
- data.costs += result.value('costs').to_f
111
- status.update 1, 'Hotel'</finalize>
112
- </call>
113
- <parallel>
114
- <loop mode="pre_test" condition="data.persons &gt; 0">
115
- <parallel_branch pass="data.persons" local="p">
116
- <call id="a2" endpoint="bookHotel">
117
- <parameters>
118
- <method>:post</method>
119
- <parameters>
120
- <to>data.to</to>
121
- </parameters>
122
- </parameters>
123
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
124
- data.costs += result.value('costs').to_f</finalize>
125
- </call>
126
- </parallel_branch>
127
- <manipulate id="a3"> data.persons -= 1</manipulate>
128
- </loop>
129
- </parallel>
130
- <choose>
131
- <alternative condition="data.costs &gt; 700">
132
- <call id="a4" endpoint="approve">
133
- <parameters>
134
- <method>:post</method>
135
- <parameters>
136
- <costs>data.costs</costs>
137
- </parameters>
138
- </parameters>
139
- </call>
140
- </alternative>
141
- </choose>
142
- </description>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
143
25
  </description>
144
26
  <transformation>
145
27
  <description type="copy"/>
146
- <dataelements type="rest"/>
147
- <endpoints type="rest"/>
28
+ <dataelements type="none"/>
29
+ <endpoints type="none"/>
148
30
  </transformation>
149
31
  </properties>