cpee 1.3.149 → 1.3.150

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: b09e6b420f5ba75b5250cb7ee85760ef127d0271
4
- data.tar.gz: 16f53a36334e46830224445c5fe4f1b7c3aebaf9
3
+ metadata.gz: a79f61a7ef8feebf246c204caeb39f34f6849964
4
+ data.tar.gz: 30bde6f9d828d38e51b9995bb1f2df761b401acd
5
5
  SHA512:
6
- metadata.gz: bb8dbe1ba4db3dbbec74f5ca328b4dca71edb9971bad971e7caedea60159bcb5cc0bc55112da8f21d4ebcfa5d8a1d007690f7dd77299b8ca4fa5a7b2c5013a1a
7
- data.tar.gz: cd6d8ae87b13ac959b42c7418c4b5e4330c7cff4a72ef37069a34961884dc3002f7bef2663f549854dddb88f82e6a76b60430397a83f1c4b61d7cbeaa1376c60
6
+ metadata.gz: 18909242db2141bc69e7eb27dc5196c28afc2919b205b7ea8fb28281e3a6274c9e093e4d5c0bdae65c8ce1827b2ef51a442ab5f21e6a6f6f7472efa014d03ee3
7
+ data.tar.gz: 4e81ea68d3abbd53282504b9c6ba02691d3c5d1aa929cd7a950777fa15d16954343caa6057d17faa2db37245e09261c3479d64306d072e507494744abcfcebb4
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.149"
3
+ s.version = "1.3.150"
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"
@@ -187,7 +187,7 @@ module CPEE
187
187
  puts '--> now on ' + down.to_s if debug
188
188
  debug_print debug, traces
189
189
  if node = traces.same_first
190
- if branch.condition? && branch.empty?
190
+ if branch.empty? && branch.respond_to?(:id)
191
191
  li = if (branch.id == traces.first_node.id)
192
192
  ### for tail controlled loops
193
193
  @graph.link(branch.id,traces.second_nodes.first.id)
@@ -195,9 +195,14 @@ module CPEE
195
195
  @graph.link(branch.id,traces.first_node.id)
196
196
  end
197
197
  unless li.nil?
198
- branch.condition << li.condition unless li.condition.nil?
199
- branch.condition_type = "text/javascript"
200
- branch.attributes.merge!(li.attributes)
198
+ if branch.condition?
199
+ branch.condition << li.condition unless li.condition.nil?
200
+ branch.condition_type = "text/javascript"
201
+ end
202
+ if branch.respond_to?(:attributes)
203
+ branch.attributes.merge!(li.attributes)
204
+ li.attributes.delete_if{true}
205
+ end
201
206
  end
202
207
  end
203
208
  if node == enode
@@ -103,11 +103,13 @@ module CPEE
103
103
  class InfiniteLoop < Array #{{{
104
104
  include Container
105
105
  def condition?; false; end
106
+ attr_reader :attributes
106
107
  attr_accessor :id, :type
107
108
  def initialize(id)
108
109
  @container = true
109
110
  @id = id
110
111
  @type = :loop
112
+ @attributes = {}
111
113
  end
112
114
  end #}}}
113
115
  class Loop < Array #{{{
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.149
4
+ version: 1.3.150
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler