code: @Transactional
  	public List<ProcessInstance> getActiveProcesses() {
  		if (log.isDebugEnabled()) {
  			getAllProcesses();
  		}
  		Query query = m_entityManager.createNamedQuery("ActiveProcesses");
  		@SuppressWarnings("unchecked")
  		List<ProcessInstance> result = query.getResultList();
  		if (log.isDebugEnabled()) {
  			for (ProcessInstance processInstance:result) {
  				log.debug("processInstanceId={} processName={} taskId={} status={}",processInstance.getId(),processInstance.getProcessDefinitionName(),processInstance.getTaskId(), processInstance.getStatus());
  			}
  			log.debug("found {} active processes",result.size());
  		}
  		return result;
  	}
docs: /* (non-Javadoc)
  @see nz.co.senanque.workflow.WorkflowDAO#getActiveProcesses()