1717import com .microsoft .durabletask .Task ;
1818import com .microsoft .durabletask .TaskCanceledException ;
1919import com .microsoft .durabletask .TaskFailedException ;
20- import com .microsoft .durabletask .TaskOptions ;
2120import io .dapr .workflows .saga .SagaContext ;
2221import org .slf4j .Logger ;
2322
@@ -153,24 +152,24 @@ default <V> Task<V> waitForExternalEvent(String name, Class<V> dataType) {
153152 * @param <V> the expected type of the activity output
154153 * @return a new {@link Task} that completes when the activity completes or fails
155154 */
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 );
157156
158157 /**
159158 * 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.
161160 *
162161 * @param name the name of the activity to call
163162 * @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)
165164 */
166165 default Task <Void > callActivity (String name ) {
167166 return this .callActivity (name , null , null , Void .class );
168167 }
169168
170169 /**
171170 * 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.
174173 *
175174 * @param name the name of the activity to call
176175 * @param input the serializable input to pass to the activity
@@ -183,7 +182,7 @@ default Task<Void> callActivity(String name, Object input) {
183182 /**
184183 * Asynchronously invokes an activity by name and returns a new {@link Task} that completes when the activity
185184 * 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.
187186 *
188187 * @param name the name of the activity to call
189188 * @param returnType the expected class type of the activity output
@@ -197,8 +196,8 @@ default <V> Task<V> callActivity(String name, Class<V> returnType) {
197196 /**
198197 * Asynchronously invokes an activity by name and with the specified input value and returns a new {@link Task}
199198 * 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.
202201 *
203202 * @param name the name of the activity to call
204203 * @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)
212211
213212 /**
214213 * 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.
217216 *
218217 * @param name the name of the activity to call
219218 * @param input the serializable input to pass to the activity
220219 * @param options additional options that control the execution and processing of the activity
221220 * @return a new {@link Task} that completes when the activity completes or fails
222221 */
223- default Task <Void > callActivity (String name , Object input , TaskOptions options ) {
222+ default Task <Void > callActivity (String name , Object input , WorkflowTaskOptions options ) {
224223 return this .callActivity (name , input , options , Void .class );
225224 }
226225
@@ -367,11 +366,11 @@ default Task<Void> createTimer(ZonedDateTime zonedDateTime) {
367366 * Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
368367 * when the child-workflow completes.
369368 *
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.
371370 *
372371 * @param name the name of the workflow to invoke
373372 * @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)
375374 */
376375 default Task <Void > callChildWorkflow (String name ) {
377376 return this .callChildWorkflow (name , null );
@@ -381,7 +380,7 @@ default Task<Void> callChildWorkflow(String name) {
381380 * Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
382381 * when the child-workflow completes.
383382 *
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.
385384 *
386385 * @param name the name of the workflow to invoke
387386 * @param input the serializable input to send to the child-workflow
@@ -395,7 +394,7 @@ default Task<Void> callChildWorkflow(String name, Object input) {
395394 * Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
396395 * when the child-workflow completes.
397396 *
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.
399398 *
400399 * @param name the name of the workflow to invoke
401400 * @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
411410 * Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
412411 * when the child-workflow completes.
413412 *
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.
415414 *
416415 * @param name the name of the workflow to invoke
417416 * @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
428427 * Asynchronously invokes another workflow as a child-workflow and returns a {@link Task} that completes
429428 * when the child-workflow completes.
430429 *
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.
432431 *
433432 * @param name the name of the workflow to invoke
434433 * @param input the serializable input to send to the child-workflow
435434 * @param instanceID the unique ID of the child-workflow
436435 * @param options additional options that control the execution and processing of the activity
437436 * @return a new {@link Task} that completes when the child-workflow completes or fails
438437 */
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 ) {
440439 return this .callChildWorkflow (name , input , instanceID , options , Void .class );
441440 }
442441
@@ -478,7 +477,7 @@ default Task<Void> callChildWorkflow(String name, Object input, String instanceI
478477 <V > Task <V > callChildWorkflow (String name ,
479478 @ Nullable Object input ,
480479 @ Nullable String instanceID ,
481- @ Nullable TaskOptions options ,
480+ @ Nullable WorkflowTaskOptions options ,
482481 Class <V > returnType );
483482
484483 /**
0 commit comments