code: protected void initScheduledJobObject() {
  
          Object o;
  
          boolean setActive = false;
  
          if (CmsStringUtil.isEmpty(getParamAction())
              || CmsDialog.DIALOG_INITIAL.equals(getParamAction())
              || DIALOG_COPYJOB.equals(getParamAction())) {
              // this is the initial dialog call
              if (CmsStringUtil.isNotEmpty(getParamJobid())) {
                  // edit or copy an existing job, get the job object from manager
                  CmsScheduledJobInfo job = OpenCms.getScheduleManager().getJob(getParamJobid());
                  // clone resets the active flag!
                  o = job.clone();
                  setActive = job.isActive();
              } else {
                  // create a new job for the new job dialog
                  o = null;
              }
          } else {
              // this is not the initial call, get the job object from session
              o = getDialogObject();
          }
  
          if (!(o instanceof CmsScheduledJobInfo)) {
              // create a new job info object
              m_jobInfo = new CmsScheduledJobInfo();
              m_jobInfo.setContextInfo(new CmsContextInfo());
          } else {
              // reuse job info object stored in session
              m_jobInfo = (CmsScheduledJobInfo)o;
          }
  
          if (setActive) {
              // initial call of edit an existing job, set active state of cloned job
              m_jobInfo.setActive(true);
          }
  
          if (DIALOG_COPYJOB.equals(getParamAction())) {
              // initial call of copy job action, clear the job id of the cloned job
              m_jobInfo.clearId();
          }
      }
docs: Initializes the scheduled job object to work with depending on the dialog state and request parameters.<p>
  
  Three initializations of the scheduled job object on first dialog call are possible:
  <ul>
  <li>edit an existing scheduled job</li>
  <li>create a new scheduled job</li>
  <li>copy an existing scheduled job and edit it</li>
  </ul>