Class: Conductor::Http::Models::WorkflowTask

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

Overview

Represents a workflow task definition within a workflow Used for serialization to/from JSON when registering workflows

Constant Summary collapse

SWAGGER_TYPES =
{
  name: 'String',
  task_reference_name: 'String',
  type: 'String',
  description: 'String',
  optional: 'Boolean',
  input_parameters: 'Hash<String, Object>',
  dynamic_task_name_param: 'String',
  case_value_param: 'String',
  case_expression: 'String',
  script_expression: 'String',
  decision_cases: 'Hash<String, Array<WorkflowTask>>',
  dynamic_fork_join_tasks_param: 'String',
  dynamic_fork_tasks_param: 'String',
  dynamic_fork_tasks_input_param_name: 'String',
  default_case: 'Array<WorkflowTask>',
  fork_tasks: 'Array<Array<WorkflowTask>>',
  start_delay: 'Integer',
  sub_workflow_param: 'SubWorkflowParams',
  join_on: 'Array<String>',
  sink: 'String',
  task_definition: 'Object',
  rate_limited: 'Boolean',
  default_exclusive_join_task: 'Array<String>',
  async_complete: 'Boolean',
  loop_condition: 'String',
  loop_over: 'Array<WorkflowTask>',
  retry_count: 'Integer',
  evaluator_type: 'String',
  expression: 'String',
  workflow_task_type: 'String',
  cache_config: 'CacheConfig'
}.freeze
ATTRIBUTE_MAP =
{
  name: :name,
  task_reference_name: :taskReferenceName,
  type: :type,
  description: :description,
  optional: :optional,
  input_parameters: :inputParameters,
  dynamic_task_name_param: :dynamicTaskNameParam,
  case_value_param: :caseValueParam,
  case_expression: :caseExpression,
  script_expression: :scriptExpression,
  decision_cases: :decisionCases,
  dynamic_fork_join_tasks_param: :dynamicForkJoinTasksParam,
  dynamic_fork_tasks_param: :dynamicForkTasksParam,
  dynamic_fork_tasks_input_param_name: :dynamicForkTasksInputParamName,
  default_case: :defaultCase,
  fork_tasks: :forkTasks,
  start_delay: :startDelay,
  sub_workflow_param: :subWorkflowParam,
  join_on: :joinOn,
  sink: :sink,
  task_definition: :taskDefinition,
  rate_limited: :rateLimited,
  default_exclusive_join_task: :defaultExclusiveJoinTask,
  async_complete: :asyncComplete,
  loop_condition: :loopCondition,
  loop_over: :loopOver,
  retry_count: :retryCount,
  evaluator_type: :evaluatorType,
  expression: :expression,
  workflow_task_type: :workflowTaskType,
  cache_config: :cacheConfig
}.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 = {}) ⇒ WorkflowTask

Returns a new instance of WorkflowTask.



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/conductor/http/models/workflow_task.rb', line 87

def initialize(params = {})
  @name = params[:name]
  @task_reference_name = params[:task_reference_name]
  @type = params[:type]
  @description = params[:description]
  @optional = params[:optional]
  @input_parameters = params[:input_parameters] || {}
  @dynamic_task_name_param = params[:dynamic_task_name_param]
  @case_value_param = params[:case_value_param]
  @case_expression = params[:case_expression]
  @script_expression = params[:script_expression]
  @decision_cases = params[:decision_cases]
  @dynamic_fork_join_tasks_param = params[:dynamic_fork_join_tasks_param]
  @dynamic_fork_tasks_param = params[:dynamic_fork_tasks_param]
  @dynamic_fork_tasks_input_param_name = params[:dynamic_fork_tasks_input_param_name]
  @default_case = params[:default_case]
  @fork_tasks = params[:fork_tasks]
  @start_delay = params[:start_delay]
  @sub_workflow_param = params[:sub_workflow_param]
  @join_on = params[:join_on]
  @sink = params[:sink]
  @task_definition = params[:task_definition]
  @rate_limited = params[:rate_limited]
  @default_exclusive_join_task = params[:default_exclusive_join_task]
  @async_complete = params[:async_complete]
  @loop_condition = params[:loop_condition]
  @loop_over = params[:loop_over]
  @retry_count = params[:retry_count]
  @evaluator_type = params[:evaluator_type]
  @expression = params[:expression]
  @workflow_task_type = params[:workflow_task_type]
  @cache_config = params[:cache_config]
