bpm_manager 0.3.0 → 0.3.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: 334fc166e1f948ae183ceadda257187e88de092d
4
- data.tar.gz: 96d9a142f1a0f776ce2f76424212a83bb2ec7f31
3
+ metadata.gz: 4f27bdbedbeb45b636e0d50423d6c7f589628342
4
+ data.tar.gz: bc031a2a57e15bdf615a9256f3659d7ff3b18c57
5
5
  SHA512:
6
- metadata.gz: d791066577eb9266bab1bc8fffb8933639ed124b0a78890a40ec0e67f24f958f9e094a70c48492180ac0bb7296452e65bf0e8a7c51d2959516eafa1ffccd7c33
7
- data.tar.gz: d7785b5a91f6647322facc5537c96dfe304507f7c57cd05b4f007d606e77a4b48b7703249f4bddf3337f83a16de4a078b886eee489efa85f7afe40630eac1e16
6
+ metadata.gz: 943ab28d7c3d6972f1152c6533629f323cbc9ff06b10a6a0f570f25af1b1bfe9a120a29ddbb4b01799905f46cff118d76c2bef66603a6f966529c7100a6d70a4
7
+ data.tar.gz: 7bb1dfb4d5c5b86e9726b3b1612c0adc8b1875f6da3f3ee78e6bb33e48e18bd642174dc960cd55133c0d5dd2aff2860d1b39f2a775b7070f26789e6e5a0516ea
data/lib/bpm_manager.rb CHANGED
@@ -57,32 +57,32 @@ module BpmManager
57
57
  end
58
58
 
59
59
  # Gets a Process Instance
60
- def self.process_instance(process_instance_id = 0)
60
+ def self.process_instance(process_instance_id)
61
61
  return JSON.parse(RestClient.get(BpmManager.uri('/history/instance/' + process_instance_id.to_s), :accept => :json))
62
62
  end
63
63
 
64
64
  # Gets a Process Instance --simplified
65
- def self.process_instance_simplified(process_instance_id = 0)
65
+ def self.process_instance_simplified(process_instance_id)
66
66
  return JSON.parse(RestClient.get(BpmManager.uri('/history/instance/' + process_instance_id.to_s), :accept => :json))['list'][0].first[1]
67
67
  end
68
68
 
69
69
  # Gets a Process Instance Variables
70
- def self.process_instance_variables(deployment_id = "", process_instance_id = 0)
70
+ def self.process_instance_variables(deployment_id, process_instance_id)
71
71
  return JSON.parse(RestClient.get(BpmManager.uri('/runtime/' + deployment_id.to_s + '/withvars/process/instance/' + process_instance_id.to_s), :accept => :json))['variables']
72
72
  end
73
73
 
74
74
  # Assigns a Task for an User
75
75
  def self.assign_task(task_id, user_id)
76
- return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id + '/delegate?targetEntityId=' + user_id), :headers => {:content_type => :json, :accept => :json}))
76
+ return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/delegate?targetEntityId=' + user_id.to_s), :headers => {:content_type => :json, :accept => :json}))
77
77
  end
78
78
 
79
79
  # Releases a Task
80
80
  def self.release_task(task_id)
81
- return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id + '/release'), :headers => {:content_type => :json, :accept => :json}))
81
+ return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/release'), :headers => {:content_type => :json, :accept => :json}))
82
82
  end
83
83
 
84
84
  # Completes a Task
85
85
  def self.complete_task(task_id)
86
- return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id + '/complete'), :headers => {:content_type => :json, :accept => :json}))
86
+ return RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/complete'), :headers => {:content_type => :json, :accept => :json}))
87
87
  end
88
88
  end
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa