@@ -104,6 +104,15 @@ type (
104
104
// - InternalServiceError
105
105
StartWorkflow (ctx context.Context , options StartWorkflowOptions , workflowFunc interface {}, args ... interface {}) (* workflow.Execution , error )
106
106
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
+
107
116
// ExecuteWorkflow starts a workflow execution and return a WorkflowRun instance and error
108
117
// The user can use this to start using a function or workflow type name.
109
118
// Either by
@@ -169,6 +178,15 @@ type (
169
178
SignalWithStartWorkflow (ctx context.Context , workflowID string , signalName string , signalArg interface {},
170
179
options StartWorkflowOptions , workflowFunc interface {}, workflowArgs ... interface {}) (* workflow.Execution , error )
171
180
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
+
172
190
// CancelWorkflow cancels a workflow in execution
173
191
// - workflow ID of the workflow.
174
192
// - runID can be default(empty string). if empty string then it will pick the running execution of that workflow ID.
0 commit comments