cpee 2.1.25 → 2.1.26

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: dd74be5656971609e82c88413e57b2e27f791202f4467f13a403872c96a293ed
4
- data.tar.gz: dbea7ed1391528186d367b96b70f1f8c00887d8ec6934ef074041b7a54f03599
3
+ metadata.gz: 4f13d0d499477cb49d9cb850f9dddf8aaef848c326dca500044f19f2ca5c9889
4
+ data.tar.gz: a96532269da4927bd5b3f5cb2ab195440ea67115f7906b4f2f30ae63d8fccd01
5
5
  SHA512:
6
- metadata.gz: f1956162c5fed6a82a83806bf5b1aeefac1849f4509b85060fb673735a7cb3d8275a0c1a479b8863d1820ef8b2c73f0bc5bbc359d94975897cf8a9eb7decde34
7
- data.tar.gz: c6e145b03c672b5c5639e0edb2a5b462d1a3a52668ec6ae0b3f5f7e585ca056c31cece27a45327e484bf347cbcbf6aa6cfa5fc09023d1c4e79a0b122242dfd30
6
+ metadata.gz: 0efcc7924b603332c15ad3040478e80f34ad747cbe67c0cbd3eb23e41da3cd4914adc5688c3c40cf74dff2bbf92c7e60d02e7cbeaf8017867255554771ea9bbf
7
+ data.tar.gz: 61035d40cb0c1c44a85dd9736a0020a74c56a13d4c30e1f5164f060695058a302644a59b63e443529d4e85a4aaba014492e2909bb8e61aea81480ec3eed57d7e
data/cockpit/css/ui.css CHANGED
@@ -242,4 +242,4 @@ span.vote {
242
242
  overflow: auto;
243
243
  }
244
244
  #disclaimer p { max-width: 82ex; text-align: justify; }
245
- #disclaimer input { margin:0; padding:0; vertical-align:bottom; margin-right: 0.5em; }
245
+ #disclaimer input { margin:0; padding:0; vertical-align:baseline; margin-right: 0.5em; }
@@ -499,7 +499,9 @@ function WFAdaptorManifestation(adaptor) {
499
499
  'endnodes': 'this',
500
500
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
501
501
  'resolve_symbol': function(node) {
502
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
502
+ if($(node).children(':not(parallel_branch)').length > 0) {
503
+ return 'parallel_complex';
504
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
503
505
  return 'parallel_simple';
504
506
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
505
507
  return 'parallel_event_all';
@@ -524,7 +524,9 @@ function WFAdaptorManifestation(adaptor) {
524
524
  'endnodes': 'this',
525
525
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
526
526
  'resolve_symbol': function(node) {
527
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
527
+ if($(node).children(':not(parallel_branch)').length > 0) {
528
+ return 'parallel_complex';
529
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
528
530
  return 'parallel_simple';
529
531
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
530
532
  return 'parallel_event_all';
@@ -499,7 +499,9 @@ function WFAdaptorManifestation(adaptor) {
499
499
  'endnodes': 'this',
500
500
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
501
501
  'resolve_symbol': function(node) {
502
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
502
+ if($(node).children(':not(parallel_branch)').length > 0) {
503
+ return 'parallel_complex';
504
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
503
505
  return 'parallel_simple';
504
506
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
505
507
  return 'parallel_event_all';
@@ -524,7 +524,9 @@ function WFAdaptorManifestation(adaptor) {
524
524
  'endnodes': 'this',
525
525
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
526
526
  'resolve_symbol': function(node) {
527
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
527
+ if($(node).children(':not(parallel_branch)').length > 0) {
528
+ return 'parallel_complex';
529
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
528
530
  return 'parallel_simple';
529
531
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
530
532
  return 'parallel_event_all';
@@ -480,7 +480,9 @@ function WFAdaptorManifestation(adaptor) {
480
480
  'endnodes': 'this',
481
481
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
482
482
  'resolve_symbol': function(node) {
483
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
483
+ if($(node).children(':not(parallel_branch)').length > 0) {
484
+ return 'parallel_complex';
485
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
484
486
  return 'parallel_simple';
485
487
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
486
488
  return 'parallel_event_all';
@@ -499,7 +499,9 @@ function WFAdaptorManifestation(adaptor) {
499
499
  'endnodes': 'this',
500
500
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
501
501
  'resolve_symbol': function(node) {
502
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
502
+ if($(node).children(':not(parallel_branch)').length > 0) {
503
+ return 'parallel_complex';
504
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
503
505
  return 'parallel_simple';
504
506
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
505
507
  return 'parallel_event_all';
@@ -499,7 +499,9 @@ function WFAdaptorManifestation(adaptor) {
499
499
  'endnodes': 'this',
500
500
  'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
501
501
  'resolve_symbol': function(node) {
502
- if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
502
+ if($(node).children(':not(parallel_branch)').length > 0) {
503
+ return 'parallel_complex';
504
+ } else if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') {
503
505
  return 'parallel_simple';
504
506
  } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') {
505
507
  return 'parallel_event_all';
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.25"
3
+ s.version = "2.1.26"
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.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -149,10 +149,8 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
149
149
  def activity_handle(passthrough, parameters) # {{{
150
150
  raise "Wrong endpoint" if @handler_endpoint.nil? || @handler_endpoint.empty?
151
151
  @label = parameters[:label]
152
- @sensors = parameters.dig(:stream,:sensors)
153
- @aggregators = parameters.dig(:stream,:aggregators)
154
- @costs = parameters.dig(:stream,:costs)
155
- @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters)
152
+ @anno = parameters[:annotations]
153
+ @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters, :annotations => anno)
156
154
  if passthrough.to_s.empty?
157
155
  proto_curl parameters
158
156
  else
@@ -303,7 +301,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
303
301
  end
304
302
 
305
303
  def callback(result=nil,options={})
306
- @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => structurize_result(result), :sensors => @sensors, :aggregators => @aggregators, :costs => @costs)
304
+ @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => structurize_result(result), :annotations => @anno)
307
305
  @guard_files += result
308
306
  @handler_returnValue = simplify_result(result)
309
307
  @handler_returnOptions = options
@@ -403,6 +403,8 @@
403
403
  <xsl:template match="d:parameters">
404
404
  <xsl:apply-templates select="d:label" mode="parameter"/>
405
405
  <xsl:apply-templates select="d:*[not(name()='label')]" mode="parameter"/>
406
+ <xsl:if test="count(*) &gt; 0">, </xsl:if>
407
+ <xsl:apply-templates select="../d:annotations" mode="annotations"/>
406
408
  </xsl:template>
407
409
  <xsl:template match="d:label" mode="parameter">
408
410
  <xsl:text>:</xsl:text>
@@ -411,6 +413,12 @@
411
413
  <xsl:value-of select="str:replace(str:replace(text(),'\','\\'),'&quot;','\&quot;')"/>
412
414
  <xsl:text>"</xsl:text>
413
415
  </xsl:template>
416
+ <xsl:template match="d:annotations" mode="annotations">
417
+ <xsl:text>:</xsl:text>
418
+ <xsl:value-of select="name()"/>
419
+ <xsl:text> =&gt; </xsl:text>
420
+ <xsl:apply-templates select="d:*" mode="plainmulti"/>
421
+ </xsl:template>
414
422
  <xsl:template match="d:*[not(name()='label')]" mode="parameter">
415
423
  <xsl:if test="count(preceding-sibling::*) &gt; 0">, </xsl:if>
416
424
  <xsl:text>:</xsl:text>
@@ -423,24 +431,6 @@
423
431
  <xsl:apply-templates select="d:*" mode="sub"/>
424
432
  <xsl:text>]</xsl:text>
425
433
  </xsl:when>
426
- <xsl:when test="count(*) &gt; 0 and name()='sensors'">
427
- <xsl:text>[</xsl:text>
428
- <xsl:apply-templates select="d:*" mode="plainmulti"/>
429
- <xsl:text>]</xsl:text>
430
- </xsl:when>
431
- <xsl:when test="count(*) &gt; 0 and name()='aggregators'">
432
- <xsl:text>[</xsl:text>
433
- <xsl:apply-templates select="d:*" mode="plainmulti"/>
434
- <xsl:text>]</xsl:text>
435
- </xsl:when>
436
- <xsl:when test="count(*) &gt; 0 and name()='costs'">
437
- <xsl:text>[</xsl:text>
438
- <xsl:apply-templates select="d:*" mode="plainmulti"/>
439
- <xsl:text>]</xsl:text>
440
- </xsl:when>
441
- <xsl:when test="count(*) &gt; 0 and name()='report'">
442
- <xsl:apply-templates select="d:*" mode="plainmulti"/>
443
- </xsl:when>
444
434
  <xsl:when test="count(*) &gt; 0 and not(name()='arguments')">
445
435
  <xsl:text>{</xsl:text>
446
436
  <xsl:apply-templates select="d:*" mode="parameter"/>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0"?>
2
+ <description xmlns="http://cpee.org/ns/description/1.0">
3
+ <call id="a1" endpoint="">
4
+ <parameters>
5
+ <label>asdad</label>
6
+ <method>:post</method>
7
+ <arguments/>
8
+ </parameters>
9
+ <code>
10
+ <prepare/>
11
+ <finalize output="result"/>
12
+ <update output="result"/>
13
+ <rescue output="result"/>
14
+ </code>
15
+ <annotations>
16
+ <_timing>
17
+ <_timing_weight/>
18
+ <_timing_avg/>
19
+ <explanations/>
20
+ </_timing>
21
+ <_context_data_analysis>
22
+ <probes/>
23
+ <ips/>
24
+ </_context_data_analysis>
25
+ <report>
26
+ <url>http://hoellerersdsdf</url>
27
+ </report>
28
+ <_notes>
29
+ <_notes_general/>
30
+ </_notes>
31
+ </annotations>
32
+ <documentation>
33
+ <input/>
34
+ <output/>
35
+ <implementation>
36
+ <description/>
37
+ </implementation>
38
+ <code>
39
+ <description/>
40
+ </code>
41
+ </documentation>
42
+ </call>
43
+ </description>
data/tools/cpee CHANGED
@@ -119,14 +119,22 @@ elsif command == 'convert'
119
119
  doc.find('//d:parallel_branch/@pass').delete_all!
120
120
  doc.find('//d:parallel_branch/@local').delete_all!
121
121
  doc.find('//d:call').each do |c|
122
- c.find('d:annotations').first.add c.find('d:parameters/d:_context_data_analysis')
123
- c.find('d:annotations').first.add c.find('d:parameters/d:_report')
122
+ if c.find('d:annotations').empty?
123
+ c.add('d:annotations')
124
+ end
125
+ c.find('d:annotations').first.add c.find('d:parameters/d:_context_data_analysis') rescue nil
126
+ c.find('d:annotations').first.add c.find('d:parameters/d:report') rescue nil
127
+ c.find('d:annotations').first.add c.find('d:_timing') rescue nil
128
+ c.find('d:annotations').first.add c.find('d:_notes') rescue nil
129
+ c.find('d:parameters/d:sensors').delete_all! rescue nil
130
+ c.find('d:parameters/d:stream').delete_all! rescue nil
131
+ c.find('d:annotations').first.add c.find('d:parameters/d:report') rescue nil
124
132
  if c.find('d:documentation').empty?
125
133
  node = c.add('d:documentation')
126
- node.add c.find('d:input')
127
- node.add c.find('d:output')
128
- node.add c.find('d:implementation')
129
- node.add c.find('d:code[d:description]')
134
+ node.add c.find('d:input') rescue nil
135
+ node.add c.find('d:output') rescue nil
136
+ node.add c.find('d:implementation') rescue nil
137
+ node.add c.find('d:code[d:description]') rescue nil
130
138
  end
131
139
  end
132
140
  doc.find('//x:handlerwrapper').delete_all!
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.25
4
+ version: 2.1.26
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: 2021-11-08 00:00:00.000000000 Z
13
+ date: 2021-11-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -652,6 +652,7 @@ files:
652
652
  - server/executionhandlers/ruby/controller.rb
653
653
  - server/executionhandlers/ruby/dsl_to_dslx.xsl
654
654
  - server/executionhandlers/ruby/execution.rb
655
+ - server/executionhandlers/ruby/test.xml
655
656
  - server/resources/empty_dslx.xml
656
657
  - server/resources/notifications/logging/subscription.xml
657
658
  - server/resources/properties.empty