Class: Temporalio::Client::ActivityIDReference

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/activity_id_reference.rb

Overview

Reference to an existing activity by its workflow ID, run ID, and activity ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_id:, run_id:, activity_id:) ⇒ ActivityIDReference

Create an activity ID reference.

Parameters:

  • workflow_id (String)

    ID for the workflow.

  • run_id (String, nil)

    Run ID for the workflow.

  • activity_id (String)

    ID for the workflow.



25
26
27
28
29
# File 'lib/temporalio/client/activity_id_reference.rb', line 25

def initialize(workflow_id:, run_id:, activity_id:)
  @workflow_id = workflow_id
  @run_id = run_id
  @activity_id = activity_id
end

Instance Attribute Details

#activity_idString (readonly)

Returns ID for the activity.

Returns:

  • (String)

    ID for the activity.



18
19
20
# File 'lib/temporalio/client/activity_id_reference.rb', line 18

def activity_id
  @activity_id
end

#run_idString? (readonly)

Returns Run ID for the workflow.

Returns:

  • (String, nil)

    Run ID for the workflow.



15
16
17
# File 'lib/temporalio/client/activity_id_reference.rb', line 15

def run_id
  @run_id
end

#workflow_idString (readonly)

Returns ID for the workflow.

Returns:

  • (String)

    ID for the workflow.



12
13
14
# File 'lib/temporalio/client/activity_id_reference.rb', line 12

def workflow_id
  @workflow_id
end