java实现的可配置的工作流引擎,采用jsp+javabean实现
源代码在线查看: orgunitelement.java
package com.hongsoft.res.pojo;
import org.hibernate.Session;
import com.hongsoft.res.database.ResHibernateFactory;
public class OrgUnitElement extends ResObjectElement {
private OrgUnit ou = null;
public OrgUnitElement(ResObjectElement element){
super(element);
}
/**
* 获取该Element相应的组织对象
* @return OrgUnit
*/
public OrgUnit getOrgUnit(Session session)throws ResException{
try
{
if(ou==null)
ou=ResHibernateFactory.createOrgUnitHibernate().getOrgUnit(session,this.getID());
}
catch(Exception e)
{
e.printStackTrace();
}
return ou;
}
}