toWorkflow

@ApiStatus.Experimental
inline fun <SVC : Any> Client.toWorkflow(key: String): KClientRequestBuilder<SVC>

Create a builder for invoking a Restate workflow.

Example usage:

val response = client.toWorkflow<MyWorkflow>("workflow-123")
.request { run("input") }
.call()

Return

a builder for creating typed requests

Parameters

SVC

the workflow class annotated with @Workflow

key

the key identifying the specific workflow instance