Search in sources :

Example 1 with SLACriteria

use of org.compiere.sla.SLACriteria in project adempiere by adempiere.

the class MSLACriteria method newInstance.

//	getGoals
/**
	 * 	Create New Instance of SLA Criteria
	 *	@return instanciated class
	 *	@throws Exception
	 */
public SLACriteria newInstance() throws Exception {
    if (getClassname() == null || getClassname().length() == 0)
        throw new AdempiereSystemError("No SLA Criteria Classname");
    try {
        Class clazz = Class.forName(getClassname());
        SLACriteria retValue = (SLACriteria) clazz.newInstance();
        return retValue;
    } catch (Exception e) {
        throw new AdempiereSystemError("Could not intsnciate SLA Criteria", e);
    }
}
Also used : SLACriteria(org.compiere.sla.SLACriteria) AdempiereSystemError(org.compiere.util.AdempiereSystemError)

Aggregations

SLACriteria (org.compiere.sla.SLACriteria)1 AdempiereSystemError (org.compiere.util.AdempiereSystemError)1