}
DynamicWorkflowClientExternal getDynamicWorkflowClient(String workflowId, String runId) {
GenericWorkflowClientExternalImpl genericClient = new GenericWorkflowClientExternalImpl(endpoint.getSWClient(), configuration.getDomainName());
WorkflowExecution workflowExecution = new WorkflowExecution();
workflowExecution.setWorkflowId(workflowId != null ? workflowId : genericClient.generateUniqueId());
workflowExecution.setRunId(runId);
return new DynamicWorkflowClientExternalImpl(workflowExecution, null, endpoint.getStartWorkflowOptions(), null, genericClient);
}
private Object[] toArray(Object input) {