@PreAuthorize("hasRole('WORKFLOW_DEF_READ')")
@RequestMapping(method = RequestMethod.GET, value = "/definition")
@Transactional(readOnly = true)
public WorkflowDefinitionTO getDefinition() throws WorkflowException {
WorkflowDefinitionTO result = wfAdapter.getDefinition();
auditManager.audit(Category.workflow, WorkflowSubCategory.getDefinition, Result.success,
"Successfully got workflow definition");
return result;