try {
Workflow workflow = repo.getWorkflowById(workflowId);
return XmlRpcStructFactory.getXmlRpcWorkflow(workflow);
} catch (Exception e) {
e.printStackTrace();
throw new RepositoryException(
"Exception getting workflow by id from the repository: Message: "
+ e.getMessage());
}
}