bpm_manager 0.8.4 → 0.8.5

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: 3873c646addb33c49c4404ee0f6f97e09d10039e
4
- data.tar.gz: 2fd27009e3fa53a4a36980cbc16658c301091c95
3
+ metadata.gz: 3ade07626ee283273b4082d57f30ff74d4ae7e99
4
+ data.tar.gz: 941c206704876ce44f86d10421a0c50adfb7b45f
5
5
  SHA512:
6
- metadata.gz: ea4aa58d5b2cf718c902b983552988d1d3d07bc33fe031f6615d7e33a64ccc52e0718faa6fff8481154719a4810504fb9ce19bae664ada719fe531872c527edb
7
- data.tar.gz: 5403da2d4ac48e522a38154994c08f90eb8e4fa45b26eea99f49b0556d453ba80c301da5461dadb9f6b5dbbaeb5c5bdaf0912b6dca7a89a7d54b63cd985c03f3
6
+ metadata.gz: 8dffb086d7ef3445032f5206f59d7ffeb485e61536a431f99b535ecbb66d7c95480e2f6c2fadfdaeb8657c4038bb5afd9534a4a20ae73038250e6354e73a496d
7
+ data.tar.gz: 882d982688f065488f5a8ae12ff6969edba0e2ab466672fabb6f8448a0d24314e6d7225e78d19f0740479e10ea2a08347079d59ff5c8049c81a1c606241979ff
@@ -27,9 +27,12 @@ module BpmManager
27
27
  # Gets a Process Instance Variables
28
28
  def self.process_instance_variables(process_instance_id)
29
29
  begin
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']}}
30
+ result = Hash.new
31
+ JSON.parse(RestClient.get(BpmManager.uri('/history/instance/' + process_instance_id.to_s + '/variable'), :accept => :json))['historyLogList'].each{|e| result[e['variable-instance-log']['variable-id']] = e['variable-instance-log']['value']}
32
+
33
+ return result
31
34
  rescue
32
- return nil
35
+ return {}
33
36
  end
34
37
  end
35
38
 
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpm_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa