Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfProcess.result()


    public void invokeTest13() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT13");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  for (Iterator it = map.keySet().iterator(); it.hasNext();) {
      String name = (String) it.next();
      if (name.equals("complexResult")) {
    SAXEventBufferImpl myBuffer
        = (SAXEventBufferImpl)map.get(name);
View Full Code Here


    public void invokeTest15() throws Exception {
  ProcessMgr pmgr = pdd.processMgr("st-testXSLT", "testXSLT15");
  WfProcess process = pmgr.createProcess(defaultRequester());
   process.start();
  assertTrue(stateReached(process, "closed.completed"));
   Map map = (Map)process.result();
  Date dt = (Date)map.get("datetime");
  assertTrue
      (dt.equals(XMLUtil.parseXsdDateTime("2005-12-14T14:15:16")));
        Double fv = (Double)map.get("floatval");
        assertTrue(fv.doubleValue() == 2005);
View Full Code Here

    public void addressBook() throws Exception {
  ProcessMgr pmgr4 = pdd.processMgr("st-testWSIF", "testWSIF4");
  WfProcess process4 = pmgr4.createProcess(defaultRequester());
   process4.start();
  Thread.sleep(30000);
   Map map = (Map)process4.result();
  for (Iterator it2 = map.keySet().iterator(); it2.hasNext();) {
      String name = (String) it2.next();
      System.out.println("name = " + name);
      if (name.equals("searchresult")) {
    String returnResult = (String)map.get(name);
View Full Code Here

    public void googleSearch() throws Exception {
  ProcessMgr pmgr3 = pdd.processMgr("st-testWSIF", "testWSIF3");
  WfProcess process3 = pmgr3.createProcess(defaultRequester());
   process3.start();
  Thread.sleep(30000);
   Map map = (Map)process3.result();
  for (Iterator it2 = map.keySet().iterator(); it2.hasNext();) {
      String name = (String) it2.next();
      System.out.println("name = " + name);
      if (name.equals("searchresult")) {
    String returnResult = (String)map.get(name);
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.