bpm_manager 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26f04e655a50e6b2389d5356f959fd30b33fed73
4
- data.tar.gz: bd1ce89cee2d594add2a4d756d9b2364837ca6c3
3
+ metadata.gz: 732b9f5f5378d98ccf0dfe6c76f3184237b56ff7
4
+ data.tar.gz: e919def7896f942ef35cd5c462a0511f19b6321e
5
5
  SHA512:
6
- metadata.gz: 45fef4c40545f2f7c279e9bc3345fd7370e69814a06b86162432bdc2c7b3b05fa6f8406bcbcbaadbff4224ee9de4f44f35aea89f0fca1eec2cd50f8f58702e51
7
- data.tar.gz: b1965487862ca6dacaf5bcb487fdbeaf40cc1feaa6ae45d154861451d8fbbeb1dbb0ee8a55193000b767bfcf2ea76cebcc6eb40714a7c6c527fd3af23973c68c
6
+ metadata.gz: 61b46363ee8377b3b1feb8cc4eb0837eaad5f52775de31f05d181b363dc5914a22a1341326a15f39cceb09b6630505f1dc1157ff380f725a498e1f849a9503b3
7
+ data.tar.gz: 526fdb6f9bce5029ea3fd3c82d49c01fbaad5dc89ac22ac5a232415666a567b70de8ebe73852d1f7d43ff805c73b41159c19a524bb11030e789ebb5173a35871
@@ -25,9 +25,9 @@ module BpmManager
25
25
  end
26
26
 
27
27
  # Gets a Process Instance Variables
28
- def self.process_instance_variables(deployment_id, process_instance_id)
28
+ def self.process_instance_variables(process_instance_id)
29
29
  begin
30
- JSON.parse(RestClient.get(BpmManager.uri('/runtime/' + deployment_id.to_s + '/withvars/process/instance/' + process_instance_id.to_s), :accept => :json))['variables']
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))
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client