Class: Temporalio::Workflow::ExternalWorkflowHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/workflow/external_workflow_handle.rb

Overview

Handle for interacting with an external workflow.

This is created via external_workflow_handle, it is never instantiated directly.

Instance Method Summary collapse

Instance Method Details

#cancelObject

Cancel the external workflow.

Raises:



38
39
40
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 38

def cancel
  raise NotImplementedError
end

#idString

Returns ID for the workflow.

Returns:

  • ID for the workflow.

Raises:



17
18
19
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 17

def id
  raise NotImplementedError
end

#run_idString?

Returns Run ID for the workflow.

Returns:

  • Run ID for the workflow.

Raises:



22
23
24
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 22

def run_id
  raise NotImplementedError
end

#signal(signal, *args, cancellation: Workflow.cancellation, arg_hints: nil) ⇒ Object

Signal the external workflow.

Parameters:

  • Signal definition or name.

  • Signal args.

  • (defaults to: Workflow.cancellation)

    Cancellation for canceling the signalling.

  • (defaults to: nil)

    Overrides converter hints for arguments if any. If unset/nil and the signal definition has arg hints, those are used by default.

Raises:



33
34
35
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 33

def signal(signal, *args, cancellation: Workflow.cancellation, arg_hints: nil)
  raise NotImplementedError
end