class documentation
A handle to a workflow that is backing a Nexus operation.
Warning
This API is experimental and unstable.
Do not instantiate this directly. Use
temporalio.nexus.WorkflowRunOperationContext.start_workflow to create a
handle.
| Class Method | from |
Decodes and validates a token from its base64url-encoded string representation. |
| Method | to |
Convert handle to a base64url-encoded token string. |
| Class Variable | namespace |
Undocumented |
| Class Variable | version |
Undocumented |
| Class Variable | workflow |
Undocumented |
| Class Method | _unsafe |
Create a WorkflowHandle from a temporalio.client.WorkflowHandle. |
| Method | _to |
Create a temporalio.client.WorkflowHandle from the token. |
@classmethod
def _unsafe_from_client_workflow_handle(cls, workflow_handle:
def _unsafe_from_client_workflow_handle(cls, workflow_handle:
temporalio.client.WorkflowHandle[ Any, OutputT]) -> WorkflowHandle[ OutputT]:
(source)
¶
Create a WorkflowHandle from a temporalio.client.WorkflowHandle.
This is a private method not intended to be used by users. It does not check that the supplied client.WorkflowHandle references a workflow that has been instrumented to supply the result of a Nexus operation.
def _to_client_workflow_handle(self, client:
temporalio.client.Client, result_type: type[ OutputT] | None = None) -> temporalio.client.WorkflowHandle[ Any, OutputT]:
(source)
¶
Create a temporalio.client.WorkflowHandle from the token.