Package gri.tasks.java.xml

Examples of gri.tasks.java.xml.FunctionXMLParser


      System.out.println();
    }
  }
 
  public static TaskManager createTaskManager() throws Exception {
    FunctionXMLParser parser = new FunctionXMLParser();
    TaskCollection tasks = parser.parseTaskCollection(new java.io.File("incava-diff.xml"));
    return new BasicTaskManager(tasks);
  }
View Full Code Here


    /**
     * Performs the same function as in test2() except this time we load the
     * task configuration from an XML file rather than configure it manually.
     */
    public static void test3() throws Exception {
        FunctionXMLParser parser = new FunctionXMLParser();
        List functions = parser.parseFunctionEntries(new File("files/TestClass.xml"));
        FunctionEntry entry = (FunctionEntry)functions.get(0);
       
        Map inputs = new HashMap();
        inputs.put("message", "yo dude");
        inputs.put("prefix", "lalala");
View Full Code Here

  public static TaskCollection loadTaskEntries() throws Exception {
    String fileName = "files/incava-diff.xml";
    loadJar(new File("files/incava-diff.jar"));

    FunctionXMLParser parser = new FunctionXMLParser();
    List functionEntries = parser.parseFunctionEntries(new File(fileName));

    /*
    //workflow:
    TaskEntry entry1 = (TaskEntry)functions.get(functions.size() - 4);
    TaskEntry entry2 = (TaskEntry)functions.get(functions.size() - 3);
View Full Code Here

    }
   
    protected static TaskProvider loadTaskProvider() throws Exception {
  String fileName = "../Tasks/incava-diff.xml";
       
        FunctionXMLParser parser = new FunctionXMLParser();
        List entries = parser.parseFunctionEntries(new File(fileName));
       
       
        //add workflow
        if (true) {
            Map taskFactories = new HashMap();
View Full Code Here

        super(new BorderLayout());
       
        //String fileName = "config.xml";
        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();
View Full Code Here

TOP

Related Classes of gri.tasks.java.xml.FunctionXMLParser

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.