Class: Conductor::Http::Models::StartWorkflowRequest

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

Overview

StartWorkflowRequest model for starting a workflow execution

Defined Under Namespace

Modules: IdempotencyStrategy

Constant Summary collapse

SWAGGER_TYPES =
{
  name: 'String',
  version: 'Integer',
  correlation_id: 'String',
  input: 'Hash<String, Object>',
  task_to_domain: 'Hash<String, String>',
  workflow_def: 'WorkflowDef',
  external_input_payload_storage_path: 'String',
  priority: 'Integer',
  created_by: 'String',
  idempotency_key: 'String',
  idempotency_strategy: 'String'
}.freeze
ATTRIBUTE_MAP =
{
  name: :name,
  version: :version,
  correlation_id: :correlationId,
  input: :input,
  task_to_domain: :taskToDomain,
  workflow_def: :workflowDef,
  external_input_payload_storage_path: :externalInputPayloadStoragePath,
  priority: :priority,
  created_by: :createdBy,
  idempotency_key: :idempotencyKey,
  idempotency_strategy: :idempotencyStrategy
}.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(attributes = {}) ⇒ StartWorkflowRequest

Initialize a new StartWorkflowRequest

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/conductor/http/models/start_workflow_request.rb', line 50

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  self.name = attributes[:name] if attributes.key?(:name)
  self.version = attributes[:version] if attributes.key?(:version)
  self.correlation_id = attributes[:correlation_id] if attributes.key?(:correlation_id)
  self.input = attributes[:input] if attributes.key?(:input)
  self.task_to_domain = attributes[:task_to_domain] if attributes.key?(:task_to_domain)
  self.workflow_def = attributes[:workflow_def] if attributes.key?(:workflow_def)
  self.external_input_payload_storage_path = attributes[:external_input_payload_storage_path] if attributes.key?(:external_input_payload_storage_path)
  self.priority = attributes[:priority] if attributes.key?(:priority)
  self.created_by = attributes[:created_by] if attributes.key?(:created_by)
  self.idempotency_key = attributes[:idempotency_key] if attributes.key?(:idempotency_key)
  self.idempotency_strategy = attributes[:idempotency_strategy] if attributes.key?(:idempotency_strategy)
end

Instance Attribute Details

#correlation_idObject

Returns the value of attribute correlation_id.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def correlation_id
  @correlation_id
end

#created_byObject

Returns the value of attribute created_by.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def created_by
  @created_by
end

#external_input_payload_storage_pathObject

Returns the value of attribute external_input_payload_storage_path.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def external_input_payload_storage_path
  @external_input_payload_storage_path
end

#idempotency_keyObject

Returns the value of attribute idempotency_key.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def idempotency_key
  @idempotency_key
end

#idempotency_strategyObject

Returns the value of attribute idempotency_strategy.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def idempotency_strategy
  @idempotency_strategy
end

#inputObject

Returns the value of attribute input.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def input
  @input
end

#nameObject

Returns the value of attribute name.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def name
  @name
end

#priorityObject

Returns the value of attribute priority.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def priority
  @priority
end

#task_to_domainObject

Returns the value of attribute task_to_domain.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def task_to_domain
  @task_to_domain
end

#versionObject

Returns the value of attribute version.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def version
  @version
end

#workflow_defObject

Returns the value of attribute workflow_def.



44
45
46
# File 'lib/conductor/http/models/start_workflow_request.rb', line 44

def workflow_def
  @workflow_def
end