Package org.openbp.server.context

Examples of org.openbp.server.context.TokenContext


  @Test
  public void performSimpleProcessTest()
    throws Exception
  {
    // Create the process context and start the process
    TokenContext token = createToken();
    getProcessFacade().startToken(token, "/TestCase/RollbackActivityTest.Start", null);

    // Note: This should be done by some worker thread; for the test case, we do it right here.
    getProcessFacade().executePendingContextsInThisThread();
  }
View Full Code Here


  {
    System.out.println();
    System.out.println("Running " + startRef);

    // Create the process context and start the process
    TokenContext token = createToken();
    getProcessFacade().startToken(token, startRef, null);
    getProcessFacade().executePendingContextsInThisThread();

    // The first workflow node made us stop here
    assertCurrentNode(token, finalNodeName);
View Full Code Here

  @Test
  public void performSimpleProcessTest()
    throws Exception
  {
    // Create the process context and start the process
    TokenContext token = createToken();
    getProcessFacade().startToken(token, "/TestCase/RollbackTest.Start", null);

    // Note: This should be done by some worker thread; for the test case, we do it right here.
    getProcessFacade().executePendingContextsInThisThread();
  }
View Full Code Here

    // Prepare the input parameters of the process
    Map<String, Object> inputParams = new HashMap<String, Object>();
    inputParams.put("InputValue", STARTVALUE);

    // Create the process context and start the process
    TokenContext token = createToken();
    token.createProcessVariable("ExternalValue", true);
    token.setProcessVariableValue("ExternalValue", EXTVALUE);
    getProcessFacade().startToken(token, STARTREF, inputParams);

    // Note: This should be done by some worker thread; for the test case, we do it right here.
    getProcessFacade().executePendingContextsInThisThread();
View Full Code Here

TOP

Related Classes of org.openbp.server.context.TokenContext

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.