public Object doInHibernate(Session arg0) throws HibernateException, SQLException {
Criteria criteria = arg0.createCriteria(ProcessInstance.class);
criteria.add(Expression.eq("parentTaskInstanceId", taskInstanceId));
Criterion cri1 = Expression.eq("state", new Integer(IProcessInstance.INITIALIZED));
Criterion cri2 = Expression.eq("state", new Integer(IProcessInstance.RUNNING));
// Criterion cri3 = Expression.eq("state", new Integer(IProcessInstance.SUSPENDED));
Criterion cri_or = Expression.or(cri1, cri2);
// Criterion cri_or = Expression.or(cri_tmp, cri3);
criteria.add(cri_or);
ProjectionList prolist = Projections.projectionList();