Package org.drools.examples.decisiontables.model

Examples of org.drools.examples.decisiontables.model.Claim


 
 
 
  public void teamAllocationBasic() throws Exception {
       
    Claim cat = getCatastrophic();
    Team team = new Team();
   
    executeRules(cat, team);
    System.out.println(team.getName());
  }
View Full Code Here


    executeRules(cat, team);
    System.out.println(team.getName());
  }
 
  public void teamAllocationLongtail1() throws Exception {
    Claim claim = getBetweenSomeDateLongtail1();
    Team team = new Team();
       
    executeRules(claim, team);   
    System.out.println(team.getName());
  }
View Full Code Here

    executeRules(claim, team);   
    System.out.println(team.getName());
  }
 
  public void teamAllocationLongtail2() throws Exception {
    Claim claim = getBetweenSomeDateLongtail2();
    Team team = new Team();

       
    executeRules(claim, team);
   
View Full Code Here

  }
 
 
  //set up the example scenarios below
  private Claim getBetweenSomeDateLongtail1() {
    Claim claim = new Claim();
    claim.setCatastrophic(false);
    Calendar cal = Calendar.getInstance();
    cal.set(2001, 1, 4);
    claim.setDateOfAccident(cal.getTime());
    claim.setInsuranceClass("1");
    claim.setAllocationCode("S1");
    claim.setClaimType("C");
    claim.setInsuredVehicleOwner("Personal");
    return claim;
   
  }
View Full Code Here

    return claim;
   
  }
 
  private Claim getBetweenSomeDateLongtail2() {
    Claim claim = new Claim();
    claim.setCatastrophic(false);
    Calendar cal = Calendar.getInstance();
    cal.set(2002, 1, 4);
    claim.setDateOfAccident(cal.getTime());
    claim.setInsuranceClass("1");
    claim.setAllocationCode("S1");
    claim.setClaimType("C");
    claim.setInsuredVehicleOwner("Personal");
    return claim;
   
 
View Full Code Here

    return claim;
   
 

  private Claim getCatastrophic() {
    Claim claim = new Claim();
    claim.setCatastrophic(true);
    claim.setDateOfAccident(Calendar.getInstance().getTime());
    claim.setInsuranceClass("1");
    claim.setAllocationCode("S1");
    claim.setClaimType("1");
    claim.setInsuredVehicleOwner("Personal");
    return claim;
  }
View Full Code Here

TOP

Related Classes of org.drools.examples.decisiontables.model.Claim

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.