String taskList = options.getTaskList();
if (taskList != null && !taskList.isEmpty()) {
continueAsNewWorkflowExecutionParameters.setTaskList(taskList);
}
ChildPolicy childPolicy = options.getChildPolicy();
if (childPolicy != null) {
continueAsNewWorkflowExecutionParameters.setChildPolicy(childPolicy);
}
}
if (optionsOverride != null) {
Long executionStartToCloseTimeoutSeconds = optionsOverride.getExecutionStartToCloseTimeoutSeconds();
if (executionStartToCloseTimeoutSeconds != null) {
continueAsNewWorkflowExecutionParameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeoutSeconds);
}
Long taskStartToCloseTimeoutSeconds = optionsOverride.getTaskStartToCloseTimeoutSeconds();
if (taskStartToCloseTimeoutSeconds != null) {
continueAsNewWorkflowExecutionParameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeoutSeconds);
}
List<String> tagList = optionsOverride.getTagList();
if (tagList != null) {
continueAsNewWorkflowExecutionParameters.setTagList(tagList);
}
String taskList = optionsOverride.getTaskList();
if (taskList != null && !taskList.isEmpty()) {
continueAsNewWorkflowExecutionParameters.setTaskList(taskList);
}
ChildPolicy childPolicy = optionsOverride.getChildPolicy();
if (childPolicy != null) {
continueAsNewWorkflowExecutionParameters.setChildPolicy(childPolicy);
}
}