cpee 2.1.62 → 2.1.63

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de80687b26430a0d4051fded9d255695cbe12bd5d3f5595bbaf370076d0bc7ef
4
- data.tar.gz: a97d8605202a279b884a7872f7045270b0600ca7ebd889aadd598222f4671992
3
+ metadata.gz: 4a5ad9138a6f01a5ba60605774e91f89ec66bbfdd2532a5a238fce58c51fc5c9
4
+ data.tar.gz: 9d860c0c30b9842f2d4944273ac3114e8ba5652ccf2451382a843fec1036a132
5
5
  SHA512:
6
- metadata.gz: 9f8223d762b0396e5bfe72bb5f3aa649ddcac18d9d69e3d4e009272f7acaef9119c5de0489110c795f46b3b9fa3e482b6754615da2c067ba8f981a00ebee3a03
7
- data.tar.gz: 731c82b38a6a493535becdf2389c57d0471e182442d86d7b198d79aa8b7470af8ffd0a4042847257eb9fbbee707adb2e88cb946b5f181e116ffe00c57bf547ea
6
+ metadata.gz: 49532083471afbc1a14f19da6ffeadd54e7034fa42ef34de67ba2af4dc7dc2e6d619dc3045600fdfba098c2b4ce7c51c13460a12e771353ad042b568ee1088f8
7
+ data.tar.gz: f3098595f22d252ecc793da1a0b68d8a5facc69baddb2a01e14b0ba678c5b53e7e95be5a9b01e6f9bea00b741866be44407eab8d491855785fb5d2b1c30a5500
@@ -0,0 +1,193 @@
1
+ <?xml version="1.0"?>
2
+ <testset xmlns="http://cpee.org/ns/properties/2.0">
3
+ <executionhandler>rubyext</executionhandler>
4
+ <dataelements>
5
+ <persons>3</persons>
6
+ <card>Visa_12345</card>
7
+ <airline/>
8
+ <hotels>[]</hotels>
9
+ <from>Vienna</from>
10
+ <to>Prague</to>
11
+ <costs>0</costs>
12
+ </dataelements>
13
+ <endpoints>
14
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
15
+ <user>https-post://cpee.org/services/timeout-user.php</user>
16
+ <auto>https-post://cpee.org/services/timeout-auto.php</auto>
17
+ <timeout>https://cpee.org/services/timeout.php</timeout>
18
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
19
+ <subprocess>https://cpee.org/flow/start/url/</subprocess>
20
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
21
+ <send>https-post://cpee.org/ing/correlators/message/send/</send>
22
+ <receive>https-get://cpee.org/ing/correlators/message/receive/</receive>
23
+ </endpoints>
24
+ <attributes>
25
+ <theme>extended</theme>
26
+ <info>Coopis 2010 Ext</info>
27
+ <creator>Christine Ashcreek</creator>
28
+ <author>Christine Ashcreek</author>
29
+ <modeltype>CPEE</modeltype>
30
+ <design_stage>development</design_stage>
31
+ <guarded>none</guarded>
32
+ <design_dir>Templates.dir/</design_dir>
33
+ <guarded_id/>
34
+ <model_uuid>1cdc1bc1-6cf9-4f52-a227-8c87a7b9120a</model_uuid>
35
+ </attributes>
36
+ <description>
37
+ <description xmlns="http://cpee.org/ns/description/1.0">
38
+ <call id="a1" endpoint="bookAir">
39
+ <parameters>
40
+ <label>Book Airline 1</label>
41
+ <method>:post</method>
42
+ <arguments>
43
+ <from>!data.from</from>
44
+ <to>!data.to</to>
45
+ <persons>!data.persons</persons>
46
+ </arguments>
47
+ </parameters>
48
+ <code>
49
+ <prepare/>
50
+ <finalize output="result">data.airline = result.value('id')
51
+ data.costs += result.value('costs').to_f
52
+ status.update 1, 'Hotel'</finalize>
53
+ <update output="result"/>
54
+ <rescue output="result"/>
55
+ </code>
56
+ <annotations>
57
+ <_timing>
58
+ <_timing_weight/>
59
+ <_timing_avg/>
60
+ <explanations/>
61
+ </_timing>
62
+ <_shifting>
63
+ <_shifting_type>Duration</_shifting_type>
64
+ </_shifting>
65
+ <_context_data_analysis>
66
+ <probes/>
67
+ <ips/>
68
+ </_context_data_analysis>
69
+ <report>
70
+ <url/>
71
+ </report>
72
+ <_notes>
73
+ <_notes_general/>
74
+ </_notes>
75
+ </annotations>
76
+ <documentation>
77
+ <input/>
78
+ <output/>
79
+ <implementation>
80
+ <description/>
81
+ </implementation>
82
+ <code>
83
+ <description/>
84
+ </code>
85
+ </documentation>
86
+ </call>
87
+ <parallel wait="-1" cancel="last">
88
+ <loop mode="pre_test" condition="data.persons &gt; 0">
89
+ <parallel_branch>
90
+ <call id="a2" endpoint="bookHotel">
91
+ <parameters>
92
+ <label>Book Hotel</label>
93
+ <method>:post</method>
94
+ <arguments>
95
+ <to>!data.to</to>
96
+ </arguments>
97
+ </parameters>
98
+ <code>
99
+ <prepare/>
100
+ <finalize output="result">data.hotels &lt;&lt; result.value('id')
101
+ data.costs += result.value('costs').to_f</finalize>
102
+ <update output="result"/>
103
+ <rescue output="result"/>
104
+ </code>
105
+ <annotations>
106
+ <_timing>
107
+ <_timing_weight/>
108
+ <_timing_avg/>
109
+ <explanations/>
110
+ </_timing>
111
+ <_shifting>
112
+ <_shifting_type>Duration</_shifting_type>
113
+ </_shifting>
114
+ <_context_data_analysis>
115
+ <probes/>
116
+ <ips/>
117
+ </_context_data_analysis>
118
+ <report>
119
+ <url/>
120
+ </report>
121
+ <_notes>
122
+ <_notes_general/>
123
+ </_notes>
124
+ </annotations>
125
+ <documentation>
126
+ <input/>
127
+ <output/>
128
+ <implementation>
129
+ <description/>
130
+ </implementation>
131
+ <code>
132
+ <description/>
133
+ </code>
134
+ </documentation>
135
+ </call>
136
+ </parallel_branch>
137
+ <manipulate id="a3">data.persons -= 1</manipulate>
138
+ </loop>
139
+ </parallel>
140
+ <choose mode="exclusive">
141
+ <alternative condition="data.costs &gt; 700">
142
+ <_probability>
143
+ <_probability_min/>
144
+ <_probability_max/>
145
+ <_probability_avg/>
146
+ </_probability>
147
+ <call id="a4" endpoint="approve">
148
+ <parameters>
149
+ <label>Approve Hotel</label>
150
+ <method>:post</method>
151
+ <arguments>
152
+ <costs>!data.costs</costs>
153
+ </arguments>
154
+ </parameters>
155
+ <annotations>
156
+ <_timing>
157
+ <_timing_weight/>
158
+ <_timing_avg/>
159
+ <explanations/>
160
+ </_timing>
161
+ <_shifting>
162
+ <_shifting_type>Duration</_shifting_type>
163
+ </_shifting>
164
+ <_context_data_analysis>
165
+ <probes/>
166
+ <ips/>
167
+ </_context_data_analysis>
168
+ <report>
169
+ <url/>
170
+ </report>
171
+ <_notes>
172
+ <_notes_general/>
173
+ </_notes>
174
+ </annotations>
175
+ <documentation>
176
+ <input/>
177
+ <output/>
178
+ <implementation>
179
+ <description/>
180
+ </implementation>
181
+ </documentation>
182
+ </call>
183
+ </alternative>
184
+ <otherwise/>
185
+ </choose>
186
+ </description>
187
+ </description>
188
+ <transformation>
189
+ <description type="copy"/>
190
+ <dataelements type="none"/>
191
+ <endpoints type="none"/>
192
+ </transformation>
193
+ </testset>
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.62"
3
+ s.version = "2.1.63"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -31,5 +31,5 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency 'get_process_mem', '~>0.2'
32
32
  s.add_runtime_dependency 'webrick', '~>1.7'
