bpm_manager 0.3.0 → 0.3.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.rb +6 -6
- data/lib/bpm_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f27bdbedbeb45b636e0d50423d6c7f589628342
|
4
|
+
data.tar.gz: bc031a2a57e15bdf615a9256f3659d7ff3b18c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
data/lib/bpm_manager/version.rb
CHANGED