bpm_manager 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea02c8d53aededfbc59d9dbc3fb3c665927cbf42
4
- data.tar.gz: 5781954976cf0ec8b54fb0e64cb5b64a48c8819a
3
+ metadata.gz: 23347d011d42ef0ef43ca6d4c2df7b80cd4e1219
4
+ data.tar.gz: 0bf5cc811d13282bd9bb31b99d9204e62235d26f
5
5
  SHA512:
6
- metadata.gz: 8d2b2f67d473cfdf5d4efd70eb25225d7abb38da4cb2996b40ac838183cecca8910cf7ac271946474af1d60d749305fd10657e6f7a8c04fd5474d0a7ab30927d
7
- data.tar.gz: c33abf150b4aa0978eb246c9fb869af8e7e66fbdb58d7c10fa6ce63cb22e36219d9ce822c2ae98f73e51e83f99a760ccf05eef2754a145db76b6c29fb80daf26
6
+ metadata.gz: 4508a5ce87dff3d5467c0467311252c9c7170727e4b6ccce30a2da1b6ff0d132a84ed682478cf64ff53de619bcc41789ef5e5a14054fd95b402915342d0f9217
7
+ data.tar.gz: 17b606ab72deed4196330bc2e864f72d337d06e1f0da41d11a2de791108d8004eea6b6189ee30d854e50389643e61d7b43fb2a346fa1ef569c65a8629fc85332
@@ -16,7 +16,7 @@ module BpmManager
16
16
 
17
17
  # Creates a new Process
18
18
  def self.create_process(deployment_id, process_definition_id, opts = {})
19
- BpmManager.server['/runtime/' + deployment_id.to_s + '/process/' + process_definition_id.to_s + '/start'].post(opts)
19
+ JSON.parse(BpmManager.server['/query/runtime/process/' + (opts.empty? ? '' : '?' + opts.map{|k,v| (v.class == Array) ? v.each{|e| k.to_s + '=' + e.to_s} : k.to_s + '=' + v.to_s}.join('&'))].get)['taskInfoList']
20
20
  end
21
21
 
22
22
  # Gets all Process Instances
@@ -82,7 +82,7 @@ module BpmManager
82
82
 
83
83
  # Gets all the runtime Tasks with query options
84
84
  def self.task_query_with_opts(opts = {})
85
- JSON.parse(BpmManager.server['/query/runtime/task/' + (opts.empty? ? '' : '?' + opts.map{|k,v| k.to_s + '=' + v.to_s}.join('&'))].get)['taskInfoList']
85
+ JSON.parse(BpmManager.server['/query/runtime/task/' + (opts.empty? ? '' : '?' + opts.map{|k,v| (v.class == Array) ? v.each{|e| k.to_s + '=' + e.to_s} : k.to_s + '=' + v.to_s}.join('&'))].get)['taskInfoList']
86
86
  end
87
87
 
88
88
  # Starts a Task
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
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: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa