Class: Camunda::Workflow::Configuration
- Inherits:
-
Object
- Object
- Camunda::Workflow::Configuration
- Defined in:
- lib/camunda/workflow.rb
Instance Attribute Summary collapse
-
#engine_route_prefix ⇒ Object
Returns the value of attribute engine_route_prefix.
-
#engine_url ⇒ Object
Returns the value of attribute engine_url.
-
#lock_duration ⇒ Object
Returns the value of attribute lock_duration.
-
#long_polling_duration ⇒ Object
Returns the value of attribute long_polling_duration.
-
#max_polling_tasks ⇒ Object
Returns the value of attribute max_polling_tasks.
-
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
-
#worker_id ⇒ Object
Returns the value of attribute worker_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/camunda/workflow.rb', line 20 def initialize @engine_url = 'http://localhost:8080' @engine_route_prefix = 'rest-engine' @worker_id = '0' @lock_duration = 14.days @max_polling_tasks = 2 @long_polling_duration = 30.seconds @tenant_id = if defined?(Rails) Rails.env.test? ? 'test-environment' : nil end end |
Instance Attribute Details
#engine_route_prefix ⇒ Object
Returns the value of attribute engine_route_prefix.
13 14 15 |
# File 'lib/camunda/workflow.rb', line 13 def engine_route_prefix @engine_route_prefix end |
#engine_url ⇒ Object
Returns the value of attribute engine_url.
12 13 14 |
# File 'lib/camunda/workflow.rb', line 12 def engine_url @engine_url end |
#lock_duration ⇒ Object
Returns the value of attribute lock_duration.
15 16 17 |
# File 'lib/camunda/workflow.rb', line 15 def lock_duration @lock_duration end |
#long_polling_duration ⇒ Object
Returns the value of attribute long_polling_duration.
17 18 19 |
# File 'lib/camunda/workflow.rb', line 17 def long_polling_duration @long_polling_duration end |
#max_polling_tasks ⇒ Object
Returns the value of attribute max_polling_tasks.
16 17 18 |
# File 'lib/camunda/workflow.rb', line 16 def max_polling_tasks @max_polling_tasks end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
18 19 20 |
# File 'lib/camunda/workflow.rb', line 18 def tenant_id @tenant_id end |
#worker_id ⇒ Object
Returns the value of attribute worker_id.
14 15 16 |
# File 'lib/camunda/workflow.rb', line 14 def worker_id @worker_id end |