class Camunda::Workflow::Configuration

Default instance variables configurations for Her and camunda-workflow

Attributes

backtrace_silencer_lines[RW]

Can configure the backtrace silencer @return [Array<String>] List of backtrace silencer strings which are used to clean incident backtraces

camunda_password[RW]

Camunda password is supplied with the Camunda user to authenticate using HTTP Basic Auth. @return [String] Camunda password for HTTP Basic Auth

camunda_user[RW]

When HTTP Basic Auth is turned on for Camunda, a user needs to be created in Camunda Admin and set in to be used in the configuration. @return [String] Camunda user name for HTTP Basic Auth

engine_route_prefix[RW]

Engine route prefix that determines the path for the REST Api Default route for Java spring app is `/rest` Default route for Camunda deployment is `/rest-engine` @return [String] the prefix for Camunda REST Api

engine_url[RW]

Sets the deult engine url for Camunda REST Api @return [String] the url for Camunda deployment

http_proxy[RW]

Configure an HTTP proxy for all requests to use @return [String] The defined HTTP proxy

lock_duration[RW]

The default fetch_and_lock time duration when fetching a task @return [Integer] time in days to lock task

long_polling_duration[RW]

With the aid of log polling, a request is suspended by the server if no external tasks are available. Long polling significantly reduces the number of request and enables using resources more efficiently on both the server and client. @return [Integer]

max_polling_tasks[RW]

Max polling tasks when using the command line to fetch and lock tasks @return [Integer] default is set to fetch and lock 2 tasks

tenant_id[RW]

The tenant identifier is specified on the deployment and is propagated to all data that is created from the deployment(e.g. process definitions, process instances, tacks). @return [String] name for tenant identifier

worker_id[RW]

Name of worker, defaults to '0' @return [String] name of worker

Public Class Methods

new() click to toggle source
# File lib/camunda/workflow.rb, line 71
def initialize
  @engine_url = 'http://localhost:8080'
  @engine_route_prefix = 'rest'
  @camunda_user = ''
  @camunda_password = ''
  @worker_id = '0'
  @lock_duration = 14.days
  @max_polling_tasks = 2
  @long_polling_duration = 30.seconds
  @backtrace_silencer_lines = %w[gems/activesupport gems/sidekiq gems/activejob gems/i18n gems/actionpack]
  @tenant_id = if defined?(Rails)
                 Rails.env.test? ? 'test-environment' : nil
               end
end