BeatCoding BPM Manager Gem
BPM Manager Gem for RedHat jBPM & Oracle BPM engines
Feel free to fork, contribute & distribute
Installation
Add this line to your application's Gemfile:
gem 'bpm_manager'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install bpm_manager
Also do not forget to execute the initializer with:
$ rails generate bpm_manager:install
Usage
First configure properly the gem using the bpm_manager.rb file in 'config/initializers/bpm_manager.rb' or calling
BpmManager.configure({
:bpm_vendor => 'RedHat' # or 'Oracle'
:bpm_url => 'bpm.company.com' # without http:// or https://
:bpm_username => 'scott'
:bpm_passowrd => 'tiger'
:bpm_use_ssl => false # use true for https
})
Then make an API call like this:
result = BpmManager.deployments()
Quick Example
Get all the tasks for an user id
BpmManager.tasks('[email protected]')
Get all the tasks with options (RedHat example). It support all REST API options for /task/query call:
BpmManager.tasks({:ownerId => '[email protected]', :processInstanceId => 3})
Contributing
- Fork it ( https://github.com/BeatCoding/bpm_manager/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request