Package gri.tasks.java.xml

Examples of gri.tasks.java.xml.FunctionEntry


     * 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");
        inputs.put("suffix", "xoxoxo");
       
        Task task = entry.createTaskEntry().getTask();
        Map outputs = task.execute(inputs);
       
        System.out.println(outputs.get("output"));
        System.out.println(outputs.get("value"));
    }
View Full Code Here


    functions.add(createWorkflowTask(new TaskEntry [] {entry1, entry2}));
     */
   
    List taskEntries = new ArrayList();
    for (int i=0; i<functionEntries.size(); i++) {
      FunctionEntry entry = (FunctionEntry)functionEntries.get(i);
      taskEntries.add(entry.createTaskEntry());
    }
   
    return new BasicTaskCollection(taskEntries);      
  }
View Full Code Here

        //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();
       
        this.pnlTask = new ParameterPanel(taskDef.getInputsArray(), new InputParameterWidgetFactory());
View Full Code Here

TOP

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

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.