Examples of processContext()


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

      pd.put ("message", b);
      chan.sendMessage(pd);
      Thread.sleep (500);
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
            pd = process.processContext();
            Object o = pd.get("lastXMLMessage");
            assertTrue (o != null);
            assertTrue (o instanceof SAXContentBuffer);
            Node recDoc = ((SAXContentBuffer)o).toW3cDom();
            assertTrue (recDoc instanceof Document);
View Full Code Here

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

    ("chabacc", "chabacc_test_send_self");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      ProcessData pd = process.processContext();
      assertTrue ("Hello world!".equals(pd.get("lastMessage")));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
      workflowService.release (procDir);
View Full Code Here

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

      process.start();
      pd = chan.receiveMessage();
      assertTrue ("Got: " + pd.get("message"),
      "Do you echo?".equals(pd.get("message")));
      assertTrue (stateReached (process, "closed.completed"));
      pd = process.processContext();
      assertTrue (pd.get("feedback").equals ("Got message"));
      // cleanup
      Iterator acts = process.activitiesInState("closed").iterator();
      assertTrue (acts.hasNext ());
      Activity act = null;
View Full Code Here

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

    ("timing", "simple_test");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      ProcessData pd = process.processContext();
      assertTrue ("EXPIRED".equals(pd.get("waitResult")));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
      workflowService.release (procDir);
View Full Code Here

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

    ("timing", "expired_test");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      ProcessData pd = process.processContext();
      assertTrue ("EXPIRED".equals(pd.get("waitResult")));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
      workflowService.release (procDir);
View Full Code Here

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

    ("timing", "cancel_test");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      ProcessData pd = process.processContext();
      assertTrue ("EXPIRED".equals(pd.get("wait2Result")));
      assertTrue ("CANCELED".equals(pd.get("wait1Result")));
      procDir.removeProcess(process);
  } finally {
      workflowService.release (procDefDir);
View Full Code Here

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

            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            SAXContentBuffer xmlRes = (SAXContentBuffer)
                process.processContext().get("XMLResult");
            Node resRoot = xmlRes.toW3cDom();
            Node fc = resRoot.getFirstChild();
            assertTrue (fc.toString(), fc.getLocalName().equals("Item"));
            assertTrue (fc.getAttributes().getNamedItem("Id")
                        .getNodeValue().equals("Start"));
View Full Code Here

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

            Node resRoot = xmlRes.toW3cDom();
            Node fc = resRoot.getFirstChild();
            assertTrue (fc.toString(), fc.getLocalName().equals("Item"));
            assertTrue (fc.getAttributes().getNamedItem("Id")
                        .getNodeValue().equals("Start"));
            assertTrue (process.processContext().get("Result").equals("Test"));
            procDir.removeProcess(process);
        } finally {
            workflowService.release (procDefDir);
            workflowService.release (procDir);
        }
View Full Code Here

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

            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testAUK");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            String s = (String)process.processContext().get("Result");
            assertTrue (s.startsWith("jstests/testAUK "));
            procDir.removeProcess(process);
        } finally {
            workflowService.release (procDefDir);
            workflowService.release (procDir);
View Full Code Here

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

            ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testJavaArg1");
            WfProcess process
                = pmgr.createProcess(new DefaultRequester (workflowService));
            process.start();
            assertTrue (stateReached (process, "closed.completed"));
            List l = (List)process.processContext().get("Result");
            assertTrue (l.size() == 1);
            assertTrue (((String)l.get(0)).equals("Hallo"));
            procDir.removeProcess(process);
        } finally {
            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.