Package gri.tasks.managers

Examples of gri.tasks.managers.TaskDescription


   
    //description:
    System.out.println("Overview:");
    System.out.println("-----------------------------------");
   
    TaskDescription taskDesc = taskManager.getTaskDescription(id);
    System.out.println("Name: " + taskDesc.getName());
    System.out.println("Description: " + taskDesc.getDescription());
    System.out.println();
   
    //parameters:
    TaskDef taskDef = taskManager.getTaskDefinition(id);
    System.out.println(taskDef);
View Full Code Here


      typeWidget.setValue(null);
      packageWidget.setValue(null);
      //lblDescription.setText("");

      if (task != null) {
        TaskDescription desc = task.getTaskDescription();
        taskNameWidget.setValue(desc.getName());
        //lblDescription.setText(desc.getDescription());

        if (desc instanceof ExtendedTaskDescription) {
          ExtendedTaskDescription eDesc = (ExtendedTaskDescription)desc;
View Full Code Here

    if (task == null) {
      lblText.setText("");
      lblIcon.setIcon(null);
    }
    else {
      TaskDescription taskDesc = task.getTaskDescription();

      lblText.setText(taskDesc.getName());
      lblText.setToolTipText(taskDesc.getDescription());

      lblIcon.setIcon(iconManager.getTaskIcon(task));
    }

    updateUI();
View Full Code Here

   
    //description:
    System.out.println("Overview:");
    System.out.println("-----------------------------------");
   
    TaskDescription taskDesc = taskManager.getTaskDescription(id);
    System.out.println("Name: " + taskDesc.getName());
    System.out.println("Description: " + taskDesc.getDescription());
    System.out.println();
   
    //parameters:
    TaskDef taskDef = taskManager.getTaskDefinition(id);
    System.out.println(taskDef);
View Full Code Here

     * Returns the given named module
     */
    public TaskDescription getTaskDescription(String taskId) {
        //try to find cached description:
        if (cacheInfo) {
            TaskDescription description = (TaskDescription)taskDescriptions.get(taskId);
            if (description != null)
                return description;
        }
       
        //obtain description from service:
        try {
            String xml = service.getTaskDescription(taskId);
            Document doc = buildXML(xml);
            TaskDescription description = serializers.getTaskDescriptionSerializer()
                                                     .readDescription(doc.getRootElement());
           
            if (cacheInfo)
                taskDescriptions.put(taskId, description);
           
View Full Code Here

             .writeArray(taskList, elem);
       
        return serviceUtil.writeXML(elem);
    }
    public String getTaskDescription(String taskId) throws IOException {
        TaskDescription description = getJobManager().getTaskDescription(taskId);
       
        Element elem = new Element("description");
        serializers.getTaskDescriptionSerializer()
                   .write(description, elem);
        return serviceUtil.writeXML(elem);
View Full Code Here

   
      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

        elem.addContent(
          Util.createElement("description", description.getDescription()));
    }
    public TaskDescription readDescription(Element elem) {
       
        TaskDescription description = new TaskDescription();

        List children = elem.getChildren();
        Element child;
        for (int i=0; i<children.size(); i++) {
            child = (Element)children.get(i);
            String name = child.getName().toLowerCase();

            if (name.equals("name"))
                description.setName(child.getText());
            else if (name.equals("description"))
                description.setDescription(child.getText());
        }

        return description;
       
    }
View Full Code Here

      //ParameterizedTask task = job.getParameterizedTask();

      //header:
      TaskHeaderPanel header = new TaskHeaderPanel();
      TaskDescription taskDesc = job.getTaskDescription();
      if (taskDesc != null)
        header.setTaskDescription(taskDesc);
      AppStyles.applyStyle(header, "TaskHeaderPanel");

      Dimension dim = header.getPreferredSize();
View Full Code Here

             .writeArray(taskList, elem);
       
        return xmlUtil.writeXML(elem);
    }
    public String getTaskDescription(String taskId) throws IOException {
        TaskDescription description = getWorkflowManager().getTaskDescription(taskId);
       
        Element elem = new Element("description");
        serializers.getTaskDescriptionSerializer()
                   .write(description, elem);
        return xmlUtil.writeXML(elem);
View Full Code Here

TOP

Related Classes of gri.tasks.managers.TaskDescription

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.