private void updateProcessLog(long processInstanceId) {
Session session = HibernateUtil.getSessionFactory().getCurrentSession();
session.beginTransaction();
ProcessInstanceLog log = (ProcessInstanceLog) session.load(ProcessInstanceLog.class, processInstanceId);
log.setEnd(new Date());
session.update(log);
session.getTransaction().commit();
}
private void addNodeEnterLog(long processInstanceId, String processId, String nodeInstanceId, String nodeId) {
NodeInstanceLog log = new NodeInstanceLog(NodeInstanceLog.TYPE_ENTER, processInstanceId, processId, nodeInstanceId, nodeId);