class Temporal::Metadata::WorkflowTask

Attributes

attempt[R]
id[R]
namespace[R]
task_token[R]
workflow_id[R]
workflow_name[R]
workflow_run_id[R]

Public Class Methods

new(namespace:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:) click to toggle source
# File lib/temporal/metadata/workflow_task.rb, line 8
def initialize(namespace:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:)
  @namespace = namespace
  @id = id
  @task_token = task_token
  @attempt = attempt
  @workflow_run_id = workflow_run_id
  @workflow_id = workflow_id
  @workflow_name = workflow_name

  freeze
end

Public Instance Methods

to_h() click to toggle source
# File lib/temporal/metadata/workflow_task.rb, line 24
def to_h
  {
    'namespace' => namespace,
    'workflow_task_id' => id,
    'workflow_name' => workflow_name,
    'workflow_id' => workflow_id,
    'workflow_run_id' => workflow_run_id,
    'attempt' => attempt
  }
end
workflow_task?() click to toggle source
# File lib/temporal/metadata/workflow_task.rb, line 20
def workflow_task?
  true
end