toWorkflow
@ApiStatus.Experimental
Create a builder for invoking a Restate workflow.
Example usage:
val response = client.toWorkflow<MyWorkflow>("workflow-123")
.request { run("input") }
.call()Content copied to clipboard
Return
a builder for creating typed requests
Parameters
SVC
the workflow class annotated with @Workflow
key
the key identifying the specific workflow instance