cpee 1.3.147 → 1.3.148
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87acbb85884577657bf66ef831fe3b66647d555b
|
4
|
+
data.tar.gz: ebb7d0a3b8a0039fc100417fc8282386a51d1e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35dcfe50fb95eb56b55db9648d73a71c80fde2260ef7ae440e245c9e597b72d1c5222769f878b2f6b1b30b48a0d36d19e96dcfc0612681203571cdc0d0256294
|
7
|
+
data.tar.gz: acd4feb783b9fe734446a33f3b7b2d9e3e0d807d2a20f14a259a67867f5c8ed163c6e00da8da1890f9f74ae3c2a2f6d548c9d9a3f3b1a01972f0edbd79b24788
|
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.
|
3
|
+
s.version = "1.3.148"
|
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"
|
data/lib/cpee/controller.rb
CHANGED
@@ -436,13 +436,16 @@ module CPEE
|
|
436
436
|
if item
|
437
437
|
item.each do |ke,ur|
|
438
438
|
Thread.new(ke,ur) do |key,url|
|
439
|
-
|
439
|
+
notf = build_notification(key,what,content,'event')
|
440
440
|
if url.class == String
|
441
441
|
client = Riddl::Client.new(url,'http://riddl.org/ns/common-patterns/notifications-consumer/1.0/consumer.xml',:xmpp => @opts[:xmpp])
|
442
|
-
|
442
|
+
params = notf.map{|ke,va|Riddl::Parameter::Simple.new(ke,va)}
|
443
|
+
params << Riddl::Header.new("CPEE_BASE",self.base)
|
444
|
+
params << Riddl::Header.new("CPEE_INSTANCE",self.instance)
|
445
|
+
client.post params
|
443
446
|
elsif url.class == Riddl::Utils::Notifications::Producer::WS
|
444
447
|
e = XML::Smart::string("<event/>")
|
445
|
-
|
448
|
+
notf.each do |k,v|
|
446
449
|
e.root.add(k,v)
|
447
450
|
end
|
448
451
|
url.send(e.to_s) rescue nil
|
@@ -476,6 +479,8 @@ module CPEE
|
|
476
479
|
if u.class == String
|
477
480
|
client = Riddl::Client.new(u,'http://riddl.org/ns/common-patterns/notifications-consumer/1.0/consumer.xml',:xmpp => @opts[:xmpp])
|
478
481
|
params = notf.map{|ke,va|Riddl::Parameter::Simple.new(ke,va)}
|
482
|
+
params << Riddl::Header.new("CPEE_BASE",self.base)
|
483
|
+
params << Riddl::Header.new("CPEE_INSTANCE",self.instance)
|
479
484
|
@mutex.synchronize do
|
480
485
|
status, result, headers = client.post params
|
481
486
|
if headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true'
|