end

Instance Attribute Details

#async_completeObject

Returns the value of attribute async_complete.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def async_complete
  @async_complete
end

#cache_configObject

Returns the value of attribute cache_config.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def cache_config
  @cache_config
end

#case_expressionObject

Returns the value of attribute case_expression.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def case_expression
  @case_expression
end

#case_value_paramObject

Returns the value of attribute case_value_param.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def case_value_param
  @case_value_param
end

#decision_casesObject

Returns the value of attribute decision_cases.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def decision_cases
  @decision_cases
end

#default_caseObject

Returns the value of attribute default_case.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def default_case
  @default_case
end

#default_exclusive_join_taskObject

Returns the value of attribute default_exclusive_join_task.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def default_exclusive_join_task
  @default_exclusive_join_task
end

#descriptionObject

Returns the value of attribute description.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def description
  @description
end

#dynamic_fork_join_tasks_paramObject

Returns the value of attribute dynamic_fork_join_tasks_param.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def dynamic_fork_join_tasks_param
  @dynamic_fork_join_tasks_param
end

#dynamic_fork_tasks_input_param_nameObject

Returns the value of attribute dynamic_fork_tasks_input_param_name.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def dynamic_fork_tasks_input_param_name
  @dynamic_fork_tasks_input_param_name
end

#dynamic_fork_tasks_paramObject

Returns the value of attribute dynamic_fork_tasks_param.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def dynamic_fork_tasks_param
  @dynamic_fork_tasks_param
end

#dynamic_task_name_paramObject

Returns the value of attribute dynamic_task_name_param.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def dynamic_task_name_param
  @dynamic_task_name_param
end

#evaluator_typeObject

Returns the value of attribute evaluator_type.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def evaluator_type
  @evaluator_type
end

#expressionObject

Returns the value of attribute expression.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def expression
  @expression
end

#fork_tasksObject

Returns the value of attribute fork_tasks.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def fork_tasks
  @fork_tasks
end

#input_parametersObject

Returns the value of attribute input_parameters.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def input_parameters
  @input_parameters
end

#join_onObject

Returns the value of attribute join_on.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def join_on
  @join_on
end

#loop_conditionObject

Returns the value of attribute loop_condition.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def loop_condition
  @loop_condition
end

#loop_overObject

Returns the value of attribute loop_over.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def loop_over
  @loop_over
end

#nameObject

Returns the value of attribute name.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def name
  @name
end

#optionalObject

Returns the value of attribute optional.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def optional
  @optional
end

#rate_limitedObject

Returns the value of attribute rate_limited.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def rate_limited
  @rate_limited
end

#retry_countObject

Returns the value of attribute retry_count.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def retry_count
  @retry_count
end

#script_expressionObject

Returns the value of attribute script_expression.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def script_expression
  @script_expression
end

#sinkObject

Returns the value of attribute sink.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def sink
  @sink
end

#start_delayObject

Returns the value of attribute start_delay.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def start_delay
  @start_delay
end

#sub_workflow_paramObject

Returns the value of attribute sub_workflow_param.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def sub_workflow_param
  @sub_workflow_param
end

#task_definitionObject

Returns the value of attribute task_definition.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def task_definition
  @task_definition
end

#task_reference_nameObject

Returns the value of attribute task_reference_name.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def task_reference_name
  @task_reference_name
end

#typeObject

Returns the value of attribute type.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def type
  @type
end

#workflow_task_typeObject

Returns the value of attribute workflow_task_type.



77
78
79
# File 'lib/conductor/http/models/workflow_task.rb', line 77

def workflow_task_type
  @workflow_task_type
end