Class: Temporalio::Workflow::ChildWorkflowHandle

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

Overview

Handle for interacting with a child workflow.

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

Instance Method Summary collapse

Instance Method Details

#first_execution_run_idString

Returns Run ID for the workflow.

Returns:

  • (String)

    Run ID for the workflow.

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/temporalio/workflow/child_workflow_handle.rb', line 20

def first_execution_run_id
  raise NotImplementedError
end

#idString

Returns ID for the workflow.

Returns:

  • (String)

    ID for the workflow.

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/temporalio/workflow/child_workflow_handle.rb', line 15

def id
  raise NotImplementedError
end

#resultObject

Wait for the result.

Returns:

  • (Object)

    Result of the child workflow.

Raises:



29
30
31
# File 'lib/temporalio/workflow/child_workflow_handle.rb', line 29

def result
  raise NotImplementedError
end

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

Signal the child 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)


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

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