Class: Conductor::Http::Models::WorkflowStateUpdate

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/workflow_state_update.rb

Overview

Request to update workflow state (variables and/or task state)

Constant Summary collapse

SWAGGER_TYPES =
{
  task_reference_name: 'String',
  task_result: 'TaskResult',
  variables: 'Hash<String, Object>'
}.freeze
ATTRIBUTE_MAP =
{
  task_reference_name: :taskReferenceName,
  task_result: :taskResult,
  variables: :variables
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json

Constructor Details

#initialize(params = {}) ⇒ WorkflowStateUpdate

Returns a new instance of WorkflowStateUpdate.



22
23
24
25
26
# File 'lib/conductor/http/models/workflow_state_update.rb', line 22

def initialize(params = {})
  @task_reference_name = params[:task_reference_name]
  @task_result = params[:task_result]
  @variables = params[:variables] || {}
end

Instance Attribute Details

#task_reference_nameObject

Returns the value of attribute task_reference_name.



20
21
22
# File 'lib/conductor/http/models/workflow_state_update.rb', line 20

def task_reference_name
  @task_reference_name
end

#task_resultObject

Returns the value of attribute task_result.



20
21
22
# File 'lib/conductor/http/models/workflow_state_update.rb', line 20

def task_result
  @task_result
end

#variablesObject

Returns the value of attribute variables.



20
21
22
# File 'lib/conductor/http/models/workflow_state_update.rb', line 20

def variables
  @variables
end