Package gri.tasks.managers

Examples of gri.tasks.managers.TaskEntry


    public Task createTask() {
        return config.createTask();
    }
   
    public TaskEntry createTaskEntry() {
      return new TaskEntry(
          getId(),
          createTask(),
          getTaskDescription());
    }
View Full Code Here


       
        //add workflow
        if (true) {
            Map taskFactories = new HashMap();
            for (int i=0; i<entries.size(); i++) {
          TaskEntry entry = (TaskEntry)entries.get(i);
          taskFactories.put(entry.getId(), entry.getTaskFactory());
            }
            entries.add(new WorkflowTask.Entry(taskFactories));
        }
       
        return new SimpleTaskProvider(entries);      
View Full Code Here

  /**
   * Returns a TaskEntry for the given task.  These are cached
   * after their first creation.
   */
  public TaskEntry getTaskEntry(String taskId) {
    TaskEntry entry = (TaskEntry)entries.get(taskId);
   
    if (entry == null) {
     
      ModuleFunction modFunc = getModuleFunction(taskId);
      if (modFunc == null)
        return null;
   
      synchronized(entries) {
       
        entry = (TaskEntry)entries.get(taskId);
        if (entry == null) { 
          TaskDescription desc = getTaskDescription(modFunc);
          GridpScriptTask task = new GridpScriptTask(modFunc.getFunction(), runScriptTask);
          entry = new TaskEntry(taskId, task, desc);
     
          entries.put(taskId, entry);
        }
       
      }
View Full Code Here

   
    return entry;
  }
 
  public Task getTask(String id) {
    TaskEntry entry = getTaskEntry(id);
    return entry == null ?
        null : entry.getTask();
  }
View Full Code Here

    TaskEntry entry = getTaskEntry(id);
    return entry == null ?
        null : entry.getTask();
  }
  public AsyncTask getAsyncTask(String id) {
    TaskEntry entry = getTaskEntry(id);
    return entry == null ?
        null : entry.getAsyncTask();
  }
View Full Code Here

    return entry == null ?
        null : entry.getAsyncTask();
  }
   
  public TaskDescription getTaskDescription(String id) {
    TaskEntry entry = getTaskEntry(id);
    return entry == null ?
        null : entry.getTaskDescription();
  }
View Full Code Here

    return entry == null ?
        null : entry.getTaskDescription();
  }
 
    public TaskDef getTaskDefinition(String id) {
      TaskEntry entry = getTaskEntry(id);
      return entry == null ?
          null : entry.getTask().getTaskDef();
    }
View Full Code Here


  public void addOption(Option option) {
    Object value = option.getValue();
    if (value instanceof TaskEntry) {
      TaskEntry entry = (TaskEntry)value;
      String groupName = taskGrouper.getTaskGroup(entry.getTaskDescription());

      GroupElement groupElem = new GroupElement(groupName);
      int index = super.lstValuesModel.indexOf(groupElem);
      if (index < 0) {
        lstValuesModel.addElement(groupElem);
View Full Code Here

        String fileName = "incava-diff.xml";
       
        FunctionXMLParser parser = new FunctionXMLParser();
        List functions = parser.parseFunctionEntries(new java.io.File(fileName));
        FunctionEntry function = (FunctionEntry)functions.get(2);
        TaskEntry taskEntry = function.createTaskEntry();
       
        this.task = taskEntry.getTask();
        TaskDef taskDef = task.getTaskDef();
       
        this.pnlTask = new ParameterPanel(taskDef.getInputsArray(), new InputParameterWidgetFactory());
        this.add(pnlTask, BorderLayout.CENTER);
       
View Full Code Here

TOP

Related Classes of gri.tasks.managers.TaskEntry

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.