result.put(ModelService.ERROR_MESSAGE, "You do not have permission to access this workflow");
return result;
}
try {
WfProcess process = WfFactory.getWfProcess(delegator, workEffortId);
process.abort();
} catch (WfException we) {
we.printStackTrace();
result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_ERROR);
result.put(ModelService.ERROR_MESSAGE, we.getMessage());
}