code: protected Object[] setupSubmitFaxJobInput(FaxJob faxJob)
      {
          //init list
          List<Object> inputList=new LinkedList<Object>();
          
          //set fax server information
          inputList.add(this.faxServerName);
  
          //set fax values
          File file=faxJob.getFile();
          inputList.add(file);
          String documentName=faxJob.getProperty(FaxJobExtendedPropertyConstants.DOCUMENT_NAME_FAX_JOB_PROPERTY_KEY.toString(),null);
          if((documentName==null)||(documentName.length()==0))
          {
              documentName=file.getName();
          }
          inputList.add(documentName);
  
          if(this.useWin2kAPI)
          {
              //set target information
              inputList.add(faxJob.getTargetAddress());
              inputList.add(faxJob.getTargetName());
  
              //set sender information
              inputList.add(faxJob.getSenderName());
              inputList.add(faxJob.getSenderFaxNumber());
          }
          else
          {
              FaxJobPriority priority=faxJob.getPriority();
              String valueStr="fptNORMAL";
              if(priority!=null)
              {
                  switch(priority)
                  {
                      case LOW_PRIORITY:
                          valueStr="fptLOW";
                          break;
                      case MEDIUM_PRIORITY:
                          valueStr="fptNORMAL";
                          break;
                      case HIGH_PRIORITY:
                          valueStr="fptHIGH";
                          break;
                  }
              }
              inputList.add(valueStr);
  
              //set target information
              inputList.add(faxJob.getTargetAddress());
              inputList.add(faxJob.getTargetName());
  
              //set sender information
              inputList.add(faxJob.getSenderName());
              inputList.add(faxJob.getSenderFaxNumber());
              inputList.add(faxJob.getSenderEmail());
          }
          
          //convert to array
          int size=inputList.size();
          Object[] input=inputList.toArray(new Object[size]);
          
          return input;
      }
docs: This function creates an input array with the needed info
  to submit a new fax job based on the provided data.
  
  @param   faxJob
  The fax job object containing the needed information
  @return  The submit fax job script input