bpm_manager 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bpm_manager.rb +6 -0
- data/lib/bpm_manager/red_hat.rb +1 -3
- data/lib/bpm_manager/version.rb +1 -1
- 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: 8abe029fcc7da8f3cb6fac060b2bd8a937cfa011
|
4
|
+
data.tar.gz: b115502c0f510f9acfd57f039bae7341e406aa3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 420c77853d566690eb08ef9666b961f879ab671fbe542d7237f2f46cc516492ae2ca4ba41ee3e74e8653d70ab857e6a06731ddb4197bb1c375c28e341bad848e
|
7
|
+
data.tar.gz: 64f5eacfb504309b0bdcb441bbda665d46aec6f060ae520f5921d03a4acca2b0fcc747cd24af81c07e2542097d42a42ee58e63756f848bf4ff148e2a4f277feb
|
data/lib/bpm_manager.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "bpm_manager/version"
|
2
2
|
require "bpm_manager/red_hat"
|
3
3
|
require "bpm_manager/oracle"
|
4
|
+
require "rest-client"
|
4
5
|
|
5
6
|
module BpmManager
|
6
7
|
class << self
|
@@ -30,4 +31,9 @@ module BpmManager
|
|
30
31
|
def self.uri(rest_service = '')
|
31
32
|
URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url + configuration.bpm_url_suffix + (rest_service.nil? ? '' : rest_service))
|
32
33
|
end
|
34
|
+
|
35
|
+
# Returns the Rest Client private resource
|
36
|
+
def self.server
|
37
|
+
RestClient::Resource.new(URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_url + configuration.bpm_url_suffix), :user => configuration.bpm_username, :password => configuration.bpm_password, :headers => {:content_type => :json, :accept => :json})
|
38
|
+
end
|
33
39
|
end
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -11,9 +11,7 @@ module BpmManager
|
|
11
11
|
|
12
12
|
# Creates a new Process
|
13
13
|
def self.create_process(deployment_id, process_definition_id, opts = {})
|
14
|
-
|
15
|
-
puts '---->' + url.inspect
|
16
|
-
RestClient.post(url, :headers => {:content_type => :json, :accept => :json})
|
14
|
+
self.server[URI.encode(BpmManager.uri('/runtime/' + deployment_id.to_s + '/process/' + process_definition_id.to_s + '/start' + (opts.empty? ? '' : '?' + opts.map{|k,v| k.to_s + '=' + v.to_s}.join('&'))))].post
|
17
15
|
end
|
18
16
|
|
19
17
|
# Gets all Process Instances
|
data/lib/bpm_manager/version.rb
CHANGED