17
17
import com .microsoft .durabletask .Task ;
18
18
import com .microsoft .durabletask .TaskCanceledException ;
19
19
import com .microsoft .durabletask .TaskFailedException ;
20
- import com .microsoft .durabletask .TaskOptions ;
21
20
import io .dapr .workflows .saga .SagaContext ;
22
21
import org .slf4j .Logger ;
23
22
@@ -153,24 +152,24 @@ default <V> Task<V> waitForExternalEvent(String name, Class<V> dataType) {
153
152
* @param <V> the expected type of the activity output
154
153
* @return a new {@link Task} that completes when the activity completes or fails
155
154
*/
156
- <V > Task <V > callActivity (String name , Object input , TaskOptions options , Class <V > returnType );
155
+ <V > Task <V > callActivity (String name , Object input , WorkflowTaskOptions options , Class <V > returnType );
157
156
158
157
/**
159
158
* Asynchronously invokes an activity by name and returns a new {@link Task} that completes when the activity
160
- * completes. See {@link #callActivity(String, Object, TaskOptions , Class)} for a complete description.
159
+ * completes. See {@link #callActivity(String, Object, WorkflowTaskOptions , Class)} for a complete description.
161
160
*
162
161
* @param name the name of the activity to call
163
162
* @return a new {@link Task} that completes when the activity completes or fails
164
- * @see #callActivity(String, Object, TaskOptions , Class)
163
+ * @see #callActivity(String, Object, WorkflowTaskOptions , Class)
165
164
*/
166
165
default Task <Void > callActivity (String name ) {
167
166
return this .callActivity (name , null , null , Void .class );
168
167
}
169
168
170
169
/**
171
170
* Asynchronously invokes an activity by name and with the specified input value and returns a new {@link Task}
172
- * that completes when the activity completes. See {@link #callActivity(String, Object, TaskOptions, Class)} for a
173
- * complete description.
171
+ * that completes when the activity completes.
172
+ * See {@link #callActivity(String, Object, WorkflowTaskOptions, Class)} for a complete description.
174
173
*
175
174
* @param name the name of the activity to call
176
175
* @param input the serializable input to pass to the activity
@@ -183,7 +182,7 @@ default Task<Void> callActivity(String name, Object input) {
183
182
/**
184
183
* Asynchronously invokes an activity by name and returns a new {@link Task} that completes when the activity
185
184
* completes. If the activity completes successfully, the returned {@code Task}'s value will be the activity's
186
- * output. See {@link #callActivity(String, Object, TaskOptions , Class)} for a complete description.
185
+ * output. See {@link #callActivity(String, Object, WorkflowTaskOptions , Class)} for a complete description.
187
186
*
188
187
* @param name the name of the activity to call
189
188
* @param returnType the expected class type of the activity output
@@ -197,8 +196,8 @@ default <V> Task<V> callActivity(String name, Class<V> returnType) {
197
196
/**
198
197
* Asynchronously invokes an activity by name and with the specified input value and returns a new {@link Task}
199
198
* that completes when the activity completes.If the activity completes successfully, the returned {@code Task}'s
200
- * value will be the activity's output. See {@link #callActivity(String, Object, TaskOptions, Class)} for a
201
- * complete description.
199
+ * value will be the activity's output.
200
+ * See {@link #callActivity(String, Object, WorkflowTaskOptions, Class)} for a complete description.
202
201
*
203
202
* @param name the name of the activity to call
204
203
* @param input the serializable input to pass to the activity
@@ -212,15 +211,15 @@ default <V> Task<V> callActivity(String name, Object input, Class<V> returnType)
212
211
213
212
/**
214
213
* Asynchronously invokes an activity by name and with the specified input value and returns a new {@link Task}
215
- * that completes when the activity completes. See {@link #callActivity(String, Object, TaskOptions, Class)} for a
216
- * complete description.
214
+ * that completes when the activity completes.
215
+ * See {@link #callActivity(String, Object, WorkflowTaskOptions, Class)} for a complete description.
217
216
*
218
217
* @param name the name of the activity to call
219
218
* @param input the serializable input to pass to the activity
220
219
* @param options additional options that control the execution and processing of the activity
221
220
* @return a new {@link Task} that completes when the activity completes or fails
222
221
*/
223
- default Task <Void > callActivity (String name , Object input , TaskOptions options ) {
222
+ default Task <Void > callActivity (String name , Object input , WorkflowTaskOptions options ) {
224
223
return this .callActivity (name , input , options , Void .class );
225
224
}
226
225
@@ -367,11 +366,11 @@ default Task<Void> createTimer(ZonedDateTime zonedDateTime) {
367
366
* Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
368
367
* when the child-workflow completes.
369
368
*
370
- * <p>See {@link #callChildWorkflow(String, Object, String, TaskOptions , Class)} for a full description.
369
+ * <p>See {@link #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)} for a full description.
371
370
*
372
371
* @param name the name of the workflow to invoke
373
372
* @return a new {@link Task} that completes when the child-workflow completes or fails
374
- * @see #callChildWorkflow(String, Object, String, TaskOptions , Class)
373
+ * @see #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)
375
374
*/
376
375
default Task <Void > callChildWorkflow (String name ) {
377
376
return this .callChildWorkflow (name , null );
@@ -381,7 +380,7 @@ default Task<Void> callChildWorkflow(String name) {
381
380
* Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
382
381
* when the child-workflow completes.
383
382
*
384
- * <p>See {@link #callChildWorkflow(String, Object, String, TaskOptions , Class)} for a full description.
383
+ * <p>See {@link #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)} for a full description.
385
384
*
386
385
* @param name the name of the workflow to invoke
387
386
* @param input the serializable input to send to the child-workflow
@@ -395,7 +394,7 @@ default Task<Void> callChildWorkflow(String name, Object input) {
395
394
* Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
396
395
* when the child-workflow completes.
397
396
*
398
- * <p>See {@link #callChildWorkflow(String, Object, String, TaskOptions , Class)} for a full description.
397
+ * <p>See {@link #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)} for a full description.
399
398
*
400
399
* @param name the name of the workflow to invoke
401
400
* @param input the serializable input to send to the child-workflow
@@ -411,7 +410,7 @@ default <V> Task<V> callChildWorkflow(String name, Object input, Class<V> return
411
410
* Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
412
411
* when the child-workflow completes.
413
412
*
414
- * <p>See {@link #callChildWorkflow(String, Object, String, TaskOptions , Class)} for a full description.
413
+ * <p>See {@link #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)} for a full description.
415
414
*
416
415
* @param name the name of the workflow to invoke
417
416
* @param input the serializable input to send to the child-workflow
@@ -428,15 +427,15 @@ default <V> Task<V> callChildWorkflow(String name, Object input, String instance
428
427
* Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
429
428
* when the child-workflow completes.
430
429
*
431
- * <p>See {@link #callChildWorkflow(String, Object, String, TaskOptions , Class)} for a full description.
430
+ * <p>See {@link #callChildWorkflow(String, Object, String, WorkflowTaskOptions , Class)} for a full description.
432
431
*
433
432
* @param name the name of the workflow to invoke
434
433
* @param input the serializable input to send to the child-workflow
435
434
* @param instanceID the unique ID of the child-workflow
436
435
* @param options additional options that control the execution and processing of the activity
437
436
* @return a new {@link Task} that completes when the child-workflow completes or fails
438
437
*/
439
- default Task <Void > callChildWorkflow (String name , Object input , String instanceID , TaskOptions options ) {
438
+ default Task <Void > callChildWorkflow (String name , Object input , String instanceID , WorkflowTaskOptions options ) {
440
439
return this .callChildWorkflow (name , input , instanceID , options , Void .class );
441
440
}
442
441
@@ -478,7 +477,7 @@ default Task<Void> callChildWorkflow(String name, Object input, String instanceI
478
477
<V > Task <V > callChildWorkflow (String name ,
479
478
@ Nullable Object input ,
480
479
@ Nullable String instanceID ,
481
- @ Nullable TaskOptions options ,
480
+ @ Nullable WorkflowTaskOptions options ,
482
481
Class <V > returnType );
483
482
484
483
/**
0 commit comments