Package com.camunda.fox.example.domain

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


  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

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

  private UserTransaction utx;
 
  @Test
  public void testPositiveScore() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Daniel");   
    loanApplication.setLastname("Meyer");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    ProcessInstance pi = businessProcess.startProcessByKey("creditRatingSync");

    Assert.assertNotNull(historyService.createHistoricActivityInstanceQuery()
View Full Code Here

  }
  @Test
  public void testNegativeScore() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Bernd");   
    loanApplication.setLastname("Ruecker");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    ProcessInstance pi = businessProcess.startProcessByKey("creditRatingSync");
   
    Assert.assertNotNull(historyService.createHistoricActivityInstanceQuery()
View Full Code Here

  }
 
  @Test
  public void testFailureCase() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Jakob");   
    loanApplication.setLastname("Freund");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    try {
      // since the service task is invoked synchronously, the exception is propagated back to us.
      ProcessInstance pi = businessProcess.startProcessByKey("creditRatingSync");
View Full Code Here

  private UserTransaction utx;
 
  @Test
  public void testPositiveScore() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Daniel");   
    loanApplication.setLastname("Meyer");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    ProcessInstance pi = businessProcess.startProcessByKey("creditRatingAsync");

    waitForJobExecutorToProcessAllJobs(15000, 100);
View Full Code Here

  }
  @Test
  public void testNegativeScore() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Bernd");   
    loanApplication.setLastname("Ruecker");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    ProcessInstance pi = businessProcess.startProcessByKey("creditRatingAsync");
   
    waitForJobExecutorToProcessAllJobs(15000, 100);
View Full Code Here

  }
 
  @Test
  public void testFailureCase() {
   
    LoanApplication loanApplication = new LoanApplication();
    loanApplication.setFirstname("Jakob");   
    loanApplication.setLastname("Freund");   
    businessProcess.setVariable("loanApplication", loanApplication);   
   
    // since the service task is invoked asynchronously, the exception is not propagated back to us!
    ProcessInstance pi = businessProcess.startProcessByKey("creditRatingAsync");
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.