cpee 1.3.140 → 1.3.141

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
  SHA1:
3
- metadata.gz: 911233c2e45d805df55cdac08a7ab06d4500f167
4
- data.tar.gz: 439c916ef6543f720017c8a94ee16e6bc25c9b54
3
+ metadata.gz: a9f727646483f63c20bd683be909a4f005c25527
4
+ data.tar.gz: 9c1ed21ea4c416c441ab704c3c258e33d1d404ac
5
5
  SHA512:
6
- metadata.gz: 572d3b0edd625302a7e92380ea7f1785058b3075559f4789f8a7d5abdac33798ae13a2f80ba2ba86554de386f8bcc0a21f0f4fb578f7ef20ad28b03ab75a54fd
7
- data.tar.gz: bcc7dee6644a9eadb04f8ac10c2d0b9d4c0e698f7a10f7b3a11a50bff4861b826099cf1a10910fdcd7ab9ea2ebd5eb0b188599ba57548795b882b7e185b714de
6
+ metadata.gz: cf4a477d3d1ed014480e06ec6640f6dc054727e9ae64633a49bb0d33d921be3469dff058d02eae9f00e405a629a925f363db416227fe3f3b7d74387aaa8a1921
7
+ data.tar.gz: f924f355af613ea2b75910e9e091f712df7c446eacfa019313b75bb28fae9b7d18955488a2f646471d1b9e1c4f760c8dfd79adeacd26a81c2385a45671c30de1
@@ -214,6 +214,29 @@ function CPEE(adaptor) {
214
214
  '</svg>');
215
215
  }
216
216
  },//}}}
217
+ 'description' : {//{{{
218
+ 'create': function(target) {
219
+ var node = null;
220
+ node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
221
+ return node;
222
+ },
223
+ 'permissible_children': function(node) {
224
+ if(node.children('manipulate').lenght < 1)
225
+ return [
226
+ {'label': 'Script Block',
227
+ 'function_call': adaptor.description.insert_last_into,
228
+ 'menu_icon': elements.callmanipulate.illustrator.svg,
229
+ 'params': [adaptor.description.elements.manipulate.create, node]}
230
+ ];
231
+ return [];
232
+ }
233
+ },//}}}
234
+ 'adaptor' : {//{{{
235
+ 'mousedown': function (node, e) {
236
+ events.mousedown(node,e,true, true);
237
+ },
238
+ 'click': events.click,
239
+ }//}}}
217
240
  }; /*}}}*/
218
241
  this.elements.callcorrelation = { /*{{{*/
219
242
  'illustrator': {//{{{
@@ -227,6 +250,29 @@ function CPEE(adaptor) {
227
250
  '</svg>');
228
251
  }
229
252
  },//}}}
253
+ 'description' : {//{{{
254
+ 'create': function(target) {
255
+ var node = null;
256
+ node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="correlation" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
257
+ return node;
258
+ },
259
+ 'permissible_children': function(node) {
260
+ if(node.children('manipulate').lenght < 1)
261
+ return [
262
+ {'label': 'Script Block',
263
+ 'function_call': adaptor.description.insert_last_into,
264
+ 'menu_icon': elements.callmanipulate.illustrator.svg,
265
+ 'params': [adaptor.description.elements.manipulate.create, node]}
266
+ ];
267
+ return [];
268
+ }
269
+ },//}}}
270
+ 'adaptor' : {//{{{
271
+ 'mousedown': function (node, e) {
272
+ events.mousedown(node,e,true, true);
273
+ },
274
+ 'click': events.click,
275
+ }//}}}
230
276
  }; /*}}}*/
231
277
  this.elements.callinstantiation = { /*{{{*/
232
278
  'illustrator': {//{{{
@@ -240,6 +286,29 @@ function CPEE(adaptor) {
240
286
  '</svg>');
241
287
  }
242
288
  },//}}}
