public void updateProcessHistoryStatus(String className, Long id, Integer status) {
final String hql = "UPDATE ProcessHistory SET flowStatus = :status WHERE instanceType=:instanceType and instancePk = :instancePk";
this.getSession().createQuery(hql).setInteger("status", status).setLong("instancePk", id)
.setString("instanceType", className).executeUpdate();
}