String workEffortId = workEffort.getString("workEffortId");
if (workEffort.getString("currentStatusId").equals("WF_RUNNING")) {
Debug.logInfo("WF is running; trying to abort", module);
WorkflowClient client = new WorkflowClient(dispatcher.getDispatchContext());
try {
client.abortProcess(workEffortId);
} catch (WfException e) {
Debug.logError(e, "Problem aborting workflow", module);
return false;
}
return true;