File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,23 @@ export default class DaprWorkflowClient {
193
193
return false ;
194
194
}
195
195
196
+ /**
197
+ * This method suspends a workflow instance, halting processing of it until resumeWorkflow is used to
198
+ * resume the workflow.
199
+ * @param {string } workflowInstanceId - The unique identifier of the workflow instance to suspend.
200
+ */
201
+ public async suspendWorkflow ( workflowInstanceId : string ) : Promise < void > {
202
+ return await this . _innerClient . suspendOrchestration ( workflowInstanceId ) ;
203
+ }
204
+
205
+ /**
206
+ * This method resumes a workflow instance that was suspended via suspendWorkflow.
207
+ * @param {string } workflowInstanceId - The unique identifier of the workflow instance to resume.
208
+ */
209
+ public async resumeWorkflow ( workflowInstanceId : string ) : Promise < void > {
210
+ return await this . _innerClient . resumeOrchestration ( workflowInstanceId ) ;
211
+ }
212
+
196
213
/**
197
214
* Closes the inner DurableTask client and shutdown the GRPC channel.
198
215
*/
You can’t perform that action at this time.
0 commit comments