public void beforeExecution(WorkflowContext context) throws WorkflowException { Long processId = context.getInstanceId(); IZcEbBaseServiceDao zcEbBaseServiceDao = (IZcEbBaseServiceDao) SpringContext.getBean("zcEbBaseServiceDao"); SfEntrust evalution = (SfEntrust) zcEbBaseServiceDao.queryObject( "com.ufgov.zc.server.sf.dao.SfEntrustMapper.selectByProcessinstid", new BigDecimal(processId.longValue())); if (evalution == null || evalution.getJdFzr() == null) { throw new WorkflowException("请指定鉴定负责人"); } }