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 do |config|
config.bpm_vendor => 'RedHat' # or 'Oracle'
config.bpm_url => 'bpm.company.com' # without http:// or https://
config.bpm_username => 'scott'
config.bpm_passowrd => 'tiger'
config.bpm_use_ssl => false # use true for https
end
Then make an API call like this:
result = BpmManager.deployments()
Quick Examples
# Get all the Deployments
BpmManager.deployments
# Get all the Tasks for an User ID
BpmManager.tasks('[email protected]')
# Get all the Tasks with options (RedHat example). It supports all REST API options.
BpmManager.tasks({:ownerId => '[email protected]', :processInstanceId => 3})
# Get all the Process Instances
BpmManager.process_instances
# Get the Process Instance with ID = 3
BpmManager.process_instance(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
License
BpmManager is released under the MIT License.