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:

  • (NotImplementedError)


36
37
38
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 36

def cancel
  raise NotImplementedError
end

#idString

Returns ID for the workflow.

Returns:

  • (String)

    ID for the workflow.

Raises:

  • (NotImplementedError)


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:

  • (String, nil)

    Run ID for the workflow.

Raises:

  • (NotImplementedError)


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) ⇒ Object

Signal the external workflow.

Parameters:

  • signal (Workflow::Definition::Signal, Symbol, String)

    Signal definition or name.

  • args (Array<Object>)

    Signal args.

  • cancellation (Cancellation) (defaults to: Workflow.cancellation)

    Cancellation for canceling the signalling.

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/temporalio/workflow/external_workflow_handle.rb', line 31

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