289
+ 'description' : {//{{{
290
+ 'create': function(target) {
291
+ var node = null;
292
+ node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="instantiate" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
293
+ return node;
294
+ },
295
+ 'permissible_children': function(node) {
296
+ if(node.children('manipulate').lenght < 1)
297
+ return [
298
+ {'label': 'Script Block',
299
+ 'function_call': adaptor.description.insert_last_into,
300
+ 'menu_icon': elements.callmanipulate.illustrator.svg,
301
+ 'params': [adaptor.description.elements.manipulate.create, node]}
302
+ ];
303
+ return [];
304
+ }
305
+ },//}}}
306
+ 'adaptor' : {//{{{
307
+ 'mousedown': function (node, e) {
308
+ events.mousedown(node,e,true, true);
309
+ },
310
+ 'click': events.click,
311
+ }//}}}
243
312
  }; /*}}}*/
244
313
  this.elements.callmanipulate = { /*{{{*/
245
314
  'illustrator': {//{{{
@@ -253,6 +322,29 @@ function CPEE(adaptor) {
253
322
  '</svg>');
254
323
  }
255
324
  },//}}}
325
+ 'description' : {//{{{
326
+ 'create': function(target) {
327
+ var node = null;
328
+ node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
329
+ return node;
330
+ },
331
+ 'permissible_children': function(node) {
332
+ if(node.children('manipulate').lenght < 1)
333
+ return [
334
+ {'label': 'Script Block',
335
+ 'function_call': adaptor.description.insert_last_into,
336
+ 'menu_icon': elements.callmanipulate.illustrator.svg,
337
+ 'params': [adaptor.description.elements.manipulate.create, node]}
338
+ ];
339
+ return [];
340
+ }
341
+ },//}}}
342
+ 'adaptor' : {//{{{
343
+ 'mousedown': function (node, e) {
344
+ events.mousedown(node,e,true, true);
345
+ },
346
+ 'click': events.click,
347
+ }//}}}
256
348
  }; /*}}}*/
257
349
  this.elements.choose_inclusive = { /*{{{*/
258
350
  'illustrator': {//{{{
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.140"
3
+ s.version = "1.3.141"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
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"
@@ -173,7 +173,7 @@ module CPEE
173
173
  end #}}}
174
174
  private :map_node
175
175
 
176
- def build_ttree(branch,traces,enode=nil,debug=false)
176
+ def build_ttree(branch,traces,enode=nil,debug=false,down=0)
177
177
  while not traces.finished?
178
178
  ### if traces exist more than once, make it so they exist only once
179
179
  ### if somebody creates a modell with an inclusive/exclusive that
@@ -212,7 +212,7 @@ module CPEE
212
212
  traces.shift_all
213
213
  end
214
214
  loops.remove_empty
215
- build_ttree branch.last, loops, nil, debug
215
+ build_ttree branch.last, loops.dup, nil, debug, down + 1
216
216
  else
217
217
  ### dont remove it, treat it as a normal conditional
218
218
  ### an infinite loop that can only be left by break is created
@@ -221,7 +221,7 @@ module CPEE
221
221
  ### add the blank conditional to get a break
222
222
  len = loops.length
223
223
  loops.add_breaks
224
- build_ttree branch.last, loops, nil, debug
224
+ build_ttree branch.last, loops.dup, nil, debug, down + 1
225
225
  ### set outgoing to number of loops (without the break) so that it can be ignored (should be 1 all the time)
226
226
  node.outgoing -= len
227
227
  end
@@ -229,7 +229,7 @@ module CPEE
229
229
  node.incoming -= loops.length
230
230
  ### throw away the loop traces, remove loop traces from front of all other traces
231
231
  traces.segment_by_loops loops
232
- build_ttree branch, loops, nil, debug
232
+ build_ttree branch, loops.dup, nil, debug, down + 1
233
233
  end
234
234
  traces.remove(loops)
235
235
  traces.remove_empty
@@ -240,9 +240,9 @@ module CPEE
240
240
  tracesgroup.each do |trcs|
241
241
  nb = branch.last.new_branch
242
242
  if trcs.finished?
243
- build_ttree nb, Traces.new([[Break.new(1)]]), endnode, debug
243
+ build_ttree nb, Traces.new([[Break.new(1)]]), endnode, debug, down + 1
244
244
  else
245
- build_ttree nb, trcs, endnode, debug
245
+ build_ttree nb, trcs, endnode, debug, down + 1
246
246
  end
247
247
  endnode.incoming -= 1 unless endnode.nil?
248
248
  end
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: 1.3.140
4
+ version: 1.3.141
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-05 00:00:00.000000000 Z
13
+ date: 2014-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl