Package de.scoopgmbh.copper.persistent

Examples of de.scoopgmbh.copper.persistent.PersistentScottyEngine.run()


    final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
    try {
      assertEquals(EngineState.STARTED,engine.getEngineState());

      for (int i=0; i<NUMB; i++) {
        engine.run(PersistentUnitTestWorkflow_NAME, DATA);
      }

      for (int i=0; i<NUMB; i++) {
        WorkflowResult x = backChannelQueue.dequeue(60, TimeUnit.SECONDS);
        assertNotNull(x);
View Full Code Here


    context.getBean(DatabaseDialect.class).setRemoveWhenFinished(false);
    final PersistentScottyEngine engine = context.getBean(PersistentScottyEngine.class);
    engine.startup();
    try {
      WorkflowInstanceDescr<String> desc = new WorkflowInstanceDescr<String>(PersistentUnitTestWorkflow_NAME, DATA, "DUPLICATE#ID", 1, null);
      engine.run(desc);
      engine.run(desc);
      org.junit.Assert.fail("expected an DuplicateIdException");
    }
    catch(DuplicateIdException e) {
      // ok
View Full Code Here

    final PersistentScottyEngine engine = context.getBean(PersistentScottyEngine.class);
    engine.startup();
    try {
      WorkflowInstanceDescr<String> desc = new WorkflowInstanceDescr<String>(PersistentUnitTestWorkflow_NAME, DATA, "DUPLICATE#ID", 1, null);
      engine.run(desc);
      engine.run(desc);
      org.junit.Assert.fail("expected an DuplicateIdException");
    }
    catch(DuplicateIdException e) {
      // ok
    }
View Full Code Here

    final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
    try {
      assertEquals(EngineState.STARTED,engine.getEngineState());

      for (int i=0; i<NUMB; i++) {
        engine.run(PersistentUnitTestWorkflow_NAME, DATA);
      }

      for (int i=0; i<NUMB; i++) {
        WorkflowResult x = backChannelQueue.dequeue(60, TimeUnit.SECONDS);
        assertNotNull(x);
View Full Code Here

      new RetryingTransaction<Void>(ds) {
        @Override
        protected Void execute() throws Exception {
          for (int i=0; i<NUMB; i++) {
            engine.run("de.scoopgmbh.copper.test.persistent.DBMockAdapterUsingPersistentUnitTestWorkflow", null);
          }
          return null;
        }
      }.run();
View Full Code Here

      }

      new RetryingTransaction<Void>(ds) {
        @Override
        protected Void execute() throws Exception {
          engine.run(list,getConnection());
          return null;
        }
      }.run();

      for (int i=0; i<NUMB; i++) {
View Full Code Here

    final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
    try {
      assertEquals(EngineState.STARTED,engine.getEngineState());

      for (int i=0; i<NUMB; i++) {
        engine.run("de.scoopgmbh.copper.test.persistent.TimingOutPersistentUnitTestWorkflow", null);
      }

      for (int i=0; i<NUMB; i++) {
        WorkflowResult x = backChannelQueue.dequeue(60, TimeUnit.SECONDS);
        assertNotNull(x);
View Full Code Here

    final PersistentScottyEngine engine = context.getBean(PersistentScottyEngine.class);
    try {
      engine.startup();
      final WorkflowInstanceDescr<Serializable> wfInstanceDescr = new WorkflowInstanceDescr<Serializable>("de.scoopgmbh.copper.test.persistent.ExceptionThrowingPersistentUnitTestWorkflow");
      wfInstanceDescr.setId(engine.createUUID());
      engine.run(wfInstanceDescr);
      Thread.sleep(5000);
      //check
      new RetryingTransaction<Void>(context.getBean(DataSource.class)) {
        @Override
        protected Void execute() throws Exception {
View Full Code Here

    final PersistentScottyEngine engine = context.getBean(PersistentScottyEngine.class);
    try {
      engine.startup();
      final WorkflowInstanceDescr<Serializable> wfInstanceDescr = new WorkflowInstanceDescr<Serializable>("de.scoopgmbh.copper.test.persistent.ExceptionThrowingPersistentUnitTestWorkflow");
      wfInstanceDescr.setId(engine.createUUID());
      engine.run(wfInstanceDescr);
      Thread.sleep(5000);
      //check
      new RetryingTransaction<Void>(context.getBean(DataSource.class)) {
        @Override
        protected Void execute() throws Exception {
View Full Code Here

    final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
    try {
      assertEquals(EngineState.STARTED,engine.getEngineState());

      for (int i=0; i<NUMB; i++) {
        engine.run("de.scoopgmbh.copper.test.persistent.subworkflow.TestParentWorkflow",null);
      }

      for (int i=0; i<NUMB; i++) {
        WorkflowResult x = backChannelQueue.dequeue(60, TimeUnit.SECONDS);
        assertNotNull(x);
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.