request.setExecutionStartToCloseTimeout(FlowHelpers.secondsToDuration(startParameters.getExecutionStartToCloseTimeout()));
request.setTaskStartToCloseTimeout(FlowHelpers.secondsToDuration(startParameters.getTaskStartToCloseTimeoutSeconds()));
request.setTagList(startParameters.getTagList());
String taskList = startParameters.getTaskList();
if (taskList != null && !taskList.isEmpty()) {
request.setTaskList(new TaskList().withName(taskList));
}
request.setWorkflowId(startParameters.getWorkflowId());
request.setWorkflowType(startParameters.getWorkflowType());
Run result = service.startWorkflowExecution(request);