Package com.camunda.fox.example.domain

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


          attempts.incrementAndGet();   
        } else {
          attempts.set(0);
        }
               
        LoanApplication application = (LoanApplication) objectMessage.getObject();
       
        int score = creditRatingLogic.rateApplication(application);
       
        Rating r = new Rating();
        r.setScore(score);
View Full Code Here


  private UserTransaction utx;
 
  @Test
  public void testPositiveScore() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Daniel");   
    loanApplication.setLastname("Meyer");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
View Full Code Here

  private EntityManager entityManager;
 
 
  public void rateApplication() {
   
    LoanApplication loanApplication = (LoanApplication) processVariables.get("loanApplication");
   
    int score = CreditRatingLogic.rateApplication(loanApplication);
   
    Rating rating = new Rating();   
    rating.setScore(score);
View Full Code Here

  }
  @Test
  public void testNegativeScore() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Bernd");   
    loanApplication.setLastname("Ruecker");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
View Full Code Here

  }
 
  @Test
  public void testFailureCase() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Jakob");   
    loanApplication.setLastname("Freund");   
    businessProcess.setVariable("loanApplication", loanApplication);   

    // since the service itself task is invoked asynchronously,
    // the exception is not propagated back to us.
    businessProcess.startProcessByKey("creditRating");
View Full Code Here

  private UserTransaction utx;
 
  @Test
  public void testPositiveScore() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Daniel");   
    loanApplication.setLastname("Meyer");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
View Full Code Here

  }
  @Test
  public void testNegativeScore() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Bernd");   
    loanApplication.setLastname("Ruecker");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    businessProcess.startProcessByKey("creditRating");
   
    Thread.sleep(2000);
View Full Code Here

  }
 
  @Test
  public void testFailureCase() throws InterruptedException {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Jakob");   
    loanApplication.setLastname("Freund");   
    businessProcess.setVariable("loanApplication", loanApplication);   

    // since the service itself task is invoked asynchronously,
    // the exception is not propagated back to us.
    businessProcess.startProcessByKey("creditRating");
View Full Code Here

TOP

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

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.