bpm_manager 0.6.15 → 0.6.16

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: 0c9c6cd20c10607c93c3ef8d5aef865df970170b
4
- data.tar.gz: 40058019058b5beee51e7b0a8dc5ed9dc3d05ac8
3
+ metadata.gz: 02805f11824ed8dc63ad8232b14d30d54e99eb38
4
+ data.tar.gz: a67cae746a2eeb08af364b47249d110b875cd61c
5
5
  SHA512:
6
- metadata.gz: bc578afcb8e8a893c4986ee0011c898568cd9c096f7f68a39c46265928809b11896719d2c036cf561f3a9584e55350b27d386fe9dc8514dad64d625d875c2002
7
- data.tar.gz: 992c9edd08dd38f2f0293dd2d43ea423a18e7cb53c8c2dc1a9b99bc14b1ae3ef901a810f7249d1576e7f930c161749bd3b9938e7baf918d41df5512dc12b7cfb
6
+ metadata.gz: 3902695ab6698a455c07d08694c2156d15dfb1dd0f06416d2cb32c4e7ef478d1aa45ce9289362af6527ae5f1525aa97700ebab01d39ea6d46e3d520b11b0f090
7
+ data.tar.gz: 8e84c042efc012a38d76a5bb29d15f1fe7c20e86c0b9b4abf96c534157963a8298733dd0cd2de93cda59803e3c64bc97fcb048bdbf80e509db3b0cb833090ffd
@@ -40,18 +40,18 @@ module BpmManager
40
40
  # end
41
41
 
42
42
  # Suspends a Task
43
- # def self.suspend_task(task_id)
44
- # RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/suspend')), :headers => {:content_type => :json, :accept => :json})
45
- # end
43
+ def self.suspend_task(task_id)
44
+ RestClient.post(URI.encode(BpmManager.uri('/task/action/' + task_id.to_s + '/SYS_SUSPEND')), :headers => {:content_type => :json, :accept => :json})
45
+ end
46
46
 
47
47
  # Resumes a Task
48
- # def self.resume_task(task_id)
49
- # RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/resumes')), :headers => {:content_type => :json, :accept => :json})
50
- # end
48
+ def self.resume_task(task_id)
49
+ RestClient.post(URI.encode(BpmManager.uri('/task/action' + task_id.to_s + '/SYS_RESUME')), :headers => {:content_type => :json, :accept => :json})
50
+ end
51
51
 
52
52
  # Releases a Task
53
53
  def self.release_task(task_id)
54
- RestClient.post(URI.encode(BpmManager.uri('/task/release/' + task_id.to_s)), :headers => {:content_type => :json, :accept => :json})
54
+ RestClient.post(URI.encode(BpmManager.uri('/task/action/' + task_id.to_s + '/SYS_RELEASE')), :headers => {:content_type => :json, :accept => :json})
55
55
  end
56
56
 
57
57
  # Skips a Task
@@ -65,9 +65,9 @@ module BpmManager
65
65
  # end
66
66
 
67
67
  # Fails a Task
68
- # def self.fail_task(task_id)
69
- # RestClient.post(URI.encode(BpmManager.uri('/task/' + task_id.to_s + '/fail')), :headers => {:content_type => :json, :accept => :json})
70
- # end
68
+ def self.fail_task(task_id)
69
+ RestClient.post(URI.encode(BpmManager.uri('/task/action/' + task_id.to_s + '/SYS_ERROR')), :headers => {:content_type => :json, :accept => :json})
70
+ end
71
71
 
72
72
  # Exits a Task
73
73
  # def self.exit_task(task_id)
@@ -87,8 +87,8 @@ module BpmManager
87
87
  my_task.id = task['number']
88
88
  my_task.process_instance_id = task['processInstanceId']
89
89
  my_task.parent_id = ''
90
- my_task.created_on = Date.parse(task['created_on'])
91
- my_task.active_on = Date.parse(task['created_on'])
90
+ my_task.created_on = Time.at(Date.parse(task['created_on']))
91
+ my_task.active_on = Time.at(Date.parse(task['created_on']))
92
92
  my_task.name = task['title']
93
93
  my_task.owner = task['assigned']
94
94
  my_task.status = task['status']
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.6.15"
2
+ VERSION = "0.6.16"
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.6.15
4
+ version: 0.6.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa