Package sos.spooler

Examples of sos.spooler.Order.params()


      command = JobSchedulerManagedObject.replaceVariablesInCommand(command, orderPayload, getLogger());

            // replace order-specific placeholders
      if(orderJob) {       
        order = spooler_task.order();
        realOrderParams = order.params();
        command = command.replaceAll("\\$\\{scheduler_order_id\\}" , order.id());
        command = command.replaceAll("\\$\\{scheduler_order_managed_id\\}" , "0");
        this.getLogger().info("executing database statement(s) for managed order [" + order.id() + "]: " + command);
      } else {
        this.getLogger().info("executing database statement(s): " + command);
View Full Code Here


      Variable_set objJobOrOrderParameters = spooler.create_variable_set();
      objJobOrOrderParameters = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        Order order = spooler_task.order();
        if (order.params() != null)
          objJobOrOrderParameters.merge(order.params());
      }

      objJobOrOrderParams = objJobOrOrderParameters;
      logger.debug("Number of Params found for Job or Order is : " + objJobOrOrderParameters.count());
View Full Code Here

      objJobOrOrderParameters = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        Order order = spooler_task.order();
        if (order.params() != null)
          objJobOrOrderParameters.merge(order.params());
      }

      objJobOrOrderParams = objJobOrOrderParameters;
      logger.debug("Number of Params found for Job or Order is : " + objJobOrOrderParameters.count());
      return objJobOrOrderParameters;
View Full Code Here

//      Variable_set params = spooler.create_variable_set();
      Variable_set params = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        order = spooler_task.order();
        if (order.params() != null)
          params.merge(order.params());
      }
      return params;
    }
    catch (Exception e) {
View Full Code Here

      Variable_set params = spooler_task.params();

      if (spooler_task.job().order_queue() != null) {
        order = spooler_task.order();
        if (order.params() != null)
          params.merge(order.params());
      }
      return params;
    }
    catch (Exception e) {
      String strM = String.format(Messages.getMsg("JSJ-E-100"), e.getMessage());
View Full Code Here

    if (spooler_task.params() != null) {
      spooler_task.params().set_var(pstrKey, pstrValue);
    }
    if (spooler_task.order() != null) {
      Order order = spooler_task.order();
      if (order.params() != null) {
        order.params().set_var(pstrKey, pstrValue);
      }
    }
    if (objJobOrOrderParams != null) {
      objJobOrOrderParams.set_var(pstrKey, pstrValue);
View Full Code Here

      spooler_task.params().set_var(pstrKey, pstrValue);
    }
    if (spooler_task.order() != null) {
      Order order = spooler_task.order();
      if (order.params() != null) {
        order.params().set_var(pstrKey, pstrValue);
      }
    }
    if (objJobOrOrderParams != null) {
      objJobOrOrderParams.set_var(pstrKey, pstrValue);
    }
View Full Code Here

      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);
      }
      String connectionName = mergedParams.var("database_connection");
     
      // check if job uses ProcessDatabaseJob Parameters:
View Full Code Here

            try { // to fetch parameters from orders that have precedence over job parameters
                params = spooler_task.params();
               
                if (spooler_task.job().order_queue() != null) {
                    order = spooler_task.order();
                    if ( order.params() != null)
                      params.merge(order.params());
                }
               
                // get basic authentication parameters
                this.getBaseParameters();
View Full Code Here

                params = spooler_task.params();
               
                if (spooler_task.job().order_queue() != null) {
                    order = spooler_task.order();
                    if ( order.params() != null)
                      params.merge(order.params());
                }
               
                // get basic authentication parameters
                this.getBaseParameters();
               
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.