bpm_manager 0.6.17 → 0.6.18
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/oracle.rb +3 -3
- data/lib/bpm_manager/version.rb +1 -1
- data/spec/red_hat_spec.rb +5 -5
- 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: 515ef44f702efc3685732e165f49f30759f2c4a8
|
4
|
+
data.tar.gz: 216c0cbc06f695df4ee723d98d7cad2657b23cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a3c1b829417755ada54d56ce3b8913463a7787a65a1601b435c850c45559604cff7a62b64cc14fee7e2a4346ccac265ee5f8672c76191478f7cdff177426345
|
7
|
+
data.tar.gz: e1b72c41342f3d7800c220a3bcd76ea0a91cc33279d4a17ad47e4ddb1f08a1075389c9938cfc8b45660f915fb1bdadfc09a7d9235b0d052596c0eaf743abe8b4
|
data/lib/bpm_manager/oracle.rb
CHANGED
@@ -87,8 +87,8 @@ module BpmManager
|
|
87
87
|
my_task.id = task['number']
|
88
88
|
my_task.process_instance_id = task['processInstanceId']
|
89
89
|
my_task.parent_id = ''
|
90
|
-
my_task.created_on =
|
91
|
-
my_task.active_on =
|
90
|
+
my_task.created_on = DateTime.parse(task['created_on']).strftime('%Q')
|
91
|
+
my_task.active_on = DateTime.parse(task['created_on']).strftime('%Q')
|
92
92
|
my_task.name = task['title']
|
93
93
|
my_task.owner = task['assigned']
|
94
94
|
my_task.status = task['status']
|
@@ -101,7 +101,7 @@ module BpmManager
|
|
101
101
|
my_task.process.id = (process_info.nil? || process_info.empty?) ? '' : process_info['processId']
|
102
102
|
|
103
103
|
my_task.process.instance_id = task['processInstanceId']
|
104
|
-
my_task.process.start_on = Date.parse(task['created_on'])
|
104
|
+
my_task.process.start_on = Date.parse(task['created_on']).strftime('%Q')
|
105
105
|
my_task.process.name = task['processName']
|
106
106
|
my_task.process.version = (process_info.nil? || process_info.empty?) ? '' : process_info['revision']
|
107
107
|
my_task.process.creator = 'Not defined'
|
data/lib/bpm_manager/version.rb
CHANGED
data/spec/red_hat_spec.rb
CHANGED
@@ -3,10 +3,10 @@ require 'spec_helper'
|
|
3
3
|
describe BpmManager do
|
4
4
|
before :all do
|
5
5
|
BpmManager.configure do |config|
|
6
|
-
config.bpm_url = "bpm.
|
6
|
+
config.bpm_url = "bpm.server.com"
|
7
7
|
config.bpm_url_suffix = "/jbpm-console/rest"
|
8
|
-
config.bpm_username = "
|
9
|
-
config.bpm_password = "
|
8
|
+
config.bpm_username = "scott"
|
9
|
+
config.bpm_password = "tiger"
|
10
10
|
config.bpm_use_ssl = false
|
11
11
|
end
|
12
12
|
end
|
@@ -55,7 +55,7 @@ describe BpmManager do
|
|
55
55
|
|
56
56
|
describe "#tasks" do
|
57
57
|
before :each do
|
58
|
-
@tasks = BpmManager::RedHat.tasks('
|
58
|
+
@tasks = BpmManager::RedHat.tasks('foo@bar.com')
|
59
59
|
end
|
60
60
|
|
61
61
|
it "task should include the all attributes" do
|
@@ -143,7 +143,7 @@ describe BpmManager do
|
|
143
143
|
|
144
144
|
describe "#assign_task" do
|
145
145
|
before :each do
|
146
|
-
@result = BpmManager::RedHat.assign_task(1,'
|
146
|
+
@result = BpmManager::RedHat.assign_task(1,'foo@bar.com')
|
147
147
|
end
|
148
148
|
|
149
149
|
it "must return something" do
|