33
33
  s.add_runtime_dependency 'rbtrace', '~>0.4'
34
- s.add_runtime_dependency 'cpee-eval-ruby', '~> 1.0'
34
+ s.add_runtime_dependency 'cpee-eval-ruby', '~> 1.0', '>= 1.0.1'
35
35
  end
@@ -311,7 +311,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
311
311
  @controller.notify("activity/status", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :status => options['CPEE_STATUS'])
312
312
  end
313
313
  if options['CPEE_UPDATE']
314
- @handler_continue.continue WEEL::Signal::Again
314
+ @handler_continue.continue WEEL::Signal::UpdateAgain
315
315
  else
316
316
  @controller.cancel_callback(@handler_passthrough)
317
317
  @handler_passthrough = nil
@@ -356,20 +356,10 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
356
356
  struct
357
357
  end
358
358
 
359
+ def split_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]
360
+ @controller.notify("gateway/split", :instance_uuid => @controller.uuid, :branches => branches)
361
+ end
359
362
  def join_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]
360
363
  @controller.notify("gateway/join", :instance_uuid => @controller.uuid, :branches => branches)
361
364
  end
362
-
363
- def simulate(type,nesting,tid,parent,parameters={}) #{{{
364
- @controller.vote("simulating/step",
365
- :'activity-uuid' => @handler_activity_uuid,
366
- :label => @label,
367
- :activity => tid,
368
- :endpoint => @handler_endpoint,
369
- :type => type,
370
- :nesting => nesting,
371
- :parent => parent,
372
- :parameters => parameters
373
- )
374
- end #}}}
375
365
  end
