bpm_manager 0.11.1 → 0.11.2

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: 92aa881364951d1f3dd8104d39c8659daf25e38a
4
- data.tar.gz: 9a79574eeeb61df8d78622e8928af1458a6eaa4f
3
+ metadata.gz: 85ed5b14be38a48b428476b7499e475f8063c1fc
4
+ data.tar.gz: 2779df2c3e937ebf7a79c8bef3334e8f4b3b95c5
5
5
  SHA512:
6
- metadata.gz: 03850882d85721ef3fd4db0fb2150939631aac98ccea3bec009457057ff129372bd338e96c5f15fa11d9110f8d1d6e3d2682cfe98ad3df51bf030ed73668ff6e
7
- data.tar.gz: f61617e29e932b6015b66a5515b01664776521027dfd008fe3db9a9aeca6246a95ee4373f97df6de1f2b7311267346a3f3a23c07b850434c6674b9784984c00b
6
+ metadata.gz: 5651e0893a412441d113ea2460314b20669c3af5a4e891507a5cdb8ee60f0c35dfc975ccecf07b743056196c802723d24b62699d5566daa82fcde1fb70701fc4
7
+ data.tar.gz: 4158da3ef3770b96fa5c225bfa9ead77df767271b4db46818607e5e29c376d339c5c0be31b78a330acb577e13f29e3dfbe2217eddf8683fd1e3e8b126212e862
@@ -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' + (user_id.empty? ? '' : '?taskOwner=' + user_id)].get))
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
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
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.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa