Examples of Task


Examples of de.innovationgate.wgpublisher.scheduler.Task

        Iterator jobs = csConfig.getJobDefinitions().iterator();
        while (jobs.hasNext()) {
            JobDefinition job = (JobDefinition) jobs.next();
            String jobName = db.getDbReference() + "." + job.getName();
            try {
                Task task = null;
               
                if (job.getType() == JobDefinition.TYPE_TMLSCRIPTMODULE) {
                    ScriptTask scriptTask = new ScriptTask();
                    scriptTask.setCancelJobOnFail(true);
                    scriptTask.setDatabase(db.getDbReference());
                    scriptTask.setModule(job.getResource());
                    task = scriptTask;
                }
                else if (job.getType() == JobDefinition.TYPE_JAVA) {
                    JavaTask javaTask = new JavaTask();
                    javaTask.setClassName(job.getResource());
                    task = javaTask;
                }
                else {
                    getLog().error("Error adding job '" + jobName + "'. Unknown job type: " + job.getType());
                    continue;
                }
               
                task.setDescription(job.getDescription());
               
                JobSchedule schedule = null;
                if (job.getSchedule() != null && !job.getSchedule().trim().equals("")) {
                    schedule = new JobSchedule();
                    schedule.setEnabled(true);
View Full Code Here

Examples of de.matrixweb.smaller.common.Task

    final Set<String> resources = new ResourceScanner(getServletContext(),
        includes.split("[, ]"), excludes != null ? excludes.split("[, ]")
            : new String[] {}).getResources();
    final String options = getInitParameter("options");

    final Task task = new Task();
    task.setProcessor(processors);
    task.setIn(resources.toArray(new String[resources.size()]));
    task.setOut(new String[] { "output.js", "output.css" });
    task.setOptionsDefinition(options);
    final ProcessorFactory processorFactory = new JavaEEProcessorFactory();
    try {
      final VFS vfs = new VFS();
      try {
        vfs.mount(vfs.find("/"), new ServletFile(getServletContext(), "/"));
View Full Code Here

Examples of de.sebastianbenz.task.Task

  public boolean isFirst(final Task task) {
    Container _parent = task.getParent();
    EList<Content> _children = _parent.getChildren();
    Iterable<Task> tasks = Iterables.<Task>filter(_children, Task.class);
    Iterator<Task> _iterator = tasks.iterator();
    Task _next = _iterator.next();
    return Objects.equal(_next, task);
  }
View Full Code Here

Examples of de.timefinder.data.Task

        return evOut;
    }

    public Task toTask(IntervalInt simpleInt) {
        // TODO add duration to finishedDate -> use code in toInterval
        return new Task(simpleInt.toString(), toDateTime(settings.getTimeslotsPerWeek()));
    }
View Full Code Here

Examples of edu.neu.ccs.task.Task

  protected void initPlan(int id, User user, Agent agent) throws Exception {
    TaskEngine engine = agent.getEngine();
    TaskModelSet modelSet = engine.getModelSet();
    QName topName = new QName(modelSet.getDefaultModel().getURI(), top);
    TaskPlan topPlan = engine.newTaskPlan(topName);
    Task topTask = topPlan.getTask();
   
    for (Map.Entry<String, String> e : topInputs.entrySet())
      topTask.setSlotValueScript(e.getKey(), e.getValue(), "init agent");
   
    if ( ! user.isGuest()) {
      int userId = user.getId();
      Slot userSlot = topTask.getType().getSlotIfExists("user");
      if ((userSlot != null) && userSlot.isInput() && !topInputs.containsKey("user")) {
        if (userSlot.getType().equals("string"))
          topTask.setSlotValue("user", Integer.toString(userId));
        else if (userSlot.getType().equals("number"))
          topTask.setSlotValue("user", userId);
      }
    }
   
    Slot lastConvSlot = topTask.getType().getSlotIfExists("lastConversation");
    if ((lastConvSlot != null) &&
      lastConvSlot.isInput() &&
      lastConvSlot.getType().equals("number") &&
      !topInputs.containsKey("lastConversation")) {
     
      Conversation c = user.getLastConversation(id);
      topTask.setSlotValue("lastConversation", c==null ? null : c.getStart());
    }
   
    if (Bool.isFalse(topTask.isApplicable()))
      throw new IllegalArgumentException("task not applicable: " + topTask);
   
    List<String> undefs = topTask.getUndefinedInputs();
    if ( ! undefs.isEmpty())
      throw new IllegalArgumentException("undefined inputs: " + undefs);
   
    agent.setFocus(topPlan);
  }
View Full Code Here

Examples of fm.last.citrine.model.Task

    model.put("taskRuns", taskRuns);
    model.put("taskId", taskId);
    model.put("taskRunLogs", taskRunLogs);
    model.put("page", currentPage);

    Task task = taskManager.get(taskId);
    if (task != null) {
      model.put("taskName", task.getName());
    }

    if (taskRuns.size() == pageSize) { // a bit crude, but will do for now, should really compare with count(*)
      model.put("morepages", true);
    }
View Full Code Here

Examples of foxtrot.Task

 
  private class RunActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      try {
        getGlassPane().setVisible(true);
        Worker.post(new Task() {
          public Object run() throws ExecException {
            Log log = Log.getSwingLog(_configForm.getLogTextArea());
            log.clear();
            String path = _outfile.getPath();
            if (Util.WINDOWS_OS) {
View Full Code Here

Examples of gettasky.domain.Task

    {
        TaskStorage taskStorage = StorageFactory.getTaskStorage();
       
        if (taskStorage.isEmpty())
        {
            taskStorage.save(new Task("Buy some milk", Task.Priority.Medium, new String[] {"errand"}));
            taskStorage.save(new Task("Grow a beard", Task.Priority.Low, null));
            taskStorage.save(new Task("Check the post box", Task.Priority.High, new String[] {"errand", "weekly"}));
            taskStorage.save(new Task("Play tennis", Task.Priority.Low, new String[] {"exercise"}, true));
            taskStorage.save(new Task("Buy a cello bow", Task.Priority.Medium, new String[] {"online"}));         
        }
    }
View Full Code Here

Examples of gri.tasks.Task

      WorkflowUtil.orderTasks(taskStubs);
     
      //execute:
      for (int i=0; i<taskStubs.length; i++) {
        TaskStub taskStub = taskStubs[i];
        Task task = createTask(taskStub);
       
        Map inputs = taskStub.getInputs();
        inputs = WorkflowUtil.resolveReferencedInputs(inputs, wkfl);
       
        Map outputs = task.execute(inputs);
        taskStub.setOutputs(outputs);
      }
    }
View Full Code Here

Examples of hermes.browser.tasks.Task

     
   }

   public void start()
   {
      final Task task = new BrowseFIXFileTask(messageCache, istream, title);
     

      task.start();
   }
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.