@@ -318,7 +318,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
318
318
  @controller.notify("activity/status", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :status => options['CPEE_STATUS'])
319
319
  end
320
320
  if options['CPEE_UPDATE']
321
- @handler_continue.continue WEEL::Signal::Again
321
+ @handler_continue.continue WEEL::Signal::UpdateAgain
322
322
  else
323
323
  @controller.cancel_callback(@handler_passthrough)
324
324
  @handler_passthrough = nil
@@ -358,7 +358,10 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
358
358
  else
359
359
  nil
360
360
  end
361
- recv && recv == "true" ? true : false
361
+ recv = 'false' unless receive
362
+ recv = (recv == 'false' || recv == 'null' || recv == 'nil' ? false : true)
363
+ @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => code, :condition => recv)
364
+ recv
362
365
  end
363
366
  def eval_expression(dataelements,endpoints,local,additional,code)
364
367
  send = []
@@ -412,20 +415,10 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
412
415
  end
413
416
  end
414
417
 
418
+ def split_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]
419
+ @controller.notify("gateway/split", :instance_uuid => @controller.uuid, :branches => branches)
420
+ end
415
421
  def join_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]
416
422
  @controller.notify("gateway/join", :instance_uuid => @controller.uuid, :branches => branches)
417
423
  end
418
-
419
- def simulate(type,nesting,tid,parent,parameters={}) #{{{
420
- @controller.vote("simulating/step",
421
- :'activity-uuid' => @handler_activity_uuid,
422
- :label => @label,
423
- :activity => tid,
424
- :endpoint => @handler_endpoint,
425
- :type => type,
426
- :nesting => nesting,
427
- :parent => parent,
428
- :parameters => parameters
429
- )
430
- end #}}}
431
424
  end
@@ -27,6 +27,7 @@
27
27
  </topic>
28
28
  <topic id='gateway'>
29
29
  <event>decide</event>
30
+ <event>split</event>
30
31
  <event>join</event>
31
32
  </topic>
32
33
  <topic id='position'>
@@ -1 +1 @@
1
- 1814250
1
+ 2750515
@@ -1 +1 @@
1
- 1814272
1
+ 2750534
@@ -1 +1 @@
1
- 1814263
1
+ 2750527
@@ -1 +1 @@
1
- 1814257
1
+ 2750521
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.62
4
+ version: 2.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2024-09-13 00:00:00.000000000 Z
13
+ date: 2024-09-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -165,6 +165,9 @@ dependencies:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
167
  version: '1.0'
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: 1.0.1
168
171
  type: :runtime
169
172
  prerelease: false
170
173
  version_requirements: !ruby/object:Gem::Requirement
@@ -172,6 +175,9 @@ dependencies:
172
175
  - - "~>"
173
176
  - !ruby/object:Gem::Version
174
177
  version: '1.0'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 1.0.1
175
181
  description: see http://cpee.org
176
182
  email: juergen.mangler@gmail.com
177
183
  executables:
@@ -264,6 +270,7 @@ files:
264
270
  - cockpit/templates.legacy/convert_preset.rb
265
271
  - cockpit/templates.legacy/testsets.xml
266
272
  - cockpit/templates.legacy/transformations.xml
273
+ - cockpit/templates/Coopis 2010 Ext.xml
267
274
  - cockpit/templates/Coopis 2010.xml
268
275
  - cockpit/templates/Frames.xml
269
276
  - cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml