Package sos.spooler

Examples of sos.spooler.Variable_set.merge()


          } else {
            // parallel transfer for order job
            while (iterator.hasNext()) {
              File fileName = (File)iterator.next();
              Variable_set newParams = spooler.create_variable_set();
              if (spooler_task.params() != null) newParams.merge(params);

              newParams.set_var("ftp_file_path", fileName.getCanonicalPath());
              newParams.set_var("ftp_parent_order_id", spooler_task.order().id());
              newParams.set_var("ftp_order_self_destruct", "1");
View Full Code Here


  private Variable_set getParameters() throws Exception {
    try {      
      Variable_set params = spooler.create_variable_set();
      //Parameter auslesen
      if (spooler_task.params() != null)
        params.merge(spooler_task.params());

      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());

      return params;
View Full Code Here

      //Parameter auslesen
      if (spooler_task.params() != null)
        params.merge(spooler_task.params());

      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());

      return params;
    } catch (Exception e) {
      throw new Exception("error occurred reading Patameter: " + e.getMessage());
    }
View Full Code Here

       
    try {
     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null) {
        params.merge(spooler_task.order().params());
      }
     
      // mandatory parameters
View Full Code Here

     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null) {
        params.merge(spooler_task.order().params());
      }
     
      // mandatory parameters
      String fileName    = getParam(params,"filename",true);
      String command     = getParam(params,"command",true);  
View Full Code Here

   
    try {
     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      // mandatory parameters
      name = "file";
View Full Code Here

     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      // mandatory parameters
      name = "file";
      if ( params.value("file") != null && params.value("file").length()>0 ) {       
        file = params.value("file");
View Full Code Here

   
    try {
     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      // mandatory parameters
      name = "file";
View Full Code Here

     
      // Job oder Order
      Variable_set params = spooler.create_variable_set();
      if (spooler_task.params() != null) params.merge(spooler_task.params());
      if (spooler_job.order_queue() != null && spooler_task.order().params() != null)
        params.merge(spooler_task.order().params());
     
      // mandatory parameters
      name = "file";
      if ( params.var(name)!=null && params.var(name).length()>0 )       
        file = params.var(name);
View Full Code Here

       
        String managedVersion = job.spooler.var("scheduler_managed_jobs_version");
      if (managedVersion==null || managedVersion.length()==0) managedVersion = "1";
      job.spooler_log.debug6("scheduler_managed_jobs_version: "+managedVersion);
      Variable_set mergedParams = job.spooler.create_variable_set();
      mergedParams.merge(taskParams);
      if(job.spooler_task.job().order_queue()!=null){
        order = job.spooler_task.order();
        orderPayload = order.params();
        mergedParams.merge(orderPayload);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.