ZWorkflowStub

zio.temporal.workflow.ZWorkflowStub
See theZWorkflowStub companion object

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def toJava: WorkflowStub

Concrete methods

def cancel: TemporalIO[Unit]

Request cancellation of a workflow execution.

Request cancellation of a workflow execution.

Cancellation cancels io.temporal.workflow.CancellationScope that wraps the main workflow method. Note that workflow can take long time to get canceled or even completely ignore the cancellation request.

Attributes

Throws:
WorkflowNotFoundException

if the workflow execution doesn't exist or is already completed

WorkflowServiceException

for all other failures including networking and service availability issues

def result[V : ClassTag]: TemporalIO[V]

Fetches workflow result

Fetches workflow result

Attributes

V

expected workflow result type

Returns:

either interaction error or the workflow result

def result[V : ClassTag](timeout: Duration): TemporalIO[Option[V]]
def terminate(reason: Option[String], details: Any*): TemporalIO[Unit]

Terminates a workflow execution.

Terminates a workflow execution.

Termination is a hard stop of a workflow execution which doesn't give workflow code any chance to perform cleanup.

Attributes

details

additional details about the termination reason

reason

optional reason for the termination request

Throws:
WorkflowNotFoundException

if the workflow execution doesn't exist or is already completed

WorkflowServiceException

for all other failures including networking and service availability issues

Inherited methods

inline def signalWithStart(inline start: Unit, inline signal: Unit): TemporalIO[ZWorkflowExecution]

Performs signal with start atomically.

Performs signal with start atomically.

Attributes

signal

signal method call

start

workflow method call

Returns:

Workflow execution

Inherited from:
ZWorkflowClientSignalWithStartSyntax