//workflow.doAction(id, availableActionId, Collections.EMPTY_MAP);
}
Map map = new HashMap();
map.put("userName", "Mattias");
workflow.doAction(id, 1, map);
actions = workflow.getAvailableActions(id, null);
logger.info("actions:" + actions.length);
wd = workflow.getWorkflowDescriptor(workflow.getWorkflowName(id));