code: @Override
  	public TaskBase getTask(String processDefinitionName, Long taskid) {
  		ProcessDefinition pd = getProcessDefinition(processDefinitionName);
  		if (pd == null) {
  			throw new WorkflowException("Could not find active process for "+processDefinitionName);
  		}
  		TaskBase task = getTask(pd,taskid);
  		if (task == null) {
  			throw new WorkflowException("Could not find task for "+processDefinitionName+":"+taskid);
  		}
  		return task;
  	}
docs: /* (non-Javadoc)
  @see nz.co.senanque.workflow.WorkflowManager#getTask(java.lang.String, java.lang.Long)