builder pattern

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
This commit is contained in:
Cassandra Coyle 2025-08-06 12:43:54 -05:00 committed by Javier Aliaga
parent 869cb83c35
commit 613dfb014e
1 changed files with 5 additions and 1 deletions

View File

@ -246,7 +246,11 @@ public class DefaultWorkflowContext implements WorkflowContext {
RetryPolicy retryPolicy = toRetryPolicy(options.getRetryPolicy()); RetryPolicy retryPolicy = toRetryPolicy(options.getRetryPolicy());
RetryHandler retryHandler = toRetryHandler(options.getRetryHandler()); RetryHandler retryHandler = toRetryHandler(options.getRetryHandler());
return new TaskOptions(retryPolicy, retryHandler, options.getAppId()); return TaskOptions.builder()
.retryPolicy(retryPolicy)
.retryHandler(retryHandler)
.appID(options.getAppId())
.build();
} }
/** /**