Package com.camunda.fox.example.domain

Examples of com.camunda.fox.example.domain.Rating


    Assert.assertNotNull(historyService.createHistoricActivityInstanceQuery()
            .processInstanceId(pi.getId())
            .activityId("generateRejectionLetter")
            .singleResult());
   
    Rating raiting = findRating();
    Assert.assertTrue(raiting.getScore()<0);
   
  }
View Full Code Here


   
  @After
  public void cleanup() throws Exception {
    utx.begin();
    try {
      Rating raiting = findRating();    
      entityManager.remove(raiting);    
      utx.commit();
    }catch (Exception e) {
      utx.rollback();
    }
View Full Code Here

            .createProcessInstanceQuery()
            .processInstanceId(pi.getId())
            .singleResult());
           
    try {   
      Rating raiting = findRating();
      Assert.fail("this should have failed!");
    }catch (NoResultException e) {
      // however, there is no raiting since the unit of work in
      // which the service task is invoked still fails
    }
View Full Code Here

               
        LoanApplication application = (LoanApplication) objectMessage.getObject();
       
        int score = creditRatingLogic.rateApplication(application);
       
        Rating r = new Rating();
        r.setScore(score);
       
        entityManager.persist(r);
       
      } catch (JMSException e) {
        throw new EJBException("Could not unwrap object message" + e.getMessage(), e);
View Full Code Here

   
    LoanApplication loanApplication = (LoanApplication) processVariables.get("loanApplication");
   
    int score = CreditRatingLogic.rateApplication(loanApplication);
   
    Rating rating = new Rating();   
    rating.setScore(score);
   
    entityManager.persist(rating);
    entityManager.flush();
   
    processVariables.put("ratingId", rating.getId());
  }
View Full Code Here

   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
       
    Rating rating = findRating();
    Assert.assertTrue(rating.getScore()>0); // positive rating
       
  }
View Full Code Here

   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
   
    Rating rating = findRating();
    Assert.assertTrue(rating.getScore()<0); // negative rating
   
  }
View Full Code Here

  @After
  public void cleanup() throws Exception {
    utx.begin();
    try {
      Rating rating = findRating();
      entityManager.remove(rating);
      utx.commit();
    } catch (Exception e) {
      utx.rollback();
    }
View Full Code Here

   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
       
    Rating rating = findRating();
    Assert.assertTrue(rating.getScore()>0); // positive rating
       
  }
View Full Code Here

   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
   
    Rating rating = findRating();
    Assert.assertTrue(rating.getScore()<0); // negative rating
   
  }
View Full Code Here

TOP

Related Classes of com.camunda.fox.example.domain.Rating

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.