Class: Temporalio::Converters::StorageDriverWorkflowInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/converters/storage_driver_workflow_info.rb,
lib/temporalio/converters/storage_driver_workflow_info.rb

Overview

Note:

WARNING: This API is experimental and may change in the future.

Identity of the workflow a payload is being stored on behalf of. Also used for workflow activities, which store against their owning workflow rather than themselves.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace:, id: nil, run_id: nil, type: nil) ⇒ StorageDriverWorkflowInfo

Create workflow target information.

Parameters:

  • namespace (String) —

    Workflow namespace.

  • id (String, nil) (defaults to: nil) —

    Workflow ID.

  • run_id (String, nil) (defaults to: nil) —

    Run ID.

  • type (String, nil) (defaults to: nil) —

    Workflow type name.



33
34
35
# File 'lib/temporalio/converters/storage_driver_workflow_info.rb', line 33

def initialize(namespace:, id: nil, run_id: nil, type: nil)
  super
end

Instance Attribute Details

#id ⇒ String? (readonly)

Returns Workflow ID, if known.

Returns:

  • (String, nil) —

    Workflow ID, if known.



26
27
28
# File 'lib/temporalio/converters/storage_driver_workflow_info.rb', line 26

def id
  @id
end

#namespace ⇒ String (readonly)

Returns Workflow namespace.

Returns:

  • (String) —

    Workflow namespace.



26
27
28
# File 'lib/temporalio/converters/storage_driver_workflow_info.rb', line 26

def namespace
  @namespace
end

#run_id ⇒ String? (readonly)

Returns Run ID, if known. Unset when the run is not yet determined, such as when starting a child workflow or continuing as new.

Returns:

  • (String, nil) —

    Run ID, if known. Unset when the run is not yet determined, such as when starting a child workflow or continuing as new.



26
27
28
# File 'lib/temporalio/converters/storage_driver_workflow_info.rb', line 26

def run_id
  @run_id
end

#type ⇒ String? (readonly)

Returns Workflow type name, if known.

Returns:

  • (String, nil) —

    Workflow type name, if known.



26
27
28
# File 'lib/temporalio/converters/storage_driver_workflow_info.rb', line 26

def type
  @type
end