bpm_manager 0.10.5 → 0.10.6
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 +24 -17
- 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: c8b648175bc820d719c154609c84c3bd8964cb35
|
4
|
+
data.tar.gz: c474b7b7f3153ebf904f2f8d7e02d90cbd01034a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90f0a7344a79cbed61c76d02c4fca001c9f26b78edbcc09b25aa3f11f37b4217de6c76b1020a337cf7093077ec52bf074d46ce7a4c58d28574c804d5a21a5d06
|
7
|
+
data.tar.gz: 9bdbbf395d060aada92f9b307b133f91864e0623d4c312598a5f0aec9fbc6002fe453fe748ab618af9fc37bb2e771ce6926b2f6ebb1a2b5db771947c8f35adad
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -11,7 +11,9 @@ module BpmManager
|
|
11
11
|
|
12
12
|
# Creates a new Process
|
13
13
|
def self.create_process(deployment_id, process_definition_id, opts = {})
|
14
|
-
|
14
|
+
url = URI.encode(BpmManager.uri('/runtime/' + deployment_id.to_s + '/process/' + process_definition_id.to_s + '/start' + (opts.empty? ? '' : '?' + opts.map{|k,v| k.to_s + '=' + v.to_s}.join('&'))))
|
15
|
+
puts '---->' + url.inspect
|
16
|
+
RestClient.post(url, :headers => {:content_type => :json, :accept => :json})
|
15
17
|
end
|
16
18
|
|
17
19
|
# Gets all Process Instances
|
@@ -191,30 +193,35 @@ module BpmManager
|
|
191
193
|
private
|
192
194
|
def self.structure_task_data(input)
|
193
195
|
tasks = []
|
194
|
-
puts '---> Enter input: ' + input.inspect
|
195
196
|
|
196
197
|
unless input['taskSummaryList'].nil? || input['taskSummaryList'].empty?
|
197
198
|
input['taskSummaryList'].each do |task|
|
198
199
|
my_task = OpenStruct.new
|
199
|
-
my_task.id = task['
|
200
|
-
my_task.
|
201
|
-
my_task.
|
202
|
-
my_task.
|
203
|
-
my_task.
|
204
|
-
my_task.
|
205
|
-
my_task.
|
206
|
-
my_task.
|
207
|
-
my_task.
|
208
|
-
my_task.
|
209
|
-
my_task.
|
210
|
-
my_task.
|
211
|
-
my_task.
|
200
|
+
my_task.id = task['id']
|
201
|
+
my_task.name = task['name']
|
202
|
+
my_task.subject = task['subject']
|
203
|
+
my_task.description = task['description']
|
204
|
+
my_task.status = task['status']
|
205
|
+
my_task.priority = task['priority']
|
206
|
+
my_task.skippable = task['skippable']
|
207
|
+
my_task.created_on = Time.at(task['created-on']/1000)
|
208
|
+
my_task.active_on = Time.at(task['activation-time']/1000)
|
209
|
+
my_task.process_instance_id = task['process-instance-id']
|
210
|
+
my_task.process_id = task['process-id']
|
211
|
+
my_task.process_session_id = task['process-session-id']
|
212
|
+
my_task.deployment_id = task['deployment-id']
|
213
|
+
my_task.quick_task_summary = task['quick-task-summary']
|
214
|
+
my_task.parent_id = task['parent_id']
|
215
|
+
my_task.form_name = self.task_query(task['id'])['form-name']
|
216
|
+
my_task.creator = self.task_query(task['id'])['taskData']['created-by']
|
217
|
+
my_task.owner = task['actual-owner']
|
218
|
+
my_task.data = task
|
212
219
|
|
213
220
|
puts '---> Task data: ' + my_task.inspect
|
214
221
|
|
215
222
|
my_task.process = OpenStruct.new
|
216
|
-
my_task.process.data = self.process_instance(task['
|
217
|
-
my_task.process.deployment_id = task['
|
223
|
+
my_task.process.data = self.process_instance(task['process-instance-id'])
|
224
|
+
my_task.process.deployment_id = task['deployment-id']
|
218
225
|
my_task.process.id = my_task.process.data['process-id']
|
219
226
|
my_task.process.instance_id = my_task.process.data['process-instance-id']
|
220
227
|
my_task.process.start_on = Time.at(my_task.process.data['start']/1000)
|
data/lib/bpm_manager/version.rb
CHANGED