Module: Camunda::Workflow

Defined in:
lib/camunda/workflow.rb,
lib/camunda/workflow/version.rb

Overview

Default configuration file for camunda-workflow. These defaults can be overridden using an initializer file within a Rails application.

Examples:

override default values

Camunda::Workflow.configure do |config|
  config.engine_url = 'http://localhost:8080'
  config.engine_route_prefix = 'rest'
end

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

VERSION =
'0.3.0'.freeze

Class Method Summary collapse

Class Method Details

.configurationConfiguration

Access the Configuration class

Returns:



26
27
28
# File 'lib/camunda/workflow.rb', line 26

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Note:

if HTTP Basic Auth is used with the Camunda engine, this is where you would set a camunda_user and camunda_password

Implements Configuration class and sets default instance variables. The default variables can be overridden by creating an initializer file within your rails application and setting the variables like in the example below. using the credentials from a user setup in Camunda Admin.

Examples:

'Camunda::Workflow.configure do |config|
  config.engine_url = 'http://localhost:8080'
  config.engine_route_prefix = 'rest'
end'

Yields:



20
21
22
# File 'lib/camunda/workflow.rb', line 20

def self.configure
  yield(configuration)
end