@@ -104,6 +104,15 @@ type (
104104 // - InternalServiceError
105105 StartWorkflow (ctx context.Context , options StartWorkflowOptions , workflowFunc interface {}, args ... interface {}) (* workflow.Execution , error )
106106
107+ // StartWorkflowAsync behaves like StartWorkflow except that the request is first queued and then processed asynchronously.
108+ // See StartWorkflow for parameter details.
109+ // The returned AsyncWorkflowExecution doesn't contain run ID, because the workflow hasn't started yet.
110+ // The errors it can return:
111+ // - EntityNotExistsError, if domain does not exists
112+ // - BadRequestError
113+ // - InternalServiceError
114+ StartWorkflowAsync (ctx context.Context , options StartWorkflowOptions , workflow interface {}, args ... interface {}) (* workflow.ExecutionAsync , error )
115+
107116 // ExecuteWorkflow starts a workflow execution and return a WorkflowRun instance and error
108117 // The user can use this to start using a function or workflow type name.
109118 // Either by
@@ -169,6 +178,15 @@ type (
169178 SignalWithStartWorkflow (ctx context.Context , workflowID string , signalName string , signalArg interface {},
170179 options StartWorkflowOptions , workflowFunc interface {}, workflowArgs ... interface {}) (* workflow.Execution , error )
171180
181+ // SignalWithStartWorkflowAsync behaves like SignalWithStartWorkflow except that the request is first queued and then processed asynchronously.
182+ // See SignalWithStartWorkflow for parameter details.
183+ // The errors it can return:
184+ // - EntityNotExistsError, if domain does not exist
185+ // - BadRequestError
186+ // - InternalServiceError
187+ SignalWithStartWorkflowAsync (ctx context.Context , workflowID string , signalName string , signalArg interface {},
188+ options StartWorkflowOptions , workflow interface {}, workflowArgs ... interface {}) (* workflow.ExecutionAsync , error )
189+
172190 // CancelWorkflow cancels a workflow in execution
173191 // - workflow ID of the workflow.
174192 // - runID can be default(empty string). if empty string then it will pick the running execution of that workflow ID.
0 commit comments