Class: Camunda::Workflow::Configuration
- Inherits:
-
Object
- Object
- Camunda::Workflow::Configuration
- Defined in:
- lib/camunda/workflow.rb
Overview
Default instance variables configurations for Her and camunda-workflow
Instance Attribute Summary collapse
-
#backtrace_silencer_lines ⇒ Array<String>
Can configure the backtrace silencer.
-
#camunda_password ⇒ String
Camunda password is supplied with the Camunda user to authenticate using HTTP Basic Auth.
-
#camunda_user ⇒ String
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.
-
#engine_route_prefix ⇒ String
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`.
-
#engine_url ⇒ String
Sets the deult engine url for Camunda REST Api.
-
#http_proxy ⇒ String
Configure an HTTP proxy for all requests to use.
-
#lock_duration ⇒ Integer
The default fetch_and_lock time duration when fetching a task.
-
#long_polling_duration ⇒ Integer
With the aid of log polling, a request is suspended by the server if no external tasks are available.
-
#max_polling_tasks ⇒ Integer
Max polling tasks when using the command line to fetch and lock tasks.
-
#tenant_id ⇒ String
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).
-
#worker_id ⇒ String
Name of worker, defaults to ‘0’.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# 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 |
Instance Attribute Details
#backtrace_silencer_lines ⇒ Array<String>
Can configure the backtrace silencer
66 67 68 |
# File 'lib/camunda/workflow.rb', line 66 def backtrace_silencer_lines @backtrace_silencer_lines end |
#camunda_password ⇒ String
Camunda password is supplied with the Camunda user to authenticate using HTTP Basic Auth.
63 64 65 |
# File 'lib/camunda/workflow.rb', line 63 def camunda_password @camunda_password end |
#camunda_user ⇒ String
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.
60 61 62 |
# File 'lib/camunda/workflow.rb', line 60 def camunda_user @camunda_user end |
#engine_route_prefix ⇒ String
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`
38 39 40 |
# File 'lib/camunda/workflow.rb', line 38 def engine_route_prefix @engine_route_prefix end |
#engine_url ⇒ String
Sets the deult engine url for Camunda REST Api
33 34 35 |
# File 'lib/camunda/workflow.rb', line 33 def engine_url @engine_url end |
#http_proxy ⇒ String
Configure an HTTP proxy for all requests to use
69 70 71 |
# File 'lib/camunda/workflow.rb', line 69 def http_proxy @http_proxy end |
#lock_duration ⇒ Integer
The default fetch_and_lock time duration when fetching a task
44 45 46 |
# File 'lib/camunda/workflow.rb', line 44 def lock_duration @lock_duration end |
#long_polling_duration ⇒ Integer
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.
52 53 54 |
# File 'lib/camunda/workflow.rb', line 52 def long_polling_duration @long_polling_duration end |
#max_polling_tasks ⇒ Integer
Max polling tasks when using the command line to fetch and lock tasks
47 48 49 |
# File 'lib/camunda/workflow.rb', line 47 def max_polling_tasks @max_polling_tasks end |
#tenant_id ⇒ String
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).
56 57 58 |
# File 'lib/camunda/workflow.rb', line 56 def tenant_id @tenant_id end |
#worker_id ⇒ String
Name of worker, defaults to ‘0’
41 42 43 |
# File 'lib/camunda/workflow.rb', line 41 def worker_id @worker_id end |