Examples of processContext()


Examples of common.WrappedProcess.processContext()

  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  proc.start();
  // Wait for completion
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  assertTrue(((String)data.get("TransitionPath"))
       .equals("PATH:act1:sub_act1:act3"));
  procDir.removeProcess(proc.getWfProcess());
  defDir.removeProcessDefinition("SystemTest", "withSimpleSub")
  defDir.removeProcessDefinition("SystemTest", "simpleSub")
View Full Code Here

Examples of common.WrappedProcess.processContext()

  //WfProcess proc = mgr.createProcess(requester);
  WrappedProcess proc = new WrappedProcess(mgr.createProcess(requester));
  proc.start();
  // Wait for completion
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  assertTrue(((String)data.get("sub1Completed"))
       .equals("OK"));
  assertTrue(((String)data.get("sub2Completed"))
       .equals("OK"));
  procDir.removeProcess(proc.getWfProcess());
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processContext()

      Process process = (Process)createProcess("N1", "N2", cont);
      process.start();
      Thread.sleep(5000);

      // get processdata
      ProcessData data = process.processContext();
      Object value = data.get("result");
      if (value != null) {
    SAXEventBufferImpl myBuffer
        = (SAXEventBufferImpl)value;
    TransformerFactory tf
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processContext()

      Process process = (Process)createProcess
    ("actParamTests", "jelly-test1", cont);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      SAXEventBuffer res = (SAXEventBuffer)
    process.processContext().get ("result");
      SAXHandler sh = new SAXHandler ();
      res.emit (sh);
      Document resDoc = sh.getDocument();
      XPath xpath = new JDOMXPath("/result/inserted/root/element1/@attr1");
      String val = xpath.stringValueOf(resDoc);
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processContext()

            Process process = (Process)createProcess
                ("actParamTests", "testE4xActParam", cont);
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            SAXContentBuffer res = (SAXContentBuffer)
                process.processContext().get ("result");
            Node resRoot = res.toW3cDom();
            Node fc = resRoot.getFirstChild();
            assertTrue (fc.toString(), fc.getLocalName().equals("Hello"));
            Node child = fc.getFirstChild();
            String data = "";
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processContext()

      Process process = (Process)createProcess
    ("jelly-test", "jelly-test1", cont);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      SAXEventBuffer res = (SAXEventBuffer)
    process.processContext().get ("result");
      SAXHandler sh = new SAXHandler ();
      res.emit (sh);
      Document resDoc = sh.getDocument();
      XPath xpath = new JDOMXPath("/result/inserted/root/element1/@attr1");
      String val = xpath.stringValueOf(resDoc);
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processContext()

      Process process = (Process)createProcess("N1", "N2", cont);
      process.start();
      Thread.sleep(5000);

      // get processdata
      ProcessData data = process.processContext();
      Object value = data.get("result");
      if (value != null) {
    SAXEventBufferImpl myBuffer
        = (SAXEventBufferImpl)value;
    TransformerFactory tf
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.processContext()

  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 3);

  // Test access to context info via activity
  assertTrue(proc.steps().size() > 0);
  WfActivity act = (WfActivity)proc.steps().toArray()[0];
  data = act.processContext();
  assertTrue(((Boolean)data.get("packageBooleanData")).booleanValue());
  assertTrue(((String)data.get("testString")).equals("WfMOpen"));
  assertTrue((((String)data.get("packageStringData")) == null)
       || (((String)data.get("packageStringData")).equals("")));
  assertTrue(((Long)data.get("packageIntegerData")).intValue() == 3)
View Full Code Here

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

      Thread.sleep (500);
      Map pd = new HashMap ();
      pd.put ("message", "Hello world!");
      chan.sendMessage(pd);
      assertTrue (stateReached (recAct, "closed.completed"));
      pd = process.processContext();
      assertTrue ("Hello world!".equals(pd.get("lastMessage")));
      assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
  } finally {
            workflowService.release(chan);
View Full Code Here

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

      pd.put ("message", "Hello world!");
      chan.sendMessage(pd);
      Thread.sleep (500);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      pd = process.processContext();
      assertTrue ("Hello world!".equals(pd.get("lastMessage")));
      procDir.removeProcess(process);
  } finally {
            workflowService.release(chan);
      workflowService.release (procDefDir);
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.