bpm_manager 0.11.1 → 0.11.2
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/red_hat.rb +3 -10
- 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: 85ed5b14be38a48b428476b7499e475f8063c1fc
|
4
|
+
data.tar.gz: 2779df2c3e937ebf7a79c8bef3334e8f4b3b95c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5651e0893a412441d113ea2460314b20669c3af5a4e891507a5cdb8ee60f0c35dfc975ccecf07b743056196c802723d24b62699d5566daa82fcde1fb70701fc4
|
7
|
+
data.tar.gz: 4158da3ef3770b96fa5c225bfa9ead77df767271b4db46818607e5e29c376d339c5c0be31b78a330acb577e13f29e3dfbe2217eddf8683fd1e3e8b126212e862
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -37,8 +37,8 @@ module BpmManager
|
|
37
37
|
end
|
38
38
|
|
39
39
|
# Gets all tasks, optionally you could specify an user id
|
40
|
-
def self.tasks(user_id =
|
41
|
-
self.structure_task_data(JSON.parse(BpmManager.server['/task/query'
|
40
|
+
def self.tasks(user_id = '')
|
41
|
+
self.structure_task_data(JSON.parse(BpmManager.server['/task/query'].get(:taskOwner => user_id)))
|
42
42
|
end
|
43
43
|
|
44
44
|
# Gets all tasks with options
|
@@ -214,9 +214,7 @@ module BpmManager
|
|
214
214
|
my_task.creator = self.task_query(task['id'])['taskData']['created-by']
|
215
215
|
my_task.owner = task['actual-owner']
|
216
216
|
my_task.data = task
|
217
|
-
|
218
|
-
puts '---> Task data: ' + my_task.inspect
|
219
|
-
|
217
|
+
|
220
218
|
my_task.process = OpenStruct.new
|
221
219
|
my_task.process.data = self.process_instance(task['process-instance-id'])
|
222
220
|
my_task.process.deployment_id = task['deployment-id']
|
@@ -227,15 +225,10 @@ module BpmManager
|
|
227
225
|
my_task.process.version = my_task.process.data['process-version']
|
228
226
|
my_task.process.creator = my_task.process.data['identity']
|
229
227
|
my_task.process.variables = self.process_instance_variables(my_task.process.instance_id)
|
230
|
-
|
231
|
-
puts '---> Process data: ' + my_task.process.inspect
|
232
|
-
|
233
228
|
tasks << my_task
|
234
229
|
end
|
235
230
|
end
|
236
231
|
|
237
|
-
puts '---> Array data: ' + tasks.inspect
|
238
|
-
|
239
232
|
return tasks
|
240
233
|
end
|
241
234
|
end
|
data/lib/bpm_manager/version.rb
CHANGED