throw new IllegalStateException("wokflowExecution is null");
}
else if (workflowExecution.getWorkflowId() == null) {
throw new IllegalStateException("wokflowId is null");
}
StartWorkflowExecutionParameters parameters = new StartWorkflowExecutionParameters();
parameters.setWorkflowType(workflowType);
parameters.setWorkflowId(workflowExecution.getWorkflowId());
String input = dataConverter.toData(arguments);
parameters.setInput(input);
parameters = parameters.createStartWorkflowExecutionParametersFromOptions(schedulingOptions, startOptionsOverride);
WorkflowExecution newExecution = genericClient.startWorkflow(parameters);
String runId = newExecution.getRunId();
workflowExecution.setRunId(runId);
}