bpm_manager 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bpm_manager/red_hat.rb +3 -2
- data/lib/bpm_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 732b9f5f5378d98ccf0dfe6c76f3184237b56ff7
|
4
|
+
data.tar.gz: e919def7896f942ef35cd5c462a0511f19b6321e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61b46363ee8377b3b1feb8cc4eb0837eaad5f52775de31f05d181b363dc5914a22a1341326a15f39cceb09b6630505f1dc1157ff380f725a498e1f849a9503b3
|
7
|
+
data.tar.gz: 526fdb6f9bce5029ea3fd3c82d49c01fbaad5dc89ac22ac5a232415666a567b70de8ebe73852d1f7d43ff805c73b41159c19a524bb11030e789ebb5173a35871
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -25,9 +25,9 @@ module BpmManager
|
|
25
25
|
end
|
26
26
|
|
27
27
|
# Gets a Process Instance Variables
|
28
|
-
def self.process_instance_variables(
|
28
|
+
def self.process_instance_variables(process_instance_id)
|
29
29
|
begin
|
30
|
-
JSON.parse(RestClient.get(BpmManager.uri('/
|
30
|
+
JSON.parse(RestClient.get(BpmManager.uri('/history/instance/' + process_instance_id.to_s + '/variable'), :accept => :json))['historyLogList'].map{|e| {e['variable-instance-log']['variable-id'] => e['variable-instance-log']['value']}}
|
31
31
|
rescue
|
32
32
|
return nil
|
33
33
|
end
|
@@ -105,6 +105,7 @@ module BpmManager
|
|
105
105
|
RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/exit')), :headers => {:content_type => :json, :accept => :json})
|
106
106
|
end
|
107
107
|
|
108
|
+
# Gets the Process History
|
108
109
|
def self.get_history(process_definition_id = "")
|
109
110
|
if process_definition_id.empty?
|
110
111
|
JSON.parse(RestClient.get(BpmManager.uri('/history/instances'), :accept => :json))
|
data/lib/bpm_manager/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bpm_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Presa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|