bpm_manager 0.3.2 → 0.3.3
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 +4 -4
- data/README.md +6 -5
- data/lib/bpm_manager/version.rb +1 -1
- data/lib/bpm_manager.rb +2 -2
- data/lib/generators/bpm_manager/bpm_manager.rb +5 -2
- 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: 1650dad80fcede955ee08963923e36361b0b3e93
|
4
|
+
data.tar.gz: b799dd233b33ec5872aeab40e324c6fb69c809f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554600aa3ced6360e73e568331724eab17f0e4fd2e5b3fd5f5b2cd44607993d3bdd4f2cd7fd8665f53a50f88cc556aec8eb9650e872bdad7c1a026ac17f1a8b4
|
7
|
+
data.tar.gz: b247574f05cc93d1edf2be280ca6d98a89f3267117e376f32beac85129c5135771ce74bdad066d77c2380c0ce5b8e417723a8f5a74f402485584ab5a2c904ad1
|
data/README.md
CHANGED
@@ -29,11 +29,12 @@ First configure properly the gem using the bpm_manager.rb file in 'config/initia
|
|
29
29
|
|
30
30
|
```ruby
|
31
31
|
BpmManager.configure do |config|
|
32
|
-
config.bpm_vendor => 'RedHat'
|
33
|
-
config.bpm_url => 'bpm.company.com'
|
34
|
-
config.
|
35
|
-
config.
|
36
|
-
config.
|
32
|
+
config.bpm_vendor => 'RedHat' # or 'Oracle'
|
33
|
+
config.bpm_url => 'bpm.company.com' # without http:// or https://
|
34
|
+
config.bpm_url_suffix => '/business-central/rest' # could be also /jbpm-console/rest
|
35
|
+
config.bpm_username => 'scott' # your server username
|
36
|
+
config.bpm_passowrd => 'tiger' # your password
|
37
|
+
config.bpm_use_ssl => false # use true for https
|
37
38
|
end
|
38
39
|
```
|
39
40
|
|
data/lib/bpm_manager/version.rb
CHANGED
data/lib/bpm_manager.rb
CHANGED
@@ -27,10 +27,10 @@ module BpmManager
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Returns the URI for the server plus a suffix
|
30
|
-
def self.uri(
|
30
|
+
def self.uri(rest_service = '')
|
31
31
|
case configuration.bpm_vendor.downcase
|
32
32
|
when 'redhat'
|
33
|
-
URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url +
|
33
|
+
URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url + configuration.bpm_url_suffix + (rest_service.nil? ? '' : rest_service))
|
34
34
|
else
|
35
35
|
''
|
36
36
|
end
|
@@ -1,9 +1,12 @@
|
|
1
1
|
BpmManager.configure do |config|
|
2
|
-
# Sets the BPM engine vendor [RedHat
|
2
|
+
# Sets the BPM engine vendor: [RedHat|Oracle]
|
3
3
|
config.bpm_vendor = "RedHat"
|
4
4
|
|
5
|
-
# Sets the BPM
|
5
|
+
# Sets the BPM URL or IP address without the http:// or https://
|
6
6
|
config.bpm_url = "bpm.company.com"
|
7
|
+
|
8
|
+
# Sets the URL suffix like: '/business-central/rest' or '/jbpm-console/rest'
|
9
|
+
config.bpm_url_suffix = "/jbpm-console/rest"
|
7
10
|
|
8
11
|
# Sets the BPM connection username
|
9
12
|
config.bpm_username = "scott"
|