Class: Operaton::Bpm::Client::Topic::Impl::Dto::TopicRequestDto
- Inherits:
-
Object
- Object
- Operaton::Bpm::Client::Topic::Impl::Dto::TopicRequestDto
- Defined in:
- lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb
Overview
Mirrors org.operaton.bpm.client.topic.impl.dto.TopicRequestDto
Instance Attribute Summary collapse
-
#business_key ⇒ Object
readonly
Returns the value of attribute business_key.
-
#include_extension_properties ⇒ Object
Returns the value of attribute include_extension_properties.
-
#local_variables ⇒ Object
Returns the value of attribute local_variables.
-
#lock_duration ⇒ Object
readonly
Returns the value of attribute lock_duration.
-
#process_definition_id ⇒ Object
Returns the value of attribute process_definition_id.
-
#process_definition_id_in ⇒ Object
Returns the value of attribute process_definition_id_in.
-
#process_definition_key ⇒ Object
Returns the value of attribute process_definition_key.
-
#process_definition_key_in ⇒ Object
Returns the value of attribute process_definition_key_in.
-
#process_definition_version_tag ⇒ Object
Returns the value of attribute process_definition_version_tag.
-
#process_variables ⇒ Object
Returns the value of attribute process_variables.
-
#tenant_id_in ⇒ Object
Returns the value of attribute tenant_id_in.
-
#topic_name ⇒ Object
readonly
Returns the value of attribute topic_name.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
-
#without_tenant_id ⇒ Object
Returns the value of attribute without_tenant_id.
Class Method Summary collapse
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(topic_name, lock_duration, variables, business_key) ⇒ TopicRequestDto
constructor
A new instance of TopicRequestDto.
Constructor Details
#initialize(topic_name, lock_duration, variables, business_key) ⇒ TopicRequestDto
Returns a new instance of TopicRequestDto.
17 18 19 20 21 22 23 24 25 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 17 def initialize(topic_name, lock_duration, variables, business_key) @topic_name = topic_name @lock_duration = lock_duration @variables = variables @business_key = business_key @local_variables = false @without_tenant_id = false @include_extension_properties = false end |
Instance Attribute Details
#business_key ⇒ Object (readonly)
Returns the value of attribute business_key.
11 12 13 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 11 def business_key @business_key end |
#include_extension_properties ⇒ Object
Returns the value of attribute include_extension_properties.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def include_extension_properties @include_extension_properties end |
#local_variables ⇒ Object
Returns the value of attribute local_variables.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def local_variables @local_variables end |
#lock_duration ⇒ Object (readonly)
Returns the value of attribute lock_duration.
11 12 13 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 11 def lock_duration @lock_duration end |
#process_definition_id ⇒ Object
Returns the value of attribute process_definition_id.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_definition_id @process_definition_id end |
#process_definition_id_in ⇒ Object
Returns the value of attribute process_definition_id_in.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_definition_id_in @process_definition_id_in end |
#process_definition_key ⇒ Object
Returns the value of attribute process_definition_key.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_definition_key @process_definition_key end |
#process_definition_key_in ⇒ Object
Returns the value of attribute process_definition_key_in.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_definition_key_in @process_definition_key_in end |
#process_definition_version_tag ⇒ Object
Returns the value of attribute process_definition_version_tag.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_definition_version_tag @process_definition_version_tag end |
#process_variables ⇒ Object
Returns the value of attribute process_variables.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def process_variables @process_variables end |
#tenant_id_in ⇒ Object
Returns the value of attribute tenant_id_in.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def tenant_id_in @tenant_id_in end |
#topic_name ⇒ Object (readonly)
Returns the value of attribute topic_name.
11 12 13 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 11 def topic_name @topic_name end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
11 12 13 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 11 def variables @variables end |
#without_tenant_id ⇒ Object
Returns the value of attribute without_tenant_id.
12 13 14 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 12 def without_tenant_id @without_tenant_id end |
Class Method Details
.from_topic_subscription(topic_subscription, client_lock_duration) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 27 def self.from_topic_subscription(topic_subscription, client_lock_duration) lock_duration = topic_subscription.lock_duration || client_lock_duration dto = new(topic_subscription.topic_name, lock_duration, topic_subscription.variable_names, topic_subscription.business_key) dto.process_definition_id = topic_subscription.process_definition_id dto.process_definition_id_in = topic_subscription.process_definition_id_in dto.process_definition_key = topic_subscription.process_definition_key dto.process_definition_key_in = topic_subscription.process_definition_key_in dto.without_tenant_id = topic_subscription.without_tenant_id? dto.tenant_id_in = topic_subscription.tenant_id_in dto.process_definition_version_tag = topic_subscription.process_definition_version_tag dto.process_variables = topic_subscription.process_variables dto.local_variables = topic_subscription.local_variables? dto.include_extension_properties = topic_subscription.include_extension_properties? dto end |
Instance Method Details
#as_json ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/operaton/bpm/client/topic/impl/dto/topic_request_dto.rb', line 46 def as_json { "topicName" => topic_name, "lockDuration" => lock_duration, "variables" => variables, "localVariables" => local_variables, "businessKey" => business_key, "processDefinitionId" => process_definition_id, "processDefinitionIdIn" => process_definition_id_in, "processDefinitionKey" => process_definition_key, "processDefinitionKeyIn" => process_definition_key_in, "processDefinitionVersionTag" => process_definition_version_tag, "processVariables" => process_variables, "withoutTenantId" => without_tenant_id, "tenantIdIn" => tenant_id_in, "includeExtensionProperties" => include_extension_properties } end |