Package de.scoopgmbh.copper.tranzient

Examples of de.scoopgmbh.copper.tranzient.TransientScottyEngine.run()


     
      final WorkflowInstanceDescr<String> descr = new WorkflowInstanceDescr<String>("de.scoopgmbh.copper.test.ExceptionHandlingTestWF");
      descr.setId("1234456");
      descr.setData(data);
     
      engine.run(descr);
     
      Thread.sleep(1000L);
     
      WorkflowInfo info = engine.queryWorkflowInstance(descr.getId());
     
View Full Code Here


     
      final WorkflowInstanceDescr<String> descr = new WorkflowInstanceDescr<String>("de.scoopgmbh.copper.test.IssueClassCastExceptionWorkflow3");
      descr.setId("1234456");
      descr.setData(data);
     
      engine.run(descr);
     
      Thread.sleep(1000L);
     
      WorkflowInfo info = engine.queryWorkflowInstance(descr.getId());
     
View Full Code Here

   
    try {
      SwitchCaseTestData data = new SwitchCaseTestData();
      data.testEnumValue = TestEnum.C;
      data.asyncResponseReceiver = new BlockingResponseReceiver<Integer>();
      engine.run("de.scoopgmbh.copper.test.SwitchCaseTestWF", data);
      data.asyncResponseReceiver.wait4response(5000L);
      assertEquals(0,data.asyncResponseReceiver.getResponse().intValue());
    }
    finally {
      context.close();
View Full Code Here

    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      BlockingResponseReceiver<Integer> brr = new BlockingResponseReceiver<Integer>();
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.WaitInMethodTestTransientWorkflow", brr);
      brr.wait4response(5000L);
      assertEquals(1,brr.getResponse().intValue());
    }
    finally {
      context.close();
View Full Code Here

    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      BlockingResponseReceiver<Integer> brr = new BlockingResponseReceiver<Integer>();
      engine.run(wfClassname, brr);
      synchronized (response) {
        if (response[0] == -1) {
          response.wait(30000);
        }
      }
View Full Code Here

    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      final BlockingResponseReceiver<Integer> brr = new BlockingResponseReceiver<Integer>();
      engine.run("de.scoopgmbh.copper.test.tranzient.classhierarchy.DerivedDerived", brr);
      brr.wait4response(30000);
      assertEquals(10, brr.getResponse().intValue());
    }
    finally {
      context.close();
View Full Code Here

    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      final CompletionIndicator data = new CompletionIndicator();
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.IssueClassCastExceptionWorkflow", data);
     
      Thread.sleep(2500);
     
      assertTrue(data.done);
      assertFalse(data.error);
View Full Code Here

      Thread.sleep(10);
      assertFalse(brr.isResponseReceived());
     
      processorPool.suspend();
     
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.NopTransientWorkflow", brr);

      brr.wait4response(100L);
     
      assertFalse(brr.isResponseReceived());
View Full Code Here

    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      BlockingResponseReceiver<Integer> brr = new BlockingResponseReceiver<Integer>();
      engine.run("de.scoopgmbh.copper.test.tranzient.simple.SimpleTransientWorkflow", brr);
      synchronized (response) {
        if (response[0] == -1) {
          response.wait(30000);
        }
      }
View Full Code Here

    final TransientScottyEngine engine = (TransientScottyEngine) context.getBean("transientEngine");
   
    assertEquals(EngineState.STARTED,engine.getEngineState());
   
    try {
      engine.run(new WorkflowInstanceDescr<String>("de.scoopgmbh.copper.test.tranzient.simple.VerySimpleTransientWorkflow", "data", "singleton", null,
          null));
      engine.run(new WorkflowInstanceDescr<String>("de.scoopgmbh.copper.test.tranzient.simple.VerySimpleTransientWorkflow", "data", "singleton", null,
          null));
    }
    finally {
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.