code: public FaxJobStatus getFaxJobStatus(FaxClientSpi faxClientSpi,ProcessOutput processOutput)
      {
          //get output
          String output=WindowsFaxClientSpiHelper.getOutputPart(processOutput,Fax4jExeConstants.FAX_JOB_STATUS_OUTPUT_PREFIX.toString());
  
          FaxJobStatus faxJobStatus=null;
          if(output!=null)
          {
              //get fax job status
              faxJobStatus=WindowsFaxClientSpiHelper.getFaxJobStatusFromWindowsFaxJobStatusString(output);
          }
  
          return faxJobStatus;
      }
docs: This function extracts the fax job status from the process output.
  
  @param   faxClientSpi
  The fax client SPI
  @param   processOutput
  The process output
  @return  The fax job status