docs: @Override
      public boolean isJobInstancePurgeable(long jobInstanceId) {
          InstanceState instanceState = getJobInstance(jobInstanceId).getInstanceState();
  
          if (instanceState.equals(InstanceState.SUBMITTED)
              || instanceState.equals(InstanceState.JMS_QUEUED)
              || instanceState.equals(InstanceState.JMS_CONSUMED)
              || instanceState.equals(InstanceState.DISPATCHED)) {
              return false;
          } else {
              return true;
          }
      }