Package org.apache.slide.projector.engine

Examples of org.apache.slide.projector.engine.Job


            jobParameter.put(Dispose.STORE, new StringValue(Store.stores[Store.CACHE]));
            jobParameter.put(Dispose.KEY, new StringValue(uri.toString()));
            EventExpression expression = new EventExpression("Update");
            expression.addProperty(EventExpression.DEPTH, "0");
            expression.addProperty(EventExpression.URI, uri.toString());
            Scheduler.getInstance().registerJob(new Job(context.getProcessId()+":"+context.getStep(), new URIValue("dispose"), expression, expression, jobParameter, false, false));
      Scheduler.getInstance().saveJobs();
        }
        resultEntries.put(SimpleProcessor.OUTPUT, output);
        // build url to activate this processor on top level
        resultEntries.put(URL, new StringValue(url));
View Full Code Here


      Expression remainingExpression = ExpressionFactory.create(remainingCondition.getRootElement());
      Expression initialExpression = ExpressionFactory.create(initialCondition.getRootElement());
      Processor jobProcessor = ProcessorManager.getInstance().getProcessor(jobUri);
      ProcessorManager.prepareValues(jobProcessor.getParameterDescriptors(), jobParameters, context);
      String processorId = context.getProcessId();
      Job job;
      if ( processorId == null ) {
        job = new Job(context.getStep(), jobUri, initialExpression, remainingExpression, jobParameters, repeatJob, persistentJob);
      } else {
        job = new Job(context.getProcessId()+":"+context.getStep(), jobUri, initialExpression, remainingExpression, jobParameters, repeatJob, persistentJob);
      }
      Scheduler.getInstance().registerJob(job);
      Scheduler.getInstance().saveJobs();
      return Result.OK;
  }
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.engine.Job

Copyright © 2018 www.massapicom. 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.