ZWorkflowClient

zio.temporal.workflow.ZWorkflowClient
See theZWorkflowClient companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def buildTaskQueueDsl[A : ClassTag](client: ZWorkflowClient): Of[A]

Internal helper used by inline def newWorkflowStub[A] (no args) — needed because Scala 3 inline methods cannot directly invoke private[zio] constructors. Package-private so only the inline site can call it.

Internal helper used by inline def newWorkflowStub[A] (no args) — needed because Scala 3 inline methods cannot directly invoke private[zio] constructors. Package-private so only the inline site can call it.

Attributes

def buildWorkflowStubFromIds[A : ClassTag](client: ZWorkflowClient, workflowId: String, runId: Option[String]): UIO[Of[A]]

Internal helper used by inline def newWorkflowStub[A](workflowId, runId).

Internal helper used by inline def newWorkflowStub[A](workflowId, runId).

Attributes

Concrete fields

Create ZWorkflowClient instance.

Create ZWorkflowClient instance.

The codecRegistry carried by ZWorkflowClientOptions is threaded into the resulting client so the auto-registration call sites (ZWorker.addWorkflow[I], newWorkflowStub[A], …) can populate it at their natural usage points, eliminating the need for manual .addInterface[...] calls.

The registry is allowed to start empty: codecs are added incrementally by addWorkflow / newWorkflowStub / addActivityImplementation. If the user forgets to register any workflow or activity type at all, the first payload encode produces a clear "No ZTemporalCodec registered for runtime class …" error from ZioJsonPayloadConverter.

Attributes

See also

WorkflowClient