code: public ProcessInstance getProcessInstance(Long procInstId)
      throws ProcessException, DataAccessException {
          TransactionWrapper transaction = null;
          EngineDataAccessDB edao = new EngineDataAccessDB();
          try {
              transaction = edao.startTransaction();
              return edao.getProcessInstance(procInstId);
  
          } catch (SQLException e) {
              throw new ProcessException(0, "Failed to get process instance", e);
          } finally {
              edao.stopTransaction(transaction);
          }
      }
docs: Returns the ProcessInstance identified by the passed in Id
  
  @param procInstId
  @return ProcessInstance