protected void executeTask(Execution execution, String transition, String handler,
String actualHandler, Map<String, Object> map) {
map.put("transition", transition);
map.put("handler", handler);
map.put("actualHandler", actualHandler);
User user = execution.getSender();
Actor actor = is.getActor(user.getId());
if(actor != null) map.put("sender", actor.toString());
processEngine.getTaskService().complete(execution.getTask(), map);
//重新set一下结束时间
Date now = new Date();
execution.getHistory().setHandleDate(now);
dao.save(execution.getHistory());
}