Class: Operaton::Bpm::Client::Task::Impl::Dto::BpmnErrorRequestDto
- Inherits:
-
Impl::RequestDto
- Object
- Impl::RequestDto
- Operaton::Bpm::Client::Task::Impl::Dto::BpmnErrorRequestDto
- Defined in:
- lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb
Overview
Mirrors org.operaton.bpm.client.task.impl.dto.BpmnErrorRequestDto
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Attributes inherited from Impl::RequestDto
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(worker_id, error_code, error_message = nil, variables = nil) ⇒ BpmnErrorRequestDto
constructor
A new instance of BpmnErrorRequestDto.
Constructor Details
#initialize(worker_id, error_code, error_message = nil, variables = nil) ⇒ BpmnErrorRequestDto
Returns a new instance of BpmnErrorRequestDto.
15 16 17 18 19 20 |
# File 'lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb', line 15 def initialize(worker_id, error_code, = nil, variables = nil) super(worker_id) @error_code = error_code @error_message = @variables = variables end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
13 14 15 |
# File 'lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb', line 13 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
13 14 15 |
# File 'lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb', line 13 def @error_message end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
13 14 15 |
# File 'lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb', line 13 def variables @variables end |
Instance Method Details
#as_json ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/operaton/bpm/client/task/impl/dto/bpmn_error_request_dto.rb', line 22 def as_json super.merge( "errorCode" => error_code, "errorMessage" => , "variables" => variables&.transform_values(&:as_json) ) end |