// Start a workflow and await its result consthandle = awaitclient.workflow.start({ args: ['order-123'], taskQueue:'orders', workflowName:'orderWorkflow', workflowId:Durable.guid(), }); constresult = awaithandle.result();
// Send a signal to a running workflow awaithandle.signal('approval', { approved:true });
// Cancel a running workflow awaithandle.cancel();
The Durable Client service provides methods for
starting, signaling, and querying workflows.
Starting a workflow is the primary use case and
is accessed by calling workflow.start().
Workflow client. Starts workflows, sends signals, and reads results.
Example