cpee 1.3.207 → 1.3.208

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: f25f955ce4d025a56dd90b97e7aff04983aa79c7
4
- data.tar.gz: 5166ac6d0dce705032203a3752c484b449918313
3
+ metadata.gz: 5453f81e3a3bda812e94981852ad22da749cb603
4
+ data.tar.gz: d5708c8da1f13063648a41d12d5cd67419b1c5d4
5
5
  SHA512:
6
- metadata.gz: e8a5abd2641fce0f5e6dccc5bcd4d82948918f0b3d95277d24af3a43b5a0fc3e252b49c1c23a9486233e71b138e5df0472752b8433f63437e50e05f5b6fee625
7
- data.tar.gz: fb26385147cdac4639ca8207c740852b3685faf68fc221d4c0f0ed729dc23db71ff76cb39f3576d73e84304d79be57ac8c3f0df9e90b44af172ae64d57e7532e
6
+ metadata.gz: d0dd5a928797f51e4672f2e5b7baf6c368abc146b24811946927677a59336be623dd03947b0b46f7e3b5eb5a5b95d105ce9e9170d07a9e533e1fb5635a7eb488
7
+ data.tar.gz: c8e2db4b9faefbf84ba5dda344b1a3a4141cc2f792b65ef47fb7f0f52d18715e7e9668aa22bb7af038143b8f8091033e9d4722dba046cdee94d8c1f90db50cb0
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.207"
3
+ s.version = "1.3.208"
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"
@@ -492,6 +492,8 @@ module CPEE
492
492
  params = notf.map{|ke,va|Riddl::Parameter::Simple.new(ke,va)}
493
493
  params << Riddl::Header.new("CPEE_BASE",self.base)
494
494
  params << Riddl::Header.new("CPEE_INSTANCE",self.instance)
495
+ params << Riddl::Header.new("CPEE-BASE",self.base)
496
+ params << Riddl::Header.new("CPEE-INSTANCE",self.instance)
495
497
  client.post params
496
498
  elsif url.class == Riddl::Utils::Notifications::Producer::WS
497
499
  e = XML::Smart::string("<event/>")
@@ -532,6 +534,9 @@ module CPEE
532
534
  params << Riddl::Header.new("CPEE_BASE",self.base_url)
533
535
  params << Riddl::Header.new("CPEE_INSTANCE",self.instance_url)
534
536
  params << Riddl::Header.new("CPEE_CALLBACK",self.instance_url + '/callbacks/' + callback)
537
+ params << Riddl::Header.new("CPEE-BASE",self.base_url)
538
+ params << Riddl::Header.new("CPEE-INSTANCE",self.instance_url)
539
+ params << Riddl::Header.new("CPEE-CALLBACK",self.instance_url + '/callbacks/' + callback)
535
540
  @mutex.synchronize do
536
541
  status, result, headers = client.post params
537
542
  if headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true'
@@ -13,15 +13,15 @@
13
13
  # <http://www.gnu.org/licenses/>.
14
14
 
15
15
  class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
16
- def self::inform_syntax_error(arguments,err,code)# {{{
17
- controller = arguments[0]
18
- controller.notify("description/error", :instance => controller.instance, :message => err.message)
19
- end# }}}
20
16
  def self::inform_state_change(arguments,newstate) # {{{
21
17
  controller = arguments[0]
22
18
  controller.serialize_state!
23
19
  controller.notify("state/change", :instance => controller.instance, :state => newstate)
24
20
  end # }}}
21
+ def self::inform_syntax_error(arguments,err,code)# {{{
22
+ controller = arguments[0]
23
+ controller.notify("description/error", :instance => controller.instance, :message => err.message)
24
+ end# }}}
25
25
  def self::inform_handlerwrapper_error(arguments,err) # {{{
26
26
  controller = arguments[0]
27
27
  controller.notify("handlerwrapper/error", :instance => controller.instance, :message => err.message)
@@ -60,8 +60,15 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
60
60
  params << Riddl::Header.new("CPEE_CALLBACK_ID",callback)
61
61
  params << Riddl::Header.new("CPEE_ACTIVITY",@handler_position)
62
62
  params << Riddl::Header.new("CPEE_LABEL",parameters[:label])
63
+ params << Riddl::Header.new("CPEE-BASE",@controller.base_url)
64
+ params << Riddl::Header.new("CPEE-INSTANCE",@controller.instance_url)
65
+ params << Riddl::Header.new("CPEE-CALLBACK",@controller.instance_url + '/callbacks/' + callback)
66
+ params << Riddl::Header.new("CPEE-CALLBACK_ID",callback)
67
+ params << Riddl::Header.new("CPEE-ACTIVITY",@handler_position)
68
+ params << Riddl::Header.new("CPEE-LABEL",parameters[:label])
63
69
  @controller.attributes.each do |key,value|
64
70
  params << Riddl::Header.new("CPEE_ATTR_#{key}",value)
71
+ params << Riddl::Header.new("CPEE-ATTR-#{key.gsub(/_/,'-')}",value)
65
72
  end
66
73
 
67
74
  type = parameters[:method] || 'post'
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.207
4
+ version: 1.3.208
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-16 00:00:00.000000000 Z
14
+ date: 2017-06-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl