long id = Long.parseLong(request.getParameter("id"));
String doString = request.getParameter("do");
if (doString != null && !doString.equals("")) {
int action = Integer.parseInt(doString);
wf.doAction(id, action, Collections.EMPTY_MAP);
}
int[] actions = wf.getAvailableActions(id);