bpm_manager 1.0.1 → 1.0.2
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/red_hat.rb +6 -2
- 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: 653011d65e0076b3a8b440a065ab694859d522e8
|
4
|
+
data.tar.gz: 2be644651aea6c2ea138b6e30368e88ad2bd91b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bd55cf583cf10c734a35eacffe56d35d472130f122106512ef83b9d28fe302e8c5fc07a951912fb1dd253e7783dd2ef47ed70ae2b0d08f008cb03ae7f1262a
|
7
|
+
data.tar.gz: b8055b773b1e9de976a0058386f5626f2ac2c912f4b2d304fcdd7bbee4a91339108e0e7e46dee7778738e1a2b1fb3adee44356e29cc9ce58a1195bedcb9f2bce
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -6,7 +6,7 @@ module BpmManager
|
|
6
6
|
module RedHat
|
7
7
|
# Gets all server deployments
|
8
8
|
def self.deployments()
|
9
|
-
|
9
|
+
JSON.parse(BpmManager.server['/deployment'].get)
|
10
10
|
end
|
11
11
|
|
12
12
|
# Creates a new Process
|
@@ -38,7 +38,11 @@ module BpmManager
|
|
38
38
|
|
39
39
|
# Gets the Process image as SVG
|
40
40
|
def self.process_image(deployment_id, process_definition_id, process_id = '')
|
41
|
-
|
41
|
+
begin
|
42
|
+
BpmManager.server['/runtime/' + deployment_id.to_s + '/process/' + process_definition_id.to_s + '/image' + ((process_id.to_s.nil? || process_id.to_s.empty?) ? '' : '/' + process_id.to_s)].get
|
43
|
+
rescue
|
44
|
+
return '' # returns an empty string in case of error
|
45
|
+
end
|
42
46
|
end
|
43
47
|
|
44
48
|
# Gets all tasks, optionally you could specify an user id
|
data/lib/bpm_manager/version.rb
CHANGED