Examples of Variable_set


Examples of sos.spooler.Variable_set

           
            currentJobChainName = spooler_task.order().job_chain().name();
            currentJobPath = spooler_job.name();
            currentJobPath = (currentJobPath.startsWith("/") ? currentJobPath : "/" + currentJobPath);
            currentNodeName = spooler_task.order().state();
            Variable_set orderParams = spooler_task.order().params();
            if (orderParams.var("sync_session_id")!=null) syncSessionId = orderParams.var("sync_session_id");
           
            if (spooler_task.job().order_queue() == null) {
                throw new Exception("this job cannot be used standalone but requires being operated by a job chain");
            }
           
            //siehe js-461
            if (orderParams.var("scheduler_sync_ready")!=null) syncReady = orderParams.var("scheduler_sync_ready").equals("true");
            if (syncReady) {
               spooler_log.info("js-461: Sync skipped");
               Order o = spooler_task.order();
               Variable_set resultParameters = spooler.create_variable_set();
               String[] parameterNames = o.params().names().split(";");
               for(int i=0; i<parameterNames.length; i++) {
                   if (!parameterNames[i].equals("scheduler_sync_ready")) {
                       resultParameters.set_var(parameterNames[i], o.params().value(parameterNames[i]));
                   }
               }
               o.set_params(resultParameters);
               return true;
            }
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.