Class: Camunda::Workflow::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/camunda/workflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/camunda/workflow.rb', line 22

def initialize
  @engine_url = 'http://localhost:8080'
  @engine_route_prefix = 'rest-engine'
  @camunda_user = ''
  @camunda_password = ''
  @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

#camunda_passwordObject

Returns the value of attribute camunda_password.



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

def camunda_password
  @camunda_password
end

#camunda_userObject

Returns the value of attribute camunda_user.



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

def camunda_user
  @camunda_user
end

#engine_route_prefixObject

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_urlObject

Returns the value of attribute engine_url.



12
13
14
# File 'lib/camunda/workflow.rb', line 12

def engine_url
  @engine_url
end

#lock_durationObject

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_durationObject

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_tasksObject

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_idObject

Returns the value of attribute tenant_id.



18
19
20
# File 'lib/camunda/workflow.rb', line 18

def tenant_id
  @tenant_id
end

#worker_idObject

Returns the value of attribute worker_id.



14
15
16
# File 'lib/camunda/workflow.rb', line 14

def worker_id
  @worker